plex_ruby_sdk 0.13.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/plex_ruby_sdk/library.rb +13 -12
- data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_badrequest.rb → get_library_sections_all_badrequest.rb} +3 -3
- data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_errors.rb → get_library_sections_all_errors.rb} +1 -1
- data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_library_errors.rb → get_library_sections_all_library_errors.rb} +1 -1
- data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_unauthorized.rb → get_library_sections_all_unauthorized.rb} +3 -3
- data/lib/plex_ruby_sdk/models/errors.rb +4 -4
- data/lib/plex_ruby_sdk/models/operations/country.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/director.rb +18 -2
- data/lib/plex_ruby_sdk/models/operations/flattenseasons.rb +1 -0
- data/lib/plex_ruby_sdk/models/operations/genre.rb +3 -1
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_mediacontainer.rb +6 -6
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_type.rb +4 -0
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/get_library_items_collection.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_library_items_country.rb +10 -4
- data/lib/plex_ruby_sdk/models/operations/get_library_items_director.rb +12 -4
- data/lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb +2 -6
- data/lib/plex_ruby_sdk/models/operations/get_library_items_genre.rb +13 -6
- data/lib/plex_ruby_sdk/models/operations/{mediaguid.rb → get_library_items_guids.rb} +2 -3
- data/lib/plex_ruby_sdk/models/operations/get_library_items_hasthumbnail.rb +2 -1
- data/lib/plex_ruby_sdk/models/operations/get_library_items_image.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/{get_search_all_libraries_collection.rb → get_library_items_library_optimizedforstreaming.rb} +5 -9
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb +6 -41
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb +42 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_items_location.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_library_items_media.rb +32 -25
- data/lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb +39 -48
- data/lib/plex_ruby_sdk/models/operations/get_library_items_meta.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +146 -141
- data/lib/plex_ruby_sdk/models/operations/get_library_items_optimizedforstreaming.rb +12 -4
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_optimizedforstreaming_1.rb → get_library_items_optimizedforstreaming_1.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_library_items_part.rb +36 -28
- data/lib/plex_ruby_sdk/models/operations/get_library_items_producer.rb +53 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/get_library_items_role.rb +12 -18
- data/lib/plex_ruby_sdk/models/operations/get_library_items_similar.rb +41 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_type.rb +14 -46
- data/lib/plex_ruby_sdk/models/operations/get_library_items_writer.rb +12 -4
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_activedirection.rb → get_library_sections_all_activedirection.rb} +2 -2
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_collection.rb → get_library_sections_all_collection.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_country.rb → get_library_sections_all_country.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_library_items_library_activedirection.rb → get_library_sections_all_defaultdirection.rb} +2 -2
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_director.rb → get_library_sections_all_director.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_field.rb → get_library_sections_all_field.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_library_items_library_fieldtype.rb → get_library_sections_all_fieldtype.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_filter.rb → get_library_sections_all_filter.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_genre.rb → get_library_sections_all_genre.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_search_all_libraries_mediaguid.rb → get_library_sections_all_guids.rb} +2 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_hasthumbnail.rb → get_library_sections_all_hasthumbnail.rb} +2 -2
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_image.rb → get_library_sections_all_image.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_library_optimizedforstreaming.rb → get_library_sections_all_library_optimizedforstreaming.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_library_response_type.rb → get_library_sections_all_library_response_type.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_library_type.rb → get_library_sections_all_library_type.rb} +6 -2
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_media.rb → get_library_sections_all_media.rb} +4 -4
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_mediacontainer.rb → get_library_sections_all_mediacontainer.rb} +13 -13
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_meta.rb → get_library_sections_all_meta.rb} +4 -4
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_metadata.rb → get_library_sections_all_metadata.rb} +18 -18
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_operator.rb → get_library_sections_all_operator.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_optimizedforstreaming.rb → get_library_sections_all_optimizedforstreaming.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_library_sections_all_optimizedforstreaming_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_sections_all_optimizedforstreaming_library_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_part.rb → get_library_sections_all_part.rb} +5 -5
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_queryparam_includemeta.rb → get_library_sections_all_queryparam_includemeta.rb} +2 -2
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_queryparam_type.rb → get_library_sections_all_queryparam_type.rb} +7 -5
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_request.rb → get_library_sections_all_request.rb} +4 -4
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_response.rb → get_library_sections_all_response.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_responsebody.rb → get_library_sections_all_responsebody.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_role.rb → get_library_sections_all_role.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_library_items_library_sort.rb → get_library_sections_all_sort.rb} +4 -4
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_stream.rb → get_library_sections_all_stream.rb} +6 -6
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_type.rb → get_library_sections_all_type.rb} +5 -5
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_ultrablurcolors.rb → get_library_sections_all_ultrablurcolors.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_writer.rb → get_library_sections_all_writer.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_attributes.rb +37 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_chapter.rb +53 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_country.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_director.rb +4 -4
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_extras.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb +3 -1
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_guids.rb +2 -1
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_hasthumbnail.rb +1 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_library_optimizedforstreaming.rb +1 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_marker.rb +53 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_media.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_mediacontainer.rb +10 -10
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_metadata.rb +22 -22
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_part.rb +16 -15
- data/lib/plex_ruby_sdk/models/operations/{metadatarating.rb → get_media_meta_data_ratings.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_request.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_role.rb +12 -8
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb +18 -18
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_type.rb +5 -1
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_writer.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_type.rb +5 -1
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_metadata.rb +18 -18
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_country.rb +10 -4
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_director.rb +12 -4
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_directory.rb +81 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_flattenseasons.rb +1 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_genre.rb +13 -6
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_guids.rb → get_search_all_libraries_guids.rb} +4 -4
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_hasthumbnail.rb +2 -1
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_library_optimizedforstreaming.rb +29 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_location.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_media.rb +32 -25
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_mediacontainer.rb +32 -4
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadata.rb +128 -147
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming.rb +12 -4
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming_library_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_part.rb +36 -28
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_role.rb +12 -18
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_showordering.rb +6 -5
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_type.rb +5 -1
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_writer.rb +12 -4
- data/lib/plex_ruby_sdk/models/operations/get_search_library_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_mediacontainer.rb +14 -14
- data/lib/plex_ruby_sdk/models/operations/{streamtype.rb → gettopwatchedcontent_queryparam_includeguids.rb} +4 -8
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/guids.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/producer.rb +5 -4
- data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/rating.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/role.rb +12 -8
- data/lib/plex_ruby_sdk/models/operations/searchresult.rb +10 -6
- data/lib/plex_ruby_sdk/models/operations/showordering.rb +6 -5
- data/lib/plex_ruby_sdk/models/operations/stream.rb +5 -5
- data/lib/plex_ruby_sdk/models/operations/type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/writer.rb +7 -3
- data/lib/plex_ruby_sdk/models/operations.rb +54 -59
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +3 -3
- metadata +57 -62
- data/lib/plex_ruby_sdk/models/operations/enablecreditsmarkergeneration.rb +0 -20
- data/lib/plex_ruby_sdk/models/operations/episodesort.rb +0 -21
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_defaultdirection.rb +0 -21
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_fieldtype.rb +0 -37
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_sort.rb +0 -63
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_streamtype.rb +0 -25
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_defaultdirection.rb +0 -21
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_field.rb +0 -45
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_filter.rb +0 -49
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_operator.rb +0 -37
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_200_type.rb +0 -22
- data/lib/plex_ruby_sdk/models/operations/get_library_items_stream.rb +0 -181
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_streamtype.rb +0 -25
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_enablecreditsmarkergeneration.rb +0 -20
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_episodesort.rb +0 -21
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadatarating.rb +0 -41
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_stream.rb +0 -181
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllMediaContainer
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -21,10 +21,6 @@ module PlexRubySDK
|
|
21
21
|
field :content, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
22
22
|
# An plugin identifier for the media container.
|
23
23
|
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
24
|
-
# The unique identifier for the library section.
|
25
|
-
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
26
|
-
# The title of the library section.
|
27
|
-
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
28
24
|
# The prefix used for media tag resource paths.
|
29
25
|
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
30
26
|
# The version number for media tags.
|
@@ -45,23 +41,25 @@ module PlexRubySDK
|
|
45
41
|
field :total_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('totalSize') } }
|
46
42
|
# Identifier for the view group layout.
|
47
43
|
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
44
|
+
# The unique identifier for the library section.
|
45
|
+
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
46
|
+
# The title of the library section.
|
47
|
+
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
48
48
|
# The universally unique identifier for the library section.
|
49
49
|
field :library_section_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
50
50
|
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
51
51
|
#
|
52
|
-
field :meta, T.nilable(Models::Operations::
|
52
|
+
field :meta, T.nilable(Models::Operations::GetLibrarySectionsAllMeta), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Meta') } }
|
53
53
|
# An array of metadata items.
|
54
|
-
field :metadata, T.nilable(T::Array[Models::Operations::
|
54
|
+
field :metadata, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
55
55
|
|
56
56
|
|
57
|
-
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String,
|
58
|
-
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil,
|
57
|
+
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, offset: ::Integer, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, total_size: ::Integer, view_group: ::String, library_section_id: T.nilable(::Integer), library_section_title: T.nilable(::String), library_section_uuid: T.nilable(::String), meta: T.nilable(Models::Operations::GetLibrarySectionsAllMeta), metadata: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMetadata])).void }
|
58
|
+
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, offset: nil, size: nil, thumb: nil, title1: nil, title2: nil, total_size: nil, view_group: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil, meta: nil, metadata: nil)
|
59
59
|
@allow_sync = allow_sync
|
60
60
|
@art = art
|
61
61
|
@content = content
|
62
62
|
@identifier = identifier
|
63
|
-
@library_section_id = library_section_id
|
64
|
-
@library_section_title = library_section_title
|
65
63
|
@media_tag_prefix = media_tag_prefix
|
66
64
|
@media_tag_version = media_tag_version
|
67
65
|
@nocache = nocache
|
@@ -72,6 +70,8 @@ module PlexRubySDK
|
|
72
70
|
@title2 = title2
|
73
71
|
@total_size = total_size
|
74
72
|
@view_group = view_group
|
73
|
+
@library_section_id = library_section_id
|
74
|
+
@library_section_title = library_section_title
|
75
75
|
@library_section_uuid = library_section_uuid
|
76
76
|
@meta = meta
|
77
77
|
@metadata = metadata
|
@@ -83,8 +83,6 @@ module PlexRubySDK
|
|
83
83
|
return false unless @art == other.art
|
84
84
|
return false unless @content == other.content
|
85
85
|
return false unless @identifier == other.identifier
|
86
|
-
return false unless @library_section_id == other.library_section_id
|
87
|
-
return false unless @library_section_title == other.library_section_title
|
88
86
|
return false unless @media_tag_prefix == other.media_tag_prefix
|
89
87
|
return false unless @media_tag_version == other.media_tag_version
|
90
88
|
return false unless @nocache == other.nocache
|
@@ -95,6 +93,8 @@ module PlexRubySDK
|
|
95
93
|
return false unless @title2 == other.title2
|
96
94
|
return false unless @total_size == other.total_size
|
97
95
|
return false unless @view_group == other.view_group
|
96
|
+
return false unless @library_section_id == other.library_section_id
|
97
|
+
return false unless @library_section_title == other.library_section_title
|
98
98
|
return false unless @library_section_uuid == other.library_section_uuid
|
99
99
|
return false unless @meta == other.meta
|
100
100
|
return false unless @metadata == other.metadata
|
@@ -10,17 +10,17 @@ module PlexRubySDK
|
|
10
10
|
|
11
11
|
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
12
12
|
#
|
13
|
-
class
|
13
|
+
class GetLibrarySectionsAllMeta
|
14
14
|
extend T::Sig
|
15
15
|
include Crystalline::MetadataFields
|
16
16
|
|
17
17
|
|
18
|
-
field :field_type, T.nilable(T::Array[Models::Operations::
|
18
|
+
field :field_type, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
19
19
|
|
20
|
-
field :type, T.nilable(T::Array[Models::Operations::
|
20
|
+
field :type, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
21
21
|
|
22
22
|
|
23
|
-
sig { params(field_type: T.nilable(T::Array[Models::Operations::
|
23
|
+
sig { params(field_type: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFieldType]), type: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllType])).void }
|
24
24
|
def initialize(field_type: nil, type: nil)
|
25
25
|
@field_type = field_type
|
26
26
|
@type = type
|
@@ -10,7 +10,7 @@ module PlexRubySDK
|
|
10
10
|
|
11
11
|
# Unknown
|
12
12
|
#
|
13
|
-
class
|
13
|
+
class GetLibrarySectionsAllMetadata
|
14
14
|
extend T::Sig
|
15
15
|
include Crystalline::MetadataFields
|
16
16
|
|
@@ -30,8 +30,6 @@ module PlexRubySDK
|
|
30
30
|
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
31
31
|
# The unique key for the media item.
|
32
32
|
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
33
|
-
# The original release date of the media item.
|
34
|
-
field :originally_available_at, ::Date, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(false) } }
|
35
33
|
# The critic rating for the media item.
|
36
34
|
field :rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
37
35
|
# The rating key (Media ID) of this media item. Note: Although this is always an integer, it is represented as a string in the API.
|
@@ -53,25 +51,25 @@ module PlexRubySDK
|
|
53
51
|
# The sort title used for ordering media items.
|
54
52
|
field :title_sort, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
55
53
|
|
56
|
-
field :type, Models::Operations::
|
54
|
+
field :type, Models::Operations::GetLibrarySectionsAllLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllLibraryType, false) } }
|
57
55
|
# The URL for the audience rating image.
|
58
56
|
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
59
57
|
# The source from which chapter data is derived.
|
60
58
|
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
61
59
|
|
62
|
-
field :collection, T.nilable(T::Array[Models::Operations::
|
60
|
+
field :collection, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
|
63
61
|
# The content rating for the media item.
|
64
62
|
field :content_rating, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentRating') } }
|
65
63
|
|
66
|
-
field :country, T.nilable(T::Array[Models::Operations::
|
64
|
+
field :country, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
|
67
65
|
# 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).
|
68
66
|
field :created_at_accuracy, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtAccuracy') } }
|
69
67
|
# The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
|
70
68
|
field :created_at_tz_offset, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtTZOffset') } }
|
71
69
|
|
72
|
-
field :director, T.nilable(T::Array[Models::Operations::
|
70
|
+
field :director, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
73
71
|
|
74
|
-
field :genre, T.nilable(T::Array[Models::Operations::
|
72
|
+
field :genre, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
75
73
|
# The art URL for the grandparent media item.
|
76
74
|
field :grandparent_art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentArt') } }
|
77
75
|
# The GUID of the grandparent media item.
|
@@ -89,9 +87,9 @@ module PlexRubySDK
|
|
89
87
|
# The title of the grandparent media item.
|
90
88
|
field :grandparent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTitle') } }
|
91
89
|
|
92
|
-
field :guids, T.nilable(T::Array[Models::Operations::
|
90
|
+
field :guids, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGuids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
93
91
|
|
94
|
-
field :image, T.nilable(T::Array[Models::Operations::
|
92
|
+
field :image, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
95
93
|
# The Unix timestamp representing the last time the item was rated.
|
96
94
|
field :last_rated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastRatedAt') } }
|
97
95
|
# Unix timestamp for when the media item was last viewed.
|
@@ -99,7 +97,9 @@ module PlexRubySDK
|
|
99
97
|
# The number of leaf items (end nodes) under this media item.
|
100
98
|
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
101
99
|
|
102
|
-
field :media, T.nilable(T::Array[Models::Operations::
|
100
|
+
field :media, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
101
|
+
# The original release date of the media item.
|
102
|
+
field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
|
103
103
|
# The original title of the media item (if different).
|
104
104
|
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
105
105
|
# The GUID of the parent media item.
|
@@ -119,7 +119,7 @@ module PlexRubySDK
|
|
119
119
|
# The URL for the rating image.
|
120
120
|
field :rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingImage') } }
|
121
121
|
|
122
|
-
field :role, T.nilable(T::Array[Models::Operations::
|
122
|
+
field :role, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
123
123
|
# The number of times this media item has been skipped.
|
124
124
|
field :skip_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipCount') } }
|
125
125
|
# The studio that produced the media item.
|
@@ -127,7 +127,7 @@ module PlexRubySDK
|
|
127
127
|
# A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
128
128
|
field :subtype, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtype') } }
|
129
129
|
|
130
|
-
field :ultra_blur_colors, T.nilable(Models::Operations::
|
130
|
+
field :ultra_blur_colors, T.nilable(Models::Operations::GetLibrarySectionsAllUltraBlurColors), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('UltraBlurColors') } }
|
131
131
|
# Unix epoch datetime in seconds
|
132
132
|
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
133
133
|
# The rating provided by a user for the item. This value is expressed as a decimal number.
|
@@ -139,13 +139,13 @@ module PlexRubySDK
|
|
139
139
|
# The current playback offset (in milliseconds).
|
140
140
|
field :view_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewOffset') } }
|
141
141
|
|
142
|
-
field :writer, T.nilable(T::Array[Models::Operations::
|
142
|
+
field :writer, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllWriter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Writer') } }
|
143
143
|
# The release year of the media item.
|
144
144
|
field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
145
145
|
|
146
146
|
|
147
|
-
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String,
|
148
|
-
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil,
|
147
|
+
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetLibrarySectionsAllLibraryType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllDirector]), genre: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGuids]), image: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), media: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllRole]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetLibrarySectionsAllUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllWriter]), year: T.nilable(::Integer)).void }
|
148
|
+
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter_source: nil, collection: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, media: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, primary_extra_key: nil, rating_image: nil, role: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
149
149
|
@added_at = added_at
|
150
150
|
@art = art
|
151
151
|
@audience_rating = audience_rating
|
@@ -154,7 +154,6 @@ module PlexRubySDK
|
|
154
154
|
@guid = guid
|
155
155
|
@index = index
|
156
156
|
@key = key
|
157
|
-
@originally_available_at = originally_available_at
|
158
157
|
@rating = rating
|
159
158
|
@rating_key = rating_key
|
160
159
|
@season_count = season_count
|
@@ -189,6 +188,7 @@ module PlexRubySDK
|
|
189
188
|
@last_viewed_at = last_viewed_at
|
190
189
|
@leaf_count = leaf_count
|
191
190
|
@media = media
|
191
|
+
@originally_available_at = originally_available_at
|
192
192
|
@original_title = original_title
|
193
193
|
@parent_guid = parent_guid
|
194
194
|
@parent_index = parent_index
|
@@ -222,7 +222,6 @@ module PlexRubySDK
|
|
222
222
|
return false unless @guid == other.guid
|
223
223
|
return false unless @index == other.index
|
224
224
|
return false unless @key == other.key
|
225
|
-
return false unless @originally_available_at == other.originally_available_at
|
226
225
|
return false unless @rating == other.rating
|
227
226
|
return false unless @rating_key == other.rating_key
|
228
227
|
return false unless @season_count == other.season_count
|
@@ -257,6 +256,7 @@ module PlexRubySDK
|
|
257
256
|
return false unless @last_viewed_at == other.last_viewed_at
|
258
257
|
return false unless @leaf_count == other.leaf_count
|
259
258
|
return false unless @media == other.media
|
259
|
+
return false unless @originally_available_at == other.originally_available_at
|
260
260
|
return false unless @original_title == other.original_title
|
261
261
|
return false unless @parent_guid == other.parent_guid
|
262
262
|
return false unless @parent_index == other.parent_index
|
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllOptimizedForStreaming
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module PlexRubySDK
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class GetLibrarySectionsAllOptimizedForStreaming1 < T::Enum
|
13
|
+
enums do
|
14
|
+
ZERO = new(0)
|
15
|
+
ONE = new(1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/plex_ruby_sdk/models/operations/get_library_sections_all_optimizedforstreaming_library_1.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module PlexRubySDK
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class GetLibrarySectionsAllOptimizedForStreamingLibrary1 < T::Enum
|
13
|
+
enums do
|
14
|
+
ZERO = new(0)
|
15
|
+
ONE = new(1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllPart
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -34,20 +34,20 @@ module PlexRubySDK
|
|
34
34
|
|
35
35
|
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
36
36
|
|
37
|
-
field :has_thumbnail, T.nilable(Models::Operations::
|
37
|
+
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) } }
|
38
38
|
|
39
39
|
field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
|
40
40
|
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
41
|
-
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::
|
41
|
+
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreamingLibrary1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
42
42
|
|
43
43
|
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
44
44
|
# An array of streams for this part.
|
45
|
-
field :stream, T.nilable(T::Array[Models::Operations::
|
45
|
+
field :stream, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
|
46
46
|
# Video profile for the part.
|
47
47
|
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
48
48
|
|
49
49
|
|
50
|
-
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::
|
50
|
+
sig { params(file: ::String, id: ::Integer, key: ::String, size: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetLibrarySectionsAllHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreamingLibrary1, T::Boolean)), packet_length: T.nilable(::Integer), stream: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllStream]), video_profile: T.nilable(::String)).void }
|
51
51
|
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)
|
52
52
|
@file = file
|
53
53
|
@id = id
|
@@ -8,9 +8,9 @@ module PlexRubySDK
|
|
8
8
|
module Models
|
9
9
|
module Operations
|
10
10
|
|
11
|
-
#
|
11
|
+
# GetLibrarySectionsAllQueryParamIncludeMeta - Adds the Meta object to the response
|
12
12
|
#
|
13
|
-
class
|
13
|
+
class GetLibrarySectionsAllQueryParamIncludeMeta < T::Enum
|
14
14
|
enums do
|
15
15
|
DISABLE = new(0)
|
16
16
|
ENABLE = new(1)
|
@@ -8,22 +8,24 @@ module PlexRubySDK
|
|
8
8
|
module Models
|
9
9
|
module Operations
|
10
10
|
|
11
|
-
#
|
11
|
+
# GetLibrarySectionsAllQueryParamType - The type of media to retrieve or filter by.
|
12
12
|
# 1 = movie
|
13
13
|
# 2 = show
|
14
14
|
# 3 = season
|
15
15
|
# 4 = episode
|
16
16
|
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
17
17
|
#
|
18
|
-
class
|
18
|
+
class GetLibrarySectionsAllQueryParamType < T::Enum
|
19
19
|
enums do
|
20
20
|
MOVIE = new(1)
|
21
21
|
TV_SHOW = new(2)
|
22
22
|
SEASON = new(3)
|
23
23
|
EPISODE = new(4)
|
24
|
-
|
25
|
-
ALBUM = new(
|
26
|
-
TRACK = new(
|
24
|
+
ARTIST = new(5)
|
25
|
+
ALBUM = new(6)
|
26
|
+
TRACK = new(7)
|
27
|
+
PHOTO_ALBUM = new(8)
|
28
|
+
PHOTO = new(9)
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllRequest
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -24,7 +24,7 @@ module PlexRubySDK
|
|
24
24
|
# 4 = episode
|
25
25
|
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
26
26
|
#
|
27
|
-
field :type, Models::Operations::
|
27
|
+
field :type, Models::Operations::GetLibrarySectionsAllQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
28
28
|
|
29
29
|
field :include_advanced, T.nilable(Models::Operations::IncludeAdvanced), { 'query_param': { 'field_name': 'includeAdvanced', 'style': 'form', 'explode': true } }
|
30
30
|
|
@@ -36,7 +36,7 @@ module PlexRubySDK
|
|
36
36
|
field :include_guids, T.nilable(Models::Operations::QueryParamIncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
37
37
|
# Adds the Meta object to the response
|
38
38
|
#
|
39
|
-
field :include_meta, T.nilable(Models::Operations::
|
39
|
+
field :include_meta, T.nilable(Models::Operations::GetLibrarySectionsAllQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
|
40
40
|
# The number of items to return. If not specified, all items will be returned.
|
41
41
|
# If the number of items exceeds the limit, the response will be paginated.
|
42
42
|
# By default this is 50
|
@@ -49,7 +49,7 @@ module PlexRubySDK
|
|
49
49
|
field :x_plex_container_start, T.nilable(::Integer), { 'query_param': { 'field_name': 'X-Plex-Container-Start', 'style': 'form', 'explode': true } }
|
50
50
|
|
51
51
|
|
52
|
-
sig { params(section_key: ::Integer, type: Models::Operations::
|
52
|
+
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 }
|
53
53
|
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)
|
54
54
|
@section_key = section_key
|
55
55
|
@type = type
|
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllResponse
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -20,10 +20,10 @@ module PlexRubySDK
|
|
20
20
|
# HTTP response status code for this operation
|
21
21
|
field :status_code, ::Integer
|
22
22
|
# Successful response containing media container data.
|
23
|
-
field :object, T.nilable(Models::Operations::
|
23
|
+
field :object, T.nilable(Models::Operations::GetLibrarySectionsAllResponseBody)
|
24
24
|
|
25
25
|
|
26
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(Models::Operations::
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(Models::Operations::GetLibrarySectionsAllResponseBody)).void }
|
27
27
|
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
28
28
|
@content_type = content_type
|
29
29
|
@raw_response = raw_response
|
@@ -9,15 +9,15 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
# Successful response containing media container data.
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllResponseBody
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
16
|
|
17
|
-
field :media_container, T.nilable(Models::Operations::
|
17
|
+
field :media_container, T.nilable(Models::Operations::GetLibrarySectionsAllMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(media_container: T.nilable(Models::Operations::
|
20
|
+
sig { params(media_container: T.nilable(Models::Operations::GetLibrarySectionsAllMediaContainer)).void }
|
21
21
|
def initialize(media_container: nil)
|
22
22
|
@media_container = media_container
|
23
23
|
end
|
@@ -9,13 +9,13 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllSort
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
16
|
# The direction of the sort. Can be either `asc` or `desc`.
|
17
17
|
#
|
18
|
-
field :default_direction, Models::Operations::
|
18
|
+
field :default_direction, Models::Operations::GetLibrarySectionsAllDefaultDirection, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllDefaultDirection, false) } }
|
19
19
|
|
20
20
|
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
21
21
|
|
@@ -24,7 +24,7 @@ module PlexRubySDK
|
|
24
24
|
field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
|
25
25
|
# The direction of the sort. Can be either `asc` or `desc`.
|
26
26
|
#
|
27
|
-
field :active_direction, T.nilable(Models::Operations::
|
27
|
+
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) } }
|
28
28
|
|
29
29
|
field :default, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
|
30
30
|
|
@@ -33,7 +33,7 @@ module PlexRubySDK
|
|
33
33
|
field :first_character_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('firstCharacterKey') } }
|
34
34
|
|
35
35
|
|
36
|
-
sig { params(default_direction: Models::Operations::
|
36
|
+
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 }
|
37
37
|
def initialize(default_direction: nil, key: nil, title: nil, active: nil, active_direction: nil, default: nil, desc_key: nil, first_character_key: nil)
|
38
38
|
@default_direction = default_direction
|
39
39
|
@key = key
|
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllStream
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -22,11 +22,11 @@ module PlexRubySDK
|
|
22
22
|
# Unique stream identifier.
|
23
23
|
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
24
24
|
# Stream type:
|
25
|
-
# -
|
26
|
-
# -
|
27
|
-
# -
|
25
|
+
# - VIDEO = 1
|
26
|
+
# - AUDIO = 2
|
27
|
+
# - SUBTITLE = 3
|
28
28
|
#
|
29
|
-
field :stream_type,
|
29
|
+
field :stream_type, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType') } }
|
30
30
|
# Audio channel layout.
|
31
31
|
field :audio_channel_layout, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannelLayout') } }
|
32
32
|
# Bit depth of the video stream.
|
@@ -121,7 +121,7 @@ module PlexRubySDK
|
|
121
121
|
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
122
122
|
|
123
123
|
|
124
|
-
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type:
|
124
|
+
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type: ::Integer, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
125
125
|
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)
|
126
126
|
@codec = codec
|
127
127
|
@display_title = display_title
|
@@ -9,7 +9,7 @@ module PlexRubySDK
|
|
9
9
|
module Operations
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class GetLibrarySectionsAllType
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -22,16 +22,16 @@ module PlexRubySDK
|
|
22
22
|
|
23
23
|
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
24
24
|
|
25
|
-
field :field, T.nilable(T::Array[Models::Operations::
|
25
|
+
field :field, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllField]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Field') } }
|
26
26
|
|
27
|
-
field :filter, T.nilable(T::Array[Models::Operations::
|
27
|
+
field :filter, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllFilter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Filter') } }
|
28
28
|
|
29
|
-
field :sort, T.nilable(T::Array[Models::Operations::
|
29
|
+
field :sort, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllSort]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Sort') } }
|
30
30
|
|
31
31
|
field :subtype, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtype') } }
|
32
32
|
|
33
33
|
|
34
|
-
sig { params(active: T::Boolean, key: ::String, title: ::String, type: ::String, field: T.nilable(T::Array[Models::Operations::
|
34
|
+
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 }
|
35
35
|
def initialize(active: nil, key: nil, title: nil, type: nil, field: nil, filter: nil, sort: nil, subtype: nil)
|
36
36
|
@active = active
|
37
37
|
@key = key
|