plex_ruby_sdk 0.13.1 → 0.15.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/genre.rb +3 -1
- 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_library_type.rb +5 -1
- data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb +5 -3
- 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_all_media_library_defaultdirection.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_all_media_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_all_media_library_guids.rb → get_library_sections_all_guids.rb} +4 -4
- 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} +3 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_mediacontainer.rb → get_library_sections_all_mediacontainer.rb} +4 -4
- 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} +13 -13
- 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_all_media_library_optimizedforstreaming_1.rb → get_library_sections_all_optimizedforstreaming_1.rb} +1 -1
- 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_all_media_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} +3 -3
- data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_streamtype.rb → get_library_sections_all_streamtype.rb} +2 -2
- 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_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_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_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_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_search_all_libraries_metadata.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_type.rb +5 -1
- 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/gettopwatchedcontent_queryparam_includeguids.rb +21 -0
- 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/type.rb +5 -3
- data/lib/plex_ruby_sdk/models/operations/writer.rb +7 -3
- data/lib/plex_ruby_sdk/models/operations.rb +37 -36
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +2 -2
- metadata +42 -41
@@ -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
|
|
@@ -49,12 +49,12 @@ module PlexRubySDK
|
|
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, 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::
|
57
|
+
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 }
|
58
58
|
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)
|
59
59
|
@allow_sync = allow_sync
|
60
60
|
@art = art
|
@@ -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
|
|
@@ -53,25 +53,25 @@ module PlexRubySDK
|
|
53
53
|
# The sort title used for ordering media items.
|
54
54
|
field :title_sort, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
55
55
|
|
56
|
-
field :type, Models::Operations::
|
56
|
+
field :type, Models::Operations::GetLibrarySectionsAllLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllLibraryType, false) } }
|
57
57
|
# The URL for the audience rating image.
|
58
58
|
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
59
59
|
# The source from which chapter data is derived.
|
60
60
|
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
61
61
|
|
62
|
-
field :collection, T.nilable(T::Array[Models::Operations::
|
62
|
+
field :collection, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
|
63
63
|
# The content rating for the media item.
|
64
64
|
field :content_rating, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentRating') } }
|
65
65
|
|
66
|
-
field :country, T.nilable(T::Array[Models::Operations::
|
66
|
+
field :country, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
|
67
67
|
# 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
68
|
field :created_at_accuracy, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtAccuracy') } }
|
69
69
|
# The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
|
70
70
|
field :created_at_tz_offset, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtTZOffset') } }
|
71
71
|
|
72
|
-
field :director, T.nilable(T::Array[Models::Operations::
|
72
|
+
field :director, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
73
73
|
|
74
|
-
field :genre, T.nilable(T::Array[Models::Operations::
|
74
|
+
field :genre, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
75
75
|
# The art URL for the grandparent media item.
|
76
76
|
field :grandparent_art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentArt') } }
|
77
77
|
# The GUID of the grandparent media item.
|
@@ -89,9 +89,9 @@ module PlexRubySDK
|
|
89
89
|
# The title of the grandparent media item.
|
90
90
|
field :grandparent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTitle') } }
|
91
91
|
|
92
|
-
field :guids, T.nilable(T::Array[Models::Operations::
|
92
|
+
field :guids, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGuids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
93
93
|
|
94
|
-
field :image, T.nilable(T::Array[Models::Operations::
|
94
|
+
field :image, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
95
95
|
# The Unix timestamp representing the last time the item was rated.
|
96
96
|
field :last_rated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastRatedAt') } }
|
97
97
|
# Unix timestamp for when the media item was last viewed.
|
@@ -99,7 +99,7 @@ module PlexRubySDK
|
|
99
99
|
# The number of leaf items (end nodes) under this media item.
|
100
100
|
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
101
101
|
|
102
|
-
field :media, T.nilable(T::Array[Models::Operations::
|
102
|
+
field :media, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
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,12 +139,12 @@ 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, 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::
|
147
|
+
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 }
|
148
148
|
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)
|
149
149
|
@added_at = added_at
|
150
150
|
@art = art
|
@@ -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
|
|
@@ -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::GetLibrarySectionsAllOptimizedForStreaming1, 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::GetLibrarySectionsAllOptimizedForStreaming1, 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
|
|
@@ -26,7 +26,7 @@ module PlexRubySDK
|
|
26
26
|
# - 2 = audio
|
27
27
|
# - 3 = subtitle
|
28
28
|
#
|
29
|
-
field :stream_type, Models::Operations::
|
29
|
+
field :stream_type, Models::Operations::GetLibrarySectionsAllStreamType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllStreamType, false) } }
|
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: Models::Operations::
|
124
|
+
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 }
|
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
|
@@ -8,12 +8,12 @@ module PlexRubySDK
|
|
8
8
|
module Models
|
9
9
|
module Operations
|
10
10
|
|
11
|
-
#
|
11
|
+
# GetLibrarySectionsAllStreamType - Stream type:
|
12
12
|
# - 1 = video
|
13
13
|
# - 2 = audio
|
14
14
|
# - 3 = subtitle
|
15
15
|
#
|
16
|
-
class
|
16
|
+
class GetLibrarySectionsAllStreamType < T::Enum
|
17
17
|
enums do
|
18
18
|
VIDEO = new(1)
|
19
19
|
AUDIO = new(2)
|
@@ -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
|
@@ -14,25 +14,27 @@ module PlexRubySDK
|
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
16
|
|
17
|
+
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
18
|
+
# The unique identifier for the country.
|
19
|
+
# NOTE: This is different for each Plex server and is not globally unique.
|
20
|
+
#
|
17
21
|
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
18
22
|
# The country of origin of this media item
|
19
23
|
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
20
24
|
|
21
|
-
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
22
25
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
+
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
27
|
+
def initialize(filter: nil, id: nil, tag: nil)
|
28
|
+
@filter = filter
|
26
29
|
@id = id
|
27
30
|
@tag = tag
|
28
|
-
@filter = filter
|
29
31
|
end
|
30
32
|
|
31
33
|
def ==(other)
|
32
34
|
return false unless other.is_a? self.class
|
35
|
+
return false unless @filter == other.filter
|
33
36
|
return false unless @id == other.id
|
34
37
|
return false unless @tag == other.tag
|
35
|
-
return false unless @filter == other.filter
|
36
38
|
true
|
37
39
|
end
|
38
40
|
end
|
@@ -19,13 +19,13 @@ module PlexRubySDK
|
|
19
19
|
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
20
20
|
# The role of Director
|
21
21
|
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
22
|
-
# A unique key associated with the director's tag, used for internal identification.
|
23
|
-
field :tag_key,
|
24
|
-
# The URL of the thumbnail image for the director.
|
22
|
+
# A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
23
|
+
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
24
|
+
# The absolute URL of the thumbnail image for the director.
|
25
25
|
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key:
|
28
|
+
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: ::String, thumb: T.nilable(::String)).void }
|
29
29
|
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
|
30
30
|
@filter = filter
|
31
31
|
@id = id
|
@@ -15,7 +15,9 @@ module PlexRubySDK
|
|
15
15
|
|
16
16
|
|
17
17
|
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
18
|
-
|
18
|
+
# The unique identifier for the genre.
|
19
|
+
# NOTE: This is different for each Plex server and is not globally unique.
|
20
|
+
#
|
19
21
|
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
20
22
|
# The genre name of this media-item
|
21
23
|
#
|
@@ -13,7 +13,8 @@ module PlexRubySDK
|
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
|
-
# The
|
16
|
+
# The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
17
|
+
#
|
17
18
|
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
18
19
|
|
19
20
|
|
@@ -13,8 +13,8 @@ module PlexRubySDK
|
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
|
-
#
|
17
|
-
field :rating_key, ::
|
16
|
+
# The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
|
17
|
+
field :rating_key, ::String, { 'path_param': { 'field_name': 'ratingKey', 'style': 'simple', 'explode': false } }
|
18
18
|
# Trigger asynchronous metadata augmentation.
|
19
19
|
field :async_augment_metadata, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'asyncAugmentMetadata', 'style': 'form', 'explode': true } }
|
20
20
|
# Trigger asynchronous file checking.
|
@@ -43,7 +43,7 @@ module PlexRubySDK
|
|
43
43
|
field :include_stations, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeStations', 'style': 'form', 'explode': true } }
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(rating_key: ::
|
46
|
+
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 }
|
47
47
|
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)
|
48
48
|
@rating_key = rating_key
|
49
49
|
@async_augment_metadata = async_augment_metadata
|