mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4
This commit is contained in:
@@ -52,10 +52,6 @@ module PlexRubySDK
|
||||
autoload :GetAllLibrariesLibraryErrors, 'plex_ruby_sdk/models/errors/get_all_libraries_library_errors.rb'
|
||||
autoload :GetAllLibrariesUnauthorized, 'plex_ruby_sdk/models/errors/get_all_libraries_unauthorized.rb'
|
||||
autoload :GetAllLibrariesErrors, 'plex_ruby_sdk/models/errors/get_all_libraries_errors.rb'
|
||||
autoload :GetAllMediaLibraryBadRequest, 'plex_ruby_sdk/models/errors/get_all_media_library_badrequest.rb'
|
||||
autoload :GetAllMediaLibraryLibraryErrors, 'plex_ruby_sdk/models/errors/get_all_media_library_library_errors.rb'
|
||||
autoload :GetAllMediaLibraryUnauthorized, 'plex_ruby_sdk/models/errors/get_all_media_library_unauthorized.rb'
|
||||
autoload :GetAllMediaLibraryErrors, 'plex_ruby_sdk/models/errors/get_all_media_library_errors.rb'
|
||||
autoload :GetBannerImageBadRequest, 'plex_ruby_sdk/models/errors/get_banner_image_badrequest.rb'
|
||||
autoload :GetBannerImageMediaErrors, 'plex_ruby_sdk/models/errors/get_banner_image_media_errors.rb'
|
||||
autoload :GetBannerImageUnauthorized, 'plex_ruby_sdk/models/errors/get_banner_image_unauthorized.rb'
|
||||
@@ -76,6 +72,10 @@ module PlexRubySDK
|
||||
autoload :GetLibraryItemsLibraryErrors, 'plex_ruby_sdk/models/errors/get_library_items_library_errors.rb'
|
||||
autoload :GetLibraryItemsUnauthorized, 'plex_ruby_sdk/models/errors/get_library_items_unauthorized.rb'
|
||||
autoload :GetLibraryItemsErrors, 'plex_ruby_sdk/models/errors/get_library_items_errors.rb'
|
||||
autoload :GetLibrarySectionsAllBadRequest, 'plex_ruby_sdk/models/errors/get_library_sections_all_badrequest.rb'
|
||||
autoload :GetLibrarySectionsAllLibraryErrors, 'plex_ruby_sdk/models/errors/get_library_sections_all_library_errors.rb'
|
||||
autoload :GetLibrarySectionsAllUnauthorized, 'plex_ruby_sdk/models/errors/get_library_sections_all_unauthorized.rb'
|
||||
autoload :GetLibrarySectionsAllErrors, 'plex_ruby_sdk/models/errors/get_library_sections_all_errors.rb'
|
||||
autoload :GetMediaMetaDataBadRequest, 'plex_ruby_sdk/models/errors/get_media_meta_data_badrequest.rb'
|
||||
autoload :GetMediaMetaDataLibraryErrors, 'plex_ruby_sdk/models/errors/get_media_meta_data_library_errors.rb'
|
||||
autoload :GetMediaMetaDataUnauthorized, 'plex_ruby_sdk/models/errors/get_media_meta_data_unauthorized.rb'
|
||||
|
||||
@@ -9,17 +9,17 @@ module PlexRubySDK
|
||||
module Errors
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class GetAllMediaLibraryBadRequest
|
||||
class GetLibrarySectionsAllBadRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[Models::Errors::GetAllMediaLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
field :errors, T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, T.nilable(::Faraday::Response), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('-') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[Models::Errors::GetAllMediaLibraryErrors]), raw_response: T.nilable(::Faraday::Response)).void }
|
||||
sig { params(errors: T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllErrors]), raw_response: T.nilable(::Faraday::Response)).void }
|
||||
def initialize(errors: nil, raw_response: nil)
|
||||
@errors = errors
|
||||
@raw_response = raw_response
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Errors
|
||||
|
||||
|
||||
class GetAllMediaLibraryErrors
|
||||
class GetLibrarySectionsAllErrors
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Errors
|
||||
|
||||
|
||||
class GetAllMediaLibraryLibraryErrors
|
||||
class GetLibrarySectionsAllLibraryErrors
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,17 +9,17 @@ module PlexRubySDK
|
||||
module Errors
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class GetAllMediaLibraryUnauthorized
|
||||
class GetLibrarySectionsAllUnauthorized
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[Models::Errors::GetAllMediaLibraryLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
field :errors, T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, T.nilable(::Faraday::Response), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('-') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[Models::Errors::GetAllMediaLibraryLibraryErrors]), raw_response: T.nilable(::Faraday::Response)).void }
|
||||
sig { params(errors: T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllLibraryErrors]), raw_response: T.nilable(::Faraday::Response)).void }
|
||||
def initialize(errors: nil, raw_response: nil)
|
||||
@errors = errors
|
||||
@raw_response = raw_response
|
||||
@@ -122,41 +122,6 @@ module PlexRubySDK
|
||||
autoload :GetAllLibrariesResponse, 'plex_ruby_sdk/models/operations/get_all_libraries_response.rb'
|
||||
autoload :GetAllLibrariesResponseBody, 'plex_ruby_sdk/models/operations/get_all_libraries_responsebody.rb'
|
||||
autoload :GetAllLibrariesType, 'plex_ruby_sdk/models/operations/get_all_libraries_type.rb'
|
||||
autoload :GetAllMediaLibraryCollection, 'plex_ruby_sdk/models/operations/get_all_media_library_collection.rb'
|
||||
autoload :GetAllMediaLibraryCountry, 'plex_ruby_sdk/models/operations/get_all_media_library_country.rb'
|
||||
autoload :GetAllMediaLibraryDirector, 'plex_ruby_sdk/models/operations/get_all_media_library_director.rb'
|
||||
autoload :GetAllMediaLibraryField, 'plex_ruby_sdk/models/operations/get_all_media_library_field.rb'
|
||||
autoload :GetAllMediaLibraryFieldType, 'plex_ruby_sdk/models/operations/get_all_media_library_fieldtype.rb'
|
||||
autoload :GetAllMediaLibraryFilter, 'plex_ruby_sdk/models/operations/get_all_media_library_filter.rb'
|
||||
autoload :GetAllMediaLibraryGenre, 'plex_ruby_sdk/models/operations/get_all_media_library_genre.rb'
|
||||
autoload :GetAllMediaLibraryImage, 'plex_ruby_sdk/models/operations/get_all_media_library_image.rb'
|
||||
autoload :GetAllMediaLibraryLibraryOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_all_media_library_library_optimizedforstreaming.rb'
|
||||
autoload :GetAllMediaLibraryLibraryResponseType, 'plex_ruby_sdk/models/operations/get_all_media_library_library_response_type.rb'
|
||||
autoload :GetAllMediaLibraryLibraryType, 'plex_ruby_sdk/models/operations/get_all_media_library_library_type.rb'
|
||||
autoload :GetAllMediaLibraryMedia, 'plex_ruby_sdk/models/operations/get_all_media_library_media.rb'
|
||||
autoload :GetAllMediaLibraryMediaContainer, 'plex_ruby_sdk/models/operations/get_all_media_library_mediacontainer.rb'
|
||||
autoload :GetAllMediaLibraryMeta, 'plex_ruby_sdk/models/operations/get_all_media_library_meta.rb'
|
||||
autoload :GetAllMediaLibraryMetadata, 'plex_ruby_sdk/models/operations/get_all_media_library_metadata.rb'
|
||||
autoload :GetAllMediaLibraryOperator, 'plex_ruby_sdk/models/operations/get_all_media_library_operator.rb'
|
||||
autoload :GetAllMediaLibraryPart, 'plex_ruby_sdk/models/operations/get_all_media_library_part.rb'
|
||||
autoload :GetAllMediaLibraryRole, 'plex_ruby_sdk/models/operations/get_all_media_library_role.rb'
|
||||
autoload :GetAllMediaLibrarySort, 'plex_ruby_sdk/models/operations/get_all_media_library_sort.rb'
|
||||
autoload :GetAllMediaLibraryStream, 'plex_ruby_sdk/models/operations/get_all_media_library_stream.rb'
|
||||
autoload :GetAllMediaLibraryType, 'plex_ruby_sdk/models/operations/get_all_media_library_type.rb'
|
||||
autoload :GetAllMediaLibraryUltraBlurColors, 'plex_ruby_sdk/models/operations/get_all_media_library_ultrablurcolors.rb'
|
||||
autoload :GetAllMediaLibraryWriter, 'plex_ruby_sdk/models/operations/get_all_media_library_writer.rb'
|
||||
autoload :GetAllMediaLibraryActiveDirection, 'plex_ruby_sdk/models/operations/get_all_media_library_activedirection.rb'
|
||||
autoload :GetAllMediaLibraryDefaultDirection, 'plex_ruby_sdk/models/operations/get_all_media_library_defaultdirection.rb'
|
||||
autoload :GetAllMediaLibraryGuids, 'plex_ruby_sdk/models/operations/get_all_media_library_guids.rb'
|
||||
autoload :GetAllMediaLibraryHasThumbnail, 'plex_ruby_sdk/models/operations/get_all_media_library_hasthumbnail.rb'
|
||||
autoload :GetAllMediaLibraryOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_all_media_library_optimizedforstreaming.rb'
|
||||
autoload :GetAllMediaLibraryOptimizedForStreaming1, 'plex_ruby_sdk/models/operations/get_all_media_library_optimizedforstreaming_1.rb'
|
||||
autoload :GetAllMediaLibraryQueryParamIncludeMeta, 'plex_ruby_sdk/models/operations/get_all_media_library_queryparam_includemeta.rb'
|
||||
autoload :GetAllMediaLibraryQueryParamType, 'plex_ruby_sdk/models/operations/get_all_media_library_queryparam_type.rb'
|
||||
autoload :GetAllMediaLibraryRequest, 'plex_ruby_sdk/models/operations/get_all_media_library_request.rb'
|
||||
autoload :GetAllMediaLibraryResponse, 'plex_ruby_sdk/models/operations/get_all_media_library_response.rb'
|
||||
autoload :GetAllMediaLibraryResponseBody, 'plex_ruby_sdk/models/operations/get_all_media_library_responsebody.rb'
|
||||
autoload :GetAllMediaLibraryStreamType, 'plex_ruby_sdk/models/operations/get_all_media_library_streamtype.rb'
|
||||
autoload :GetBannerImageRequest, 'plex_ruby_sdk/models/operations/get_banner_image_request.rb'
|
||||
autoload :GetBannerImageResponse, 'plex_ruby_sdk/models/operations/get_banner_image_response.rb'
|
||||
autoload :GetCountriesLibraryDirectory, 'plex_ruby_sdk/models/operations/get_countries_library_directory.rb'
|
||||
@@ -222,6 +187,41 @@ module PlexRubySDK
|
||||
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 :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'
|
||||
autoload :GetLibrarySectionsAllField, 'plex_ruby_sdk/models/operations/get_library_sections_all_field.rb'
|
||||
autoload :GetLibrarySectionsAllFieldType, 'plex_ruby_sdk/models/operations/get_library_sections_all_fieldtype.rb'
|
||||
autoload :GetLibrarySectionsAllFilter, 'plex_ruby_sdk/models/operations/get_library_sections_all_filter.rb'
|
||||
autoload :GetLibrarySectionsAllGenre, 'plex_ruby_sdk/models/operations/get_library_sections_all_genre.rb'
|
||||
autoload :GetLibrarySectionsAllImage, 'plex_ruby_sdk/models/operations/get_library_sections_all_image.rb'
|
||||
autoload :GetLibrarySectionsAllLibraryOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_library_sections_all_library_optimizedforstreaming.rb'
|
||||
autoload :GetLibrarySectionsAllLibraryResponseType, 'plex_ruby_sdk/models/operations/get_library_sections_all_library_response_type.rb'
|
||||
autoload :GetLibrarySectionsAllLibraryType, 'plex_ruby_sdk/models/operations/get_library_sections_all_library_type.rb'
|
||||
autoload :GetLibrarySectionsAllMedia, 'plex_ruby_sdk/models/operations/get_library_sections_all_media.rb'
|
||||
autoload :GetLibrarySectionsAllMediaContainer, 'plex_ruby_sdk/models/operations/get_library_sections_all_mediacontainer.rb'
|
||||
autoload :GetLibrarySectionsAllMeta, 'plex_ruby_sdk/models/operations/get_library_sections_all_meta.rb'
|
||||
autoload :GetLibrarySectionsAllMetadata, 'plex_ruby_sdk/models/operations/get_library_sections_all_metadata.rb'
|
||||
autoload :GetLibrarySectionsAllOperator, 'plex_ruby_sdk/models/operations/get_library_sections_all_operator.rb'
|
||||
autoload :GetLibrarySectionsAllPart, 'plex_ruby_sdk/models/operations/get_library_sections_all_part.rb'
|
||||
autoload :GetLibrarySectionsAllRole, 'plex_ruby_sdk/models/operations/get_library_sections_all_role.rb'
|
||||
autoload :GetLibrarySectionsAllSort, 'plex_ruby_sdk/models/operations/get_library_sections_all_sort.rb'
|
||||
autoload :GetLibrarySectionsAllStream, 'plex_ruby_sdk/models/operations/get_library_sections_all_stream.rb'
|
||||
autoload :GetLibrarySectionsAllType, 'plex_ruby_sdk/models/operations/get_library_sections_all_type.rb'
|
||||
autoload :GetLibrarySectionsAllUltraBlurColors, 'plex_ruby_sdk/models/operations/get_library_sections_all_ultrablurcolors.rb'
|
||||
autoload :GetLibrarySectionsAllWriter, 'plex_ruby_sdk/models/operations/get_library_sections_all_writer.rb'
|
||||
autoload :GetLibrarySectionsAllActiveDirection, 'plex_ruby_sdk/models/operations/get_library_sections_all_activedirection.rb'
|
||||
autoload :GetLibrarySectionsAllDefaultDirection, 'plex_ruby_sdk/models/operations/get_library_sections_all_defaultdirection.rb'
|
||||
autoload :GetLibrarySectionsAllGuids, 'plex_ruby_sdk/models/operations/get_library_sections_all_guids.rb'
|
||||
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 :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'
|
||||
@@ -230,7 +230,6 @@ module PlexRubySDK
|
||||
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 :GetMediaMetaDataGenre, 'plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb'
|
||||
autoload :GetMediaMetaDataGuids, 'plex_ruby_sdk/models/operations/get_media_meta_data_guids.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'
|
||||
@@ -245,6 +244,7 @@ module PlexRubySDK
|
||||
autoload :GetMediaMetaDataStream, 'plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb'
|
||||
autoload :GetMediaMetaDataUltraBlurColors, 'plex_ruby_sdk/models/operations/get_media_meta_data_ultrablurcolors.rb'
|
||||
autoload :GetMediaMetaDataWriter, 'plex_ruby_sdk/models/operations/get_media_meta_data_writer.rb'
|
||||
autoload :GetMediaMetaDataGuids, 'plex_ruby_sdk/models/operations/get_media_meta_data_guids.rb'
|
||||
autoload :GetMediaMetaDataHasThumbnail, 'plex_ruby_sdk/models/operations/get_media_meta_data_hasthumbnail.rb'
|
||||
autoload :GetMediaMetaDataOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming.rb'
|
||||
autoload :GetMediaMetaDataOptimizedForStreaming1, 'plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming_1.rb'
|
||||
@@ -490,6 +490,7 @@ module PlexRubySDK
|
||||
autoload :GetTopWatchedContentRole, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_role.rb'
|
||||
autoload :GetTopWatchedContentUser, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_user.rb'
|
||||
autoload :GetTopWatchedContentGuids, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_guids.rb'
|
||||
autoload :GetTopWatchedContentQueryParamIncludeGuids, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_includeguids.rb'
|
||||
autoload :GetTopWatchedContentQueryParamType, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb'
|
||||
autoload :GetTopWatchedContentRequest, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb'
|
||||
autoload :GetTopWatchedContentResponse, 'plex_ruby_sdk/models/operations/gettopwatchedcontent_response.rb'
|
||||
|
||||
@@ -14,25 +14,27 @@ module PlexRubySDK
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# 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') } }
|
||||
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, tag: ::String, filter: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, filter: nil)
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
@filter = filter
|
||||
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 @filter == other.filter
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,18 +13,34 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The filter string used to query this director.
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# 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') } }
|
||||
# A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# 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: ::String).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
@tag_key = tag_key
|
||||
@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 @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,7 +15,9 @@ module PlexRubySDK
|
||||
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
# 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
|
||||
#
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,6 +17,10 @@ module PlexRubySDK
|
||||
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
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetLibraryItemsLibraryType - The type of media content
|
||||
# GetLibraryItemsLibraryType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetLibraryItemsLibraryType < T::Enum
|
||||
enums do
|
||||
@@ -18,6 +18,10 @@ module PlexRubySDK
|
||||
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
|
||||
|
||||
@@ -27,7 +27,7 @@ module PlexRubySDK
|
||||
field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The type of media content
|
||||
# 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) } }
|
||||
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,9 +8,9 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
# GetLibrarySectionsAllActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class GetAllMediaLibraryActiveDirection < T::Enum
|
||||
class GetLibrarySectionsAllActiveDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryCollection
|
||||
class GetLibrarySectionsAllCollection
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryCountry
|
||||
class GetLibrarySectionsAllCountry
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -8,9 +8,9 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
# GetLibrarySectionsAllDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class GetAllMediaLibraryDefaultDirection < T::Enum
|
||||
class GetLibrarySectionsAllDefaultDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryDirector
|
||||
class GetLibrarySectionsAllDirector
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryField
|
||||
class GetLibrarySectionsAllField
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,17 +9,17 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryFieldType
|
||||
class GetLibrarySectionsAllFieldType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :operator, T::Array[Models::Operations::GetAllMediaLibraryOperator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
|
||||
field :operator, T::Array[Models::Operations::GetLibrarySectionsAllOperator], { '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::GetAllMediaLibraryOperator], type: ::String).void }
|
||||
sig { params(operator: T::Array[Models::Operations::GetLibrarySectionsAllOperator], type: ::String).void }
|
||||
def initialize(operator: nil, type: nil)
|
||||
@operator = operator
|
||||
@type = type
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryFilter
|
||||
class GetLibrarySectionsAllFilter
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryGenre
|
||||
class GetLibrarySectionsAllGenre
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,16 +9,16 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryGuids
|
||||
class GetLibrarySectionsAllGuids
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
# The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
#
|
||||
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
|
||||
sig { params(id: T.nilable(::String)).void }
|
||||
sig { params(id: ::String).void }
|
||||
def initialize(id: nil)
|
||||
@id = id
|
||||
end
|
||||
@@ -8,8 +8,8 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryHasThumbnail - Indicates if the part has a thumbnail.
|
||||
class GetAllMediaLibraryHasThumbnail < T::Enum
|
||||
# GetLibrarySectionsAllHasThumbnail - Indicates if the part has a thumbnail.
|
||||
class GetLibrarySectionsAllHasThumbnail < T::Enum
|
||||
enums do
|
||||
FALSE = new('0')
|
||||
TRUE = new('1')
|
||||
@@ -9,19 +9,19 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryImage
|
||||
class GetLibrarySectionsAllImage
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :alt, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('alt') } }
|
||||
|
||||
field :type, Models::Operations::GetAllMediaLibraryLibraryResponseType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryLibraryResponseType, false) } }
|
||||
field :type, Models::Operations::GetLibrarySectionsAllLibraryResponseType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllLibraryResponseType, false) } }
|
||||
|
||||
field :url, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('url') } }
|
||||
|
||||
|
||||
sig { params(alt: ::String, type: Models::Operations::GetAllMediaLibraryLibraryResponseType, url: ::String).void }
|
||||
sig { params(alt: ::String, type: Models::Operations::GetLibrarySectionsAllLibraryResponseType, url: ::String).void }
|
||||
def initialize(alt: nil, type: nil, url: nil)
|
||||
@alt = alt
|
||||
@type = type
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
class GetAllMediaLibraryLibraryOptimizedForStreaming
|
||||
class GetLibrarySectionsAllLibraryOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryLibraryResponseType < T::Enum
|
||||
class GetLibrarySectionsAllLibraryResponseType < T::Enum
|
||||
enums do
|
||||
COVER_POSTER = new('coverPoster')
|
||||
BACKGROUND = new('background')
|
||||
@@ -8,9 +8,9 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryLibraryType - The type of media content
|
||||
# GetLibrarySectionsAllLibraryType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetAllMediaLibraryLibraryType < T::Enum
|
||||
class GetLibrarySectionsAllLibraryType < T::Enum
|
||||
enums do
|
||||
MOVIE = new('movie')
|
||||
TV_SHOW = new('show')
|
||||
@@ -18,6 +18,10 @@ module PlexRubySDK
|
||||
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
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryMedia
|
||||
class GetLibrarySectionsAllMedia
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -40,7 +40,7 @@ module PlexRubySDK
|
||||
# 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') } }
|
||||
# An array of parts for this media item.
|
||||
field :part, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
field :part, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllPart]), { '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
|
||||
@@ -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::GetAllMediaLibraryPart]), 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::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 }
|
||||
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
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryMediaContainer
|
||||
class GetLibrarySectionsAllMediaContainer
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -49,12 +49,12 @@ module PlexRubySDK
|
||||
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::GetAllMediaLibraryMeta), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Meta') } }
|
||||
field :meta, T.nilable(Models::Operations::GetLibrarySectionsAllMeta), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Meta') } }
|
||||
# An array of metadata items.
|
||||
field :metadata, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
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::GetAllMediaLibraryMeta), metadata: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryMetadata])).void }
|
||||
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)
|
||||
@allow_sync = allow_sync
|
||||
@art = art
|
||||
@@ -10,17 +10,17 @@ module PlexRubySDK
|
||||
|
||||
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
#
|
||||
class GetAllMediaLibraryMeta
|
||||
class GetLibrarySectionsAllMeta
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :field_type, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
||||
field :field_type, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
||||
|
||||
field :type, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
||||
field :type, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
||||
|
||||
|
||||
sig { params(field_type: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryFieldType]), type: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryType])).void }
|
||||
sig { params(field_type: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFieldType]), type: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllType])).void }
|
||||
def initialize(field_type: nil, type: nil)
|
||||
@field_type = field_type
|
||||
@type = type
|
||||
@@ -10,7 +10,7 @@ module PlexRubySDK
|
||||
|
||||
# Unknown
|
||||
#
|
||||
class GetAllMediaLibraryMetadata
|
||||
class GetLibrarySectionsAllMetadata
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -53,25 +53,25 @@ module PlexRubySDK
|
||||
# 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::GetAllMediaLibraryLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryLibraryType, false) } }
|
||||
field :type, Models::Operations::GetLibrarySectionsAllLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllLibraryType, false) } }
|
||||
# The URL for the audience rating image.
|
||||
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
||||
# The source from which chapter data is derived.
|
||||
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
||||
|
||||
field :collection, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
|
||||
field :collection, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCollection]), { '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::GetAllMediaLibraryCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
|
||||
field :country, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCountry]), { '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::GetAllMediaLibraryDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
||||
field :director, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
||||
|
||||
field :genre, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
||||
field :genre, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGenre]), { '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.
|
||||
@@ -89,9 +89,9 @@ module PlexRubySDK
|
||||
# The title of the grandparent media item.
|
||||
field :grandparent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTitle') } }
|
||||
|
||||
field :guids, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryGuids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
||||
field :guids, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGuids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
||||
|
||||
field :image, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
||||
field :image, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
||||
# 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.
|
||||
@@ -99,7 +99,7 @@ module PlexRubySDK
|
||||
# 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') } }
|
||||
|
||||
field :media, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
field :media, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
# 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.
|
||||
@@ -119,7 +119,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 :role, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
||||
field :role, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
||||
# 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') } }
|
||||
# The studio that produced the media item.
|
||||
@@ -127,7 +127,7 @@ module PlexRubySDK
|
||||
# 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::GetAllMediaLibraryUltraBlurColors), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('UltraBlurColors') } }
|
||||
field :ultra_blur_colors, T.nilable(Models::Operations::GetLibrarySectionsAllUltraBlurColors), { '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.
|
||||
@@ -139,12 +139,12 @@ module PlexRubySDK
|
||||
# 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::GetAllMediaLibraryWriter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Writer') } }
|
||||
field :writer, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllWriter]), { '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, 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::GetAllMediaLibraryLibraryType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryDirector]), genre: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryGenre]), 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::GetAllMediaLibraryGuids]), image: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), media: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryMedia]), 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::GetAllMediaLibraryRole]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetAllMediaLibraryUltraBlurColors), 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::GetAllMediaLibraryWriter]), year: T.nilable(::Integer)).void }
|
||||
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)
|
||||
@added_at = added_at
|
||||
@art = art
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryOperator
|
||||
class GetLibrarySectionsAllOperator
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
class GetAllMediaLibraryOptimizedForStreaming
|
||||
class GetLibrarySectionsAllOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryOptimizedForStreaming1 < T::Enum
|
||||
class GetLibrarySectionsAllOptimizedForStreaming1 < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryPart
|
||||
class GetLibrarySectionsAllPart
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -34,20 +34,20 @@ module PlexRubySDK
|
||||
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
|
||||
field :has_thumbnail, T.nilable(Models::Operations::GetAllMediaLibraryHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryHasThumbnail, true) } }
|
||||
field :has_thumbnail, T.nilable(Models::Operations::GetLibrarySectionsAllHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllHasThumbnail, true) } }
|
||||
|
||||
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::GetAllMediaLibraryOptimizedForStreaming1, 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') } }
|
||||
|
||||
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
||||
# An array of streams for this part.
|
||||
field :stream, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
|
||||
field :stream, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllStream]), { '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::GetAllMediaLibraryHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetAllMediaLibraryOptimizedForStreaming1, T::Boolean)), packet_length: T.nilable(::Integer), stream: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryStream]), 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::GetLibrarySectionsAllOptimizedForStreaming1, 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
|
||||
@@ -8,9 +8,9 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryQueryParamIncludeMeta - Adds the Meta object to the response
|
||||
# GetLibrarySectionsAllQueryParamIncludeMeta - Adds the Meta object to the response
|
||||
#
|
||||
class GetAllMediaLibraryQueryParamIncludeMeta < T::Enum
|
||||
class GetLibrarySectionsAllQueryParamIncludeMeta < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
@@ -8,22 +8,24 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryQueryParamType - The type of media to retrieve or filter by.
|
||||
# GetLibrarySectionsAllQueryParamType - The type of media to retrieve or filter by.
|
||||
# 1 = movie
|
||||
# 2 = show
|
||||
# 3 = season
|
||||
# 4 = episode
|
||||
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
#
|
||||
class GetAllMediaLibraryQueryParamType < T::Enum
|
||||
class GetLibrarySectionsAllQueryParamType < T::Enum
|
||||
enums do
|
||||
MOVIE = new(1)
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryRequest
|
||||
class GetLibrarySectionsAllRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -24,7 +24,7 @@ module PlexRubySDK
|
||||
# 4 = episode
|
||||
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
#
|
||||
field :type, Models::Operations::GetAllMediaLibraryQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
||||
field :type, Models::Operations::GetLibrarySectionsAllQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :include_advanced, T.nilable(Models::Operations::IncludeAdvanced), { 'query_param': { 'field_name': 'includeAdvanced', 'style': 'form', 'explode': true } }
|
||||
|
||||
@@ -36,7 +36,7 @@ module PlexRubySDK
|
||||
field :include_guids, T.nilable(Models::Operations::QueryParamIncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
||||
# Adds the Meta object to the response
|
||||
#
|
||||
field :include_meta, T.nilable(Models::Operations::GetAllMediaLibraryQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
|
||||
field :include_meta, T.nilable(Models::Operations::GetLibrarySectionsAllQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
|
||||
# The number of items to return. If not specified, all items will be returned.
|
||||
# If the number of items exceeds the limit, the response will be paginated.
|
||||
# By default this is 50
|
||||
@@ -49,7 +49,7 @@ module PlexRubySDK
|
||||
field :x_plex_container_start, T.nilable(::Integer), { 'query_param': { 'field_name': 'X-Plex-Container-Start', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(section_key: ::Integer, type: Models::Operations::GetAllMediaLibraryQueryParamType, include_advanced: T.nilable(Models::Operations::IncludeAdvanced), include_collections: T.nilable(Models::Operations::QueryParamIncludeCollections), include_external_media: T.nilable(Models::Operations::QueryParamIncludeExternalMedia), include_guids: T.nilable(Models::Operations::QueryParamIncludeGuids), include_meta: T.nilable(Models::Operations::GetAllMediaLibraryQueryParamIncludeMeta), x_plex_container_size: T.nilable(::Integer), x_plex_container_start: T.nilable(::Integer)).void }
|
||||
sig { params(section_key: ::Integer, type: Models::Operations::GetLibrarySectionsAllQueryParamType, include_advanced: T.nilable(Models::Operations::IncludeAdvanced), include_collections: T.nilable(Models::Operations::QueryParamIncludeCollections), include_external_media: T.nilable(Models::Operations::QueryParamIncludeExternalMedia), include_guids: T.nilable(Models::Operations::QueryParamIncludeGuids), include_meta: T.nilable(Models::Operations::GetLibrarySectionsAllQueryParamIncludeMeta), x_plex_container_size: T.nilable(::Integer), x_plex_container_start: T.nilable(::Integer)).void }
|
||||
def initialize(section_key: nil, type: nil, include_advanced: nil, include_collections: nil, include_external_media: nil, include_guids: nil, include_meta: nil, x_plex_container_size: nil, x_plex_container_start: nil)
|
||||
@section_key = section_key
|
||||
@type = type
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryResponse
|
||||
class GetLibrarySectionsAllResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -20,10 +20,10 @@ module PlexRubySDK
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Successful response containing media container data.
|
||||
field :object, T.nilable(Models::Operations::GetAllMediaLibraryResponseBody)
|
||||
field :object, T.nilable(Models::Operations::GetLibrarySectionsAllResponseBody)
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(Models::Operations::GetAllMediaLibraryResponseBody)).void }
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(Models::Operations::GetLibrarySectionsAllResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@@ -9,15 +9,15 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Successful response containing media container data.
|
||||
class GetAllMediaLibraryResponseBody
|
||||
class GetLibrarySectionsAllResponseBody
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :media_container, T.nilable(Models::Operations::GetAllMediaLibraryMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
field :media_container, T.nilable(Models::Operations::GetLibrarySectionsAllMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
|
||||
|
||||
sig { params(media_container: T.nilable(Models::Operations::GetAllMediaLibraryMediaContainer)).void }
|
||||
sig { params(media_container: T.nilable(Models::Operations::GetLibrarySectionsAllMediaContainer)).void }
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryRole
|
||||
class GetLibrarySectionsAllRole
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,13 +9,13 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibrarySort
|
||||
class GetLibrarySectionsAllSort
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
field :default_direction, Models::Operations::GetAllMediaLibraryDefaultDirection, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryDefaultDirection, false) } }
|
||||
field :default_direction, Models::Operations::GetLibrarySectionsAllDefaultDirection, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllDefaultDirection, false) } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
@@ -24,7 +24,7 @@ module PlexRubySDK
|
||||
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::GetAllMediaLibraryActiveDirection), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('activeDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryActiveDirection, true) } }
|
||||
field :active_direction, T.nilable(Models::Operations::GetLibrarySectionsAllActiveDirection), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('activeDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllActiveDirection, true) } }
|
||||
|
||||
field :default, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
|
||||
|
||||
@@ -33,7 +33,7 @@ module PlexRubySDK
|
||||
field :first_character_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('firstCharacterKey') } }
|
||||
|
||||
|
||||
sig { params(default_direction: Models::Operations::GetAllMediaLibraryDefaultDirection, key: ::String, title: ::String, active: T.nilable(T::Boolean), active_direction: T.nilable(Models::Operations::GetAllMediaLibraryActiveDirection), default: T.nilable(::String), desc_key: T.nilable(::String), first_character_key: T.nilable(::String)).void }
|
||||
sig { params(default_direction: Models::Operations::GetLibrarySectionsAllDefaultDirection, key: ::String, title: ::String, active: T.nilable(T::Boolean), active_direction: T.nilable(Models::Operations::GetLibrarySectionsAllActiveDirection), 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
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryStream
|
||||
class GetLibrarySectionsAllStream
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -26,7 +26,7 @@ module PlexRubySDK
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
#
|
||||
field :stream_type, Models::Operations::GetAllMediaLibraryStreamType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryStreamType, false) } }
|
||||
field :stream_type, Models::Operations::GetLibrarySectionsAllStreamType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllStreamType, false) } }
|
||||
# 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::GetAllMediaLibraryStreamType, 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: 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 }
|
||||
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
|
||||
@@ -8,12 +8,12 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetAllMediaLibraryStreamType - Stream type:
|
||||
# GetLibrarySectionsAllStreamType - Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
#
|
||||
class GetAllMediaLibraryStreamType < T::Enum
|
||||
class GetLibrarySectionsAllStreamType < T::Enum
|
||||
enums do
|
||||
VIDEO = new(1)
|
||||
AUDIO = new(2)
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryType
|
||||
class GetLibrarySectionsAllType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -22,16 +22,16 @@ module PlexRubySDK
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :field, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryField]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Field') } }
|
||||
field :field, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllField]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Field') } }
|
||||
|
||||
field :filter, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryFilter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Filter') } }
|
||||
field :filter, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFilter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Filter') } }
|
||||
|
||||
field :sort, T.nilable(T::Array[Models::Operations::GetAllMediaLibrarySort]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Sort') } }
|
||||
field :sort, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllSort]), { '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::GetAllMediaLibraryField]), filter: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryFilter]), sort: T.nilable(T::Array[Models::Operations::GetAllMediaLibrarySort]), subtype: T.nilable(::String)).void }
|
||||
sig { params(active: T::Boolean, key: ::String, title: ::String, type: ::String, field: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllField]), filter: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFilter]), sort: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllSort]), 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
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryUltraBlurColors
|
||||
class GetLibrarySectionsAllUltraBlurColors
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -9,7 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetAllMediaLibraryWriter
|
||||
class GetLibrarySectionsAllWriter
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -14,25 +14,27 @@ module PlexRubySDK
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# 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') } }
|
||||
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, tag: ::String, filter: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, filter: nil)
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
@filter = filter
|
||||
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 @filter == other.filter
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,13 +19,13 @@ module PlexRubySDK
|
||||
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') } }
|
||||
# A unique key associated with the director's tag, used for internal identification.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The URL of the thumbnail image for the director.
|
||||
# A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# 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(filter: ::String, id: ::Integer, tag: ::String, tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
|
||||
@@ -15,7 +15,9 @@ module PlexRubySDK
|
||||
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
# 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
|
||||
#
|
||||
|
||||
@@ -13,7 +13,8 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The GUID value.
|
||||
# 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') } }
|
||||
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# the id of the library item to return the children of.
|
||||
field :rating_key, ::Integer, { 'path_param': { 'field_name': 'ratingKey', 'style': 'simple', 'explode': false } }
|
||||
# The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
|
||||
field :rating_key, ::String, { 'path_param': { 'field_name': 'ratingKey', 'style': 'simple', 'explode': false } }
|
||||
# Trigger asynchronous metadata augmentation.
|
||||
field :async_augment_metadata, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'asyncAugmentMetadata', 'style': 'form', 'explode': true } }
|
||||
# Trigger asynchronous file checking.
|
||||
@@ -43,7 +43,7 @@ module PlexRubySDK
|
||||
field :include_stations, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeStations', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(rating_key: ::Integer, async_augment_metadata: T.nilable(T::Boolean), async_check_files: T.nilable(T::Boolean), async_refresh_analysis: T.nilable(T::Boolean), async_refresh_local_media_agent: T.nilable(T::Boolean), include_chapters: T.nilable(T::Boolean), include_concerts: T.nilable(T::Boolean), include_external_media: T.nilable(T::Boolean), include_extras: T.nilable(T::Boolean), include_on_deck: T.nilable(T::Boolean), include_popular_leaves: T.nilable(T::Boolean), include_preferences: T.nilable(T::Boolean), include_reviews: T.nilable(T::Boolean), include_stations: T.nilable(T::Boolean)).void }
|
||||
sig { params(rating_key: ::String, async_augment_metadata: T.nilable(T::Boolean), async_check_files: T.nilable(T::Boolean), async_refresh_analysis: T.nilable(T::Boolean), async_refresh_local_media_agent: T.nilable(T::Boolean), include_chapters: T.nilable(T::Boolean), include_concerts: T.nilable(T::Boolean), include_external_media: T.nilable(T::Boolean), include_extras: T.nilable(T::Boolean), include_on_deck: T.nilable(T::Boolean), include_popular_leaves: T.nilable(T::Boolean), include_preferences: T.nilable(T::Boolean), include_reviews: T.nilable(T::Boolean), include_stations: T.nilable(T::Boolean)).void }
|
||||
def initialize(rating_key: nil, async_augment_metadata: nil, async_check_files: nil, async_refresh_analysis: nil, async_refresh_local_media_agent: nil, include_chapters: nil, include_concerts: nil, include_external_media: nil, include_extras: nil, include_on_deck: nil, include_popular_leaves: nil, include_preferences: nil, include_reviews: nil, include_stations: nil)
|
||||
@rating_key = rating_key
|
||||
@async_augment_metadata = async_augment_metadata
|
||||
|
||||
@@ -15,25 +15,29 @@ module PlexRubySDK
|
||||
|
||||
# The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# Unique identifier for the actor or role.
|
||||
# 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') } }
|
||||
# A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
# NOTE: This is globally unique across all Plex Servers.
|
||||
#
|
||||
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The role played by the actor in the media item.
|
||||
field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('role') } }
|
||||
# A unique key associated with the actor's tag, used for internal identification.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The URL of the thumbnail image for 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: ::String, id: ::Integer, tag: ::String, role: T.nilable(::String), tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, role: nil, tag_key: nil, thumb: nil)
|
||||
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
|
||||
@role = role
|
||||
@tag_key = tag_key
|
||||
@role = role
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
@@ -42,8 +46,8 @@ module PlexRubySDK
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @role == other.role
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @role == other.role
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetMediaMetaDataType - The type of media content
|
||||
# GetMediaMetaDataType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetMediaMetaDataType < T::Enum
|
||||
enums do
|
||||
@@ -18,6 +18,10 @@ module PlexRubySDK
|
||||
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
|
||||
|
||||
@@ -19,9 +19,9 @@ module PlexRubySDK
|
||||
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') } }
|
||||
# A unique key associated with the writers tag, used for internal identification.
|
||||
# A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The URL of the thumbnail image for the writer.
|
||||
# The absolute URL of the thumbnail image for the writer.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetRecentlyAddedHubsType - The type of media content
|
||||
# GetRecentlyAddedHubsType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetRecentlyAddedHubsType < T::Enum
|
||||
enums do
|
||||
@@ -18,6 +18,10 @@ module PlexRubySDK
|
||||
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
|
||||
|
||||
@@ -27,7 +27,7 @@ module PlexRubySDK
|
||||
field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The type of media content
|
||||
# The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
field :type, Models::Operations::GetSearchAllLibrariesType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesType, false) } }
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetSearchAllLibrariesType - The type of media content
|
||||
# GetSearchAllLibrariesType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetSearchAllLibrariesType < T::Enum
|
||||
enums do
|
||||
@@ -18,6 +18,10 @@ module PlexRubySDK
|
||||
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
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,28 +13,28 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :allow_sync, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||
|
||||
field :identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||
|
||||
field :media_tag_prefix, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||
|
||||
field :media_tag_version, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
||||
# 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') } }
|
||||
# Number of media items returned in this response.
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
field :metadata, T.nilable(T::Array[Models::Operations::GetTopWatchedContentMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
|
||||
sig { params(allow_sync: T.nilable(T::Boolean), identifier: T.nilable(::String), media_tag_prefix: T.nilable(::String), media_tag_version: T.nilable(::Integer), metadata: T.nilable(T::Array[Models::Operations::GetTopWatchedContentMetadata]), size: T.nilable(::Integer)).void }
|
||||
def initialize(allow_sync: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, metadata: nil, size: nil)
|
||||
sig { params(allow_sync: T::Boolean, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, size: ::Integer, metadata: T.nilable(T::Array[Models::Operations::GetTopWatchedContentMetadata])).void }
|
||||
def initialize(allow_sync: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, size: nil, metadata: nil)
|
||||
@allow_sync = allow_sync
|
||||
@identifier = identifier
|
||||
@media_tag_prefix = media_tag_prefix
|
||||
@media_tag_version = media_tag_version
|
||||
@metadata = metadata
|
||||
@size = size
|
||||
@metadata = metadata
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
@@ -43,8 +43,8 @@ module PlexRubySDK
|
||||
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 @metadata == other.metadata
|
||||
return false unless @size == other.size
|
||||
return false unless @metadata == other.metadata
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetTopWatchedContentQueryParamIncludeGuids - Adds the Guid object to the response
|
||||
#
|
||||
class GetTopWatchedContentQueryParamIncludeGuids < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,12 +21,12 @@ module PlexRubySDK
|
||||
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
#
|
||||
field :type, Models::Operations::GetTopWatchedContentQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
||||
# Adds the Guids object to the response
|
||||
# Adds the Guid object to the response
|
||||
#
|
||||
field :include_guids, T.nilable(::Integer), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
||||
field :include_guids, T.nilable(Models::Operations::GetTopWatchedContentQueryParamIncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(type: Models::Operations::GetTopWatchedContentQueryParamType, include_guids: T.nilable(::Integer)).void }
|
||||
sig { params(type: Models::Operations::GetTopWatchedContentQueryParamType, include_guids: T.nilable(Models::Operations::GetTopWatchedContentQueryParamIncludeGuids)).void }
|
||||
def initialize(type: nil, include_guids: nil)
|
||||
@type = type
|
||||
@include_guids = include_guids
|
||||
|
||||
@@ -13,12 +13,12 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
# The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
#
|
||||
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
|
||||
sig { params(id: T.nilable(::String)).void }
|
||||
sig { params(id: ::String).void }
|
||||
def initialize(id: nil)
|
||||
@id = id
|
||||
end
|
||||
|
||||
@@ -19,13 +19,14 @@ module PlexRubySDK
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The name of the producer
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# A unique key associated with the producer's tag, used for internal identification.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The URL of the thumbnail image for the actor.
|
||||
# A 24-character hexadecimal unique key associated with the producer's tag, used for internal identification.
|
||||
#
|
||||
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The absolute URL of the thumbnail image for the producer.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
# The URL for the rating image, for example from IMDb.
|
||||
field :image, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('image') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
@@ -15,25 +15,29 @@ module PlexRubySDK
|
||||
|
||||
# The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# Unique identifier for the actor or role.
|
||||
# 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') } }
|
||||
# A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
# NOTE: This is globally unique across all Plex Servers.
|
||||
#
|
||||
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The role played by the actor in the media item.
|
||||
field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('role') } }
|
||||
# A unique key associated with the actor's tag, used for internal identification.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The URL of the thumbnail image for 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: ::String, id: ::Integer, tag: ::String, role: T.nilable(::String), tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, role: nil, tag_key: nil, thumb: nil)
|
||||
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
|
||||
@role = role
|
||||
@tag_key = tag_key
|
||||
@role = role
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
@@ -42,8 +46,8 @@ module PlexRubySDK
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @role == other.role
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @role == other.role
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
|
||||
@@ -21,9 +21,11 @@ module PlexRubySDK
|
||||
TV_SHOW = new(2)
|
||||
SEASON = new(3)
|
||||
EPISODE = new(4)
|
||||
AUDIO = new(8)
|
||||
ALBUM = new(9)
|
||||
TRACK = new(10)
|
||||
ARTIST = new(5)
|
||||
ALBUM = new(6)
|
||||
TRACK = new(7)
|
||||
PHOTO_ALBUM = new(8)
|
||||
PHOTO = new(9)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,16 +19,19 @@ module PlexRubySDK
|
||||
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') } }
|
||||
# A unique key associated with the writers tag, used for internal identification.
|
||||
# A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# 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(filter: ::String, id: ::Integer, tag: ::String, tag_key: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil)
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
@tag_key = tag_key
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
@@ -37,6 +40,7 @@ module PlexRubySDK
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user