plex_ruby_sdk 0.7.4 → 0.7.5
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 +51 -0
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_mediacontainer.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_activedirection.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_collection.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_country.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_defaultdirection.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_director.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_field.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_fieldtype.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_filter.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_genre.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_hasthumbnail.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_image.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_response_type.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_type.rb +23 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_media.rb +79 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_mediacontainer.rb +79 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_meta.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_metadata.rb +214 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_operator.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_part.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_queryparam_includemeta.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_queryparam_type.rb +29 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_request.rb +64 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_role.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_sort.rb +47 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_stream.rb +162 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_type.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_ultrablurcolors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_writer.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_mediacontainer.rb +15 -21
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_mediacontainer.rb +15 -21
- data/lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb +2 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_type.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_guids.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_hasthumbnail.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_media.rb +37 -24
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_mediacontainer.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_metadata.rb +28 -22
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_part.rb +29 -14
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb +8 -5
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_filter.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_type.rb +2 -0
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_filter.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_type.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_mediacontainer.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_type.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_queryparam_includecollections.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_queryparam_includeexternalmedia.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_request.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_type.rb +2 -0
- data/lib/plex_ruby_sdk/models/operations/guids.rb +4 -3
- data/lib/plex_ruby_sdk/models/operations/includeadvanced.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_includecollections.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/queryparam_includeexternalmedia.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/queryparam_includeguids.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/{rating.rb → ratings.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/tag.rb +0 -4
- data/lib/plex_ruby_sdk/models/operations.rb +44 -4
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +2 -2
- metadata +43 -3
@@ -0,0 +1,79 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Indicates whether syncing is allowed.
|
15
|
+
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
16
|
+
# URL for the background artwork of the media container.
|
17
|
+
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
18
|
+
# The content type or mode.
|
19
|
+
field :content, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
20
|
+
# An plugin identifier for the media container.
|
21
|
+
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
22
|
+
# The unique identifier for the library section.
|
23
|
+
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
24
|
+
# The title of the library section.
|
25
|
+
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
26
|
+
# The prefix used for media tag resource paths.
|
27
|
+
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
28
|
+
# The version number for media tags.
|
29
|
+
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
30
|
+
# Specifies whether caching is disabled.
|
31
|
+
field :nocache, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
32
|
+
# Offset value for pagination.
|
33
|
+
field :offset, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('offset') } }
|
34
|
+
# Number of media items returned in this response.
|
35
|
+
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
36
|
+
# URL for the thumbnail image of the media container.
|
37
|
+
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
38
|
+
# The primary title of the media container.
|
39
|
+
field :title1, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title1') } }
|
40
|
+
# The secondary title of the media container.
|
41
|
+
field :title2, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title2') } }
|
42
|
+
# Total number of media items in the library.
|
43
|
+
field :total_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('totalSize') } }
|
44
|
+
# Identifier for the view group layout.
|
45
|
+
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
46
|
+
# The universally unique identifier for the library section.
|
47
|
+
field :library_section_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
48
|
+
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
49
|
+
#
|
50
|
+
field :meta, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryMeta), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Meta') } }
|
51
|
+
# An array of metadata items.
|
52
|
+
field :metadata, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
53
|
+
|
54
|
+
|
55
|
+
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(::PlexRubySDK::Operations::GetAllMediaLibraryMeta), metadata: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryMetadata])).void }
|
56
|
+
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)
|
57
|
+
@allow_sync = allow_sync
|
58
|
+
@art = art
|
59
|
+
@content = content
|
60
|
+
@identifier = identifier
|
61
|
+
@library_section_id = library_section_id
|
62
|
+
@library_section_title = library_section_title
|
63
|
+
@media_tag_prefix = media_tag_prefix
|
64
|
+
@media_tag_version = media_tag_version
|
65
|
+
@nocache = nocache
|
66
|
+
@offset = offset
|
67
|
+
@size = size
|
68
|
+
@thumb = thumb
|
69
|
+
@title1 = title1
|
70
|
+
@title2 = title2
|
71
|
+
@total_size = total_size
|
72
|
+
@view_group = view_group
|
73
|
+
@library_section_uuid = library_section_uuid
|
74
|
+
@meta = meta
|
75
|
+
@metadata = metadata
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
11
|
+
#
|
12
|
+
class GetAllMediaLibraryMeta < ::PlexRubySDK::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
field :field_type, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
17
|
+
|
18
|
+
field :type, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
19
|
+
|
20
|
+
|
21
|
+
sig { params(field_type: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryFieldType]), type: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryType])).void }
|
22
|
+
def initialize(field_type: nil, type: nil)
|
23
|
+
@field_type = field_type
|
24
|
+
@type = type
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,214 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
# Unknown
|
11
|
+
#
|
12
|
+
class GetAllMediaLibraryMetadata < ::PlexRubySDK::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
field :added_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
17
|
+
# The art image URL for the media item.
|
18
|
+
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
19
|
+
# The audience rating for the media item.
|
20
|
+
field :audience_rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRating') } }
|
21
|
+
# The number of child items associated with this media item.
|
22
|
+
field :child_count, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('childCount') } }
|
23
|
+
# The duration of the media item in milliseconds.
|
24
|
+
field :duration, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
25
|
+
# The globally unique identifier for the media item.
|
26
|
+
field :guid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
27
|
+
# The index position of the media item.
|
28
|
+
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
29
|
+
# The unique key for the media item.
|
30
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
31
|
+
# The original release date of the media item.
|
32
|
+
field :originally_available_at, ::Date, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(false) } }
|
33
|
+
# The critic rating for the media item.
|
34
|
+
field :rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
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.
|
36
|
+
field :rating_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
37
|
+
# The total number of seasons (for TV shows).
|
38
|
+
field :season_count, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('seasonCount') } }
|
39
|
+
# A URL‐friendly version of the media title.
|
40
|
+
field :slug, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('slug') } }
|
41
|
+
# A synopsis of the media item.
|
42
|
+
field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
43
|
+
# A brief tagline for the media item.
|
44
|
+
field :tagline, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagline') } }
|
45
|
+
# The theme URL for the media item.
|
46
|
+
field :theme, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('theme') } }
|
47
|
+
# The thumbnail image URL for the media item.
|
48
|
+
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
49
|
+
# The title of the media item.
|
50
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
51
|
+
# The sort title used for ordering media items.
|
52
|
+
field :title_sort, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
53
|
+
|
54
|
+
field :type, ::PlexRubySDK::Operations::GetAllMediaLibraryLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetAllMediaLibraryLibraryType, false) } }
|
55
|
+
# The release year of the media item.
|
56
|
+
field :year, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
57
|
+
# The URL for the audience rating image.
|
58
|
+
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
59
|
+
# The source from which chapter data is derived.
|
60
|
+
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
61
|
+
|
62
|
+
field :collection, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
|
63
|
+
# The content rating for the media item.
|
64
|
+
field :content_rating, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentRating') } }
|
65
|
+
|
66
|
+
field :country, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
|
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
|
+
field :created_at_accuracy, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtAccuracy') } }
|
69
|
+
# The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
|
70
|
+
field :created_at_tz_offset, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtTZOffset') } }
|
71
|
+
|
72
|
+
field :director, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
73
|
+
|
74
|
+
field :genre, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
75
|
+
# The art URL for the grandparent media item.
|
76
|
+
field :grandparent_art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentArt') } }
|
77
|
+
# The GUID of the grandparent media item.
|
78
|
+
field :grandparent_guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentGuid') } }
|
79
|
+
# The key of the grandparent media item.
|
80
|
+
field :grandparent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentKey') } }
|
81
|
+
# The rating key of the grandparent media item.
|
82
|
+
field :grandparent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentRatingKey') } }
|
83
|
+
# The slug for the grandparent media item.
|
84
|
+
field :grandparent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentSlug') } }
|
85
|
+
# The theme URL for the grandparent media item.
|
86
|
+
field :grandparent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTheme') } }
|
87
|
+
# The thumbnail URL for the grandparent media item.
|
88
|
+
field :grandparent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentThumb') } }
|
89
|
+
# The title of the grandparent media item.
|
90
|
+
field :grandparent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTitle') } }
|
91
|
+
|
92
|
+
field :guids, T.nilable(T::Array[::PlexRubySDK::Operations::Guids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
93
|
+
|
94
|
+
field :image, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
95
|
+
# The Unix timestamp representing the last time the item was rated.
|
96
|
+
field :last_rated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastRatedAt') } }
|
97
|
+
# Unix timestamp for when the media item was last viewed.
|
98
|
+
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
99
|
+
# The number of leaf items (end nodes) under this media item.
|
100
|
+
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
101
|
+
|
102
|
+
field :media, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
103
|
+
# The original title of the media item (if different).
|
104
|
+
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
105
|
+
# The GUID of the parent media item.
|
106
|
+
field :parent_guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentGuid') } }
|
107
|
+
# The index position of the parent media item.
|
108
|
+
field :parent_index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentIndex') } }
|
109
|
+
# The key of the parent media item.
|
110
|
+
field :parent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentKey') } }
|
111
|
+
# The rating key of the parent media item.
|
112
|
+
field :parent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentRatingKey') } }
|
113
|
+
# The thumbnail URL for the parent media item.
|
114
|
+
field :parent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentThumb') } }
|
115
|
+
# The title of the parent media item.
|
116
|
+
field :parent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentTitle') } }
|
117
|
+
# The primary extra key associated with this media item.
|
118
|
+
field :primary_extra_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('primaryExtraKey') } }
|
119
|
+
# The URL for the rating image.
|
120
|
+
field :rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingImage') } }
|
121
|
+
|
122
|
+
field :role, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
123
|
+
# The number of times this media item has been skipped.
|
124
|
+
field :skip_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipCount') } }
|
125
|
+
# The studio that produced the media item.
|
126
|
+
field :studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('studio') } }
|
127
|
+
# A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
128
|
+
field :subtype, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtype') } }
|
129
|
+
|
130
|
+
field :ultra_blur_colors, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryUltraBlurColors), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('UltraBlurColors') } }
|
131
|
+
# Unix epoch datetime in seconds
|
132
|
+
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
133
|
+
# The rating provided by a user for the item. This value is expressed as a decimal number.
|
134
|
+
field :user_rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('userRating') } }
|
135
|
+
# The number of times this media item has been viewed.
|
136
|
+
field :view_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewCount') } }
|
137
|
+
# The number of leaf items that have been viewed.
|
138
|
+
field :viewed_leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewedLeafCount') } }
|
139
|
+
# The current playback offset (in milliseconds).
|
140
|
+
field :view_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewOffset') } }
|
141
|
+
|
142
|
+
field :writer, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryWriter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Writer') } }
|
143
|
+
|
144
|
+
|
145
|
+
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: ::PlexRubySDK::Operations::GetAllMediaLibraryLibraryType, year: ::Integer, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryDirector]), genre: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[::PlexRubySDK::Operations::Guids]), image: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), media: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryMedia]), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), rating_image: T.nilable(::String), role: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryRole]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryWriter])).void }
|
146
|
+
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, year: 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)
|
147
|
+
@added_at = added_at
|
148
|
+
@art = art
|
149
|
+
@audience_rating = audience_rating
|
150
|
+
@child_count = child_count
|
151
|
+
@duration = duration
|
152
|
+
@guid = guid
|
153
|
+
@index = index
|
154
|
+
@key = key
|
155
|
+
@originally_available_at = originally_available_at
|
156
|
+
@rating = rating
|
157
|
+
@rating_key = rating_key
|
158
|
+
@season_count = season_count
|
159
|
+
@slug = slug
|
160
|
+
@summary = summary
|
161
|
+
@tagline = tagline
|
162
|
+
@theme = theme
|
163
|
+
@thumb = thumb
|
164
|
+
@title = title
|
165
|
+
@title_sort = title_sort
|
166
|
+
@type = type
|
167
|
+
@year = year
|
168
|
+
@audience_rating_image = audience_rating_image
|
169
|
+
@chapter_source = chapter_source
|
170
|
+
@collection = collection
|
171
|
+
@content_rating = content_rating
|
172
|
+
@country = country
|
173
|
+
@created_at_accuracy = created_at_accuracy
|
174
|
+
@created_at_tz_offset = created_at_tz_offset
|
175
|
+
@director = director
|
176
|
+
@genre = genre
|
177
|
+
@grandparent_art = grandparent_art
|
178
|
+
@grandparent_guid = grandparent_guid
|
179
|
+
@grandparent_key = grandparent_key
|
180
|
+
@grandparent_rating_key = grandparent_rating_key
|
181
|
+
@grandparent_slug = grandparent_slug
|
182
|
+
@grandparent_theme = grandparent_theme
|
183
|
+
@grandparent_thumb = grandparent_thumb
|
184
|
+
@grandparent_title = grandparent_title
|
185
|
+
@guids = guids
|
186
|
+
@image = image
|
187
|
+
@last_rated_at = last_rated_at
|
188
|
+
@last_viewed_at = last_viewed_at
|
189
|
+
@leaf_count = leaf_count
|
190
|
+
@media = media
|
191
|
+
@original_title = original_title
|
192
|
+
@parent_guid = parent_guid
|
193
|
+
@parent_index = parent_index
|
194
|
+
@parent_key = parent_key
|
195
|
+
@parent_rating_key = parent_rating_key
|
196
|
+
@parent_thumb = parent_thumb
|
197
|
+
@parent_title = parent_title
|
198
|
+
@primary_extra_key = primary_extra_key
|
199
|
+
@rating_image = rating_image
|
200
|
+
@role = role
|
201
|
+
@skip_count = skip_count
|
202
|
+
@studio = studio
|
203
|
+
@subtype = subtype
|
204
|
+
@ultra_blur_colors = ultra_blur_colors
|
205
|
+
@updated_at = updated_at
|
206
|
+
@user_rating = user_rating
|
207
|
+
@view_count = view_count
|
208
|
+
@viewed_leaf_count = viewed_leaf_count
|
209
|
+
@view_offset = view_offset
|
210
|
+
@writer = writer
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryOperator < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
16
|
+
|
17
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(key: ::String, title: ::String).void }
|
21
|
+
def initialize(key: nil, title: nil)
|
22
|
+
@key = key
|
23
|
+
@title = title
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryPart < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# File path for the part.
|
15
|
+
field :file, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
16
|
+
# Unique part identifier.
|
17
|
+
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
18
|
+
# Key to access this part.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
20
|
+
# File size in bytes.
|
21
|
+
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
22
|
+
# Indicates if the part is accessible.
|
23
|
+
field :accessible, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('accessible') } }
|
24
|
+
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
25
|
+
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
26
|
+
# Container format of the part.
|
27
|
+
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
28
|
+
# Duration of the part in milliseconds.
|
29
|
+
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
30
|
+
# Indicates if the part exists.
|
31
|
+
field :exists, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('exists') } }
|
32
|
+
|
33
|
+
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
34
|
+
|
35
|
+
field :has_thumbnail, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetAllMediaLibraryHasThumbnail, true) } }
|
36
|
+
|
37
|
+
field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
|
38
|
+
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
39
|
+
field :optimized_for_streaming, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
40
|
+
|
41
|
+
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
42
|
+
# An array of streams for this part.
|
43
|
+
field :stream, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
|
44
|
+
# Video profile for the part.
|
45
|
+
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
46
|
+
|
47
|
+
|
48
|
+
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(::PlexRubySDK::Operations::GetAllMediaLibraryHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(::Object), packet_length: T.nilable(::Integer), stream: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryStream]), video_profile: T.nilable(::String)).void }
|
49
|
+
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)
|
50
|
+
@file = file
|
51
|
+
@id = id
|
52
|
+
@key = key
|
53
|
+
@size = size
|
54
|
+
@accessible = accessible
|
55
|
+
@audio_profile = audio_profile
|
56
|
+
@container = container
|
57
|
+
@duration = duration
|
58
|
+
@exists = exists
|
59
|
+
@has64bit_offsets = has64bit_offsets
|
60
|
+
@has_thumbnail = has_thumbnail
|
61
|
+
@indexes = indexes
|
62
|
+
@optimized_for_streaming = optimized_for_streaming
|
63
|
+
@packet_length = packet_length
|
64
|
+
@stream = stream
|
65
|
+
@video_profile = video_profile
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
# GetAllMediaLibraryQueryParamIncludeMeta - Adds the Meta object to the response
|
11
|
+
#
|
12
|
+
class GetAllMediaLibraryQueryParamIncludeMeta < T::Enum
|
13
|
+
enums do
|
14
|
+
DISABLE = new(0)
|
15
|
+
ENABLE = new(1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,29 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
# GetAllMediaLibraryQueryParamType - The type of media to retrieve or filter by.
|
11
|
+
# 1 = movie
|
12
|
+
# 2 = show
|
13
|
+
# 3 = season
|
14
|
+
# 4 = episode
|
15
|
+
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
16
|
+
#
|
17
|
+
class GetAllMediaLibraryQueryParamType < T::Enum
|
18
|
+
enums do
|
19
|
+
MOVIE = new(1)
|
20
|
+
TV_SHOW = new(2)
|
21
|
+
SEASON = new(3)
|
22
|
+
EPISODE = new(4)
|
23
|
+
AUDIO = new(8)
|
24
|
+
ALBUM = new(9)
|
25
|
+
TRACK = new(10)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,64 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryRequest < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The unique key of the Plex library.
|
15
|
+
# Note: This is unique in the context of the Plex server.
|
16
|
+
#
|
17
|
+
field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
|
18
|
+
# The type of media to retrieve or filter by.
|
19
|
+
# 1 = movie
|
20
|
+
# 2 = show
|
21
|
+
# 3 = season
|
22
|
+
# 4 = episode
|
23
|
+
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
24
|
+
#
|
25
|
+
field :type, ::PlexRubySDK::Operations::GetAllMediaLibraryQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
26
|
+
|
27
|
+
field :include_advanced, T.nilable(::PlexRubySDK::Operations::IncludeAdvanced), { 'query_param': { 'field_name': 'includeAdvanced', 'style': 'form', 'explode': true } }
|
28
|
+
|
29
|
+
field :include_collections, T.nilable(::PlexRubySDK::Operations::QueryParamIncludeCollections), { 'query_param': { 'field_name': 'includeCollections', 'style': 'form', 'explode': true } }
|
30
|
+
|
31
|
+
field :include_external_media, T.nilable(::PlexRubySDK::Operations::QueryParamIncludeExternalMedia), { 'query_param': { 'field_name': 'includeExternalMedia', 'style': 'form', 'explode': true } }
|
32
|
+
# Adds the Guid object to the response
|
33
|
+
#
|
34
|
+
field :include_guids, T.nilable(::PlexRubySDK::Operations::QueryParamIncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
35
|
+
# Adds the Meta object to the response
|
36
|
+
#
|
37
|
+
field :include_meta, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
|
38
|
+
# The number of items to return. If not specified, all items will be returned.
|
39
|
+
# If the number of items exceeds the limit, the response will be paginated.
|
40
|
+
# By default this is 50
|
41
|
+
#
|
42
|
+
field :x_plex_container_size, T.nilable(::Integer), { 'query_param': { 'field_name': 'X-Plex-Container-Size', 'style': 'form', 'explode': true } }
|
43
|
+
# The index of the first item to return. If not specified, the first item will be returned.
|
44
|
+
# If the number of items exceeds the limit, the response will be paginated.
|
45
|
+
# By default this is 0
|
46
|
+
#
|
47
|
+
field :x_plex_container_start, T.nilable(::Integer), { 'query_param': { 'field_name': 'X-Plex-Container-Start', 'style': 'form', 'explode': true } }
|
48
|
+
|
49
|
+
|
50
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetAllMediaLibraryQueryParamType, include_advanced: T.nilable(::PlexRubySDK::Operations::IncludeAdvanced), include_collections: T.nilable(::PlexRubySDK::Operations::QueryParamIncludeCollections), include_external_media: T.nilable(::PlexRubySDK::Operations::QueryParamIncludeExternalMedia), include_guids: T.nilable(::PlexRubySDK::Operations::QueryParamIncludeGuids), include_meta: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryQueryParamIncludeMeta), x_plex_container_size: T.nilable(::Integer), x_plex_container_start: T.nilable(::Integer)).void }
|
51
|
+
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)
|
52
|
+
@section_key = section_key
|
53
|
+
@type = type
|
54
|
+
@include_advanced = include_advanced
|
55
|
+
@include_collections = include_collections
|
56
|
+
@include_external_media = include_external_media
|
57
|
+
@include_guids = include_guids
|
58
|
+
@include_meta = include_meta
|
59
|
+
@x_plex_container_size = x_plex_container_size
|
60
|
+
@x_plex_container_start = x_plex_container_start
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryResponse < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
21
|
+
field :bad_request, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryBadRequest)
|
22
|
+
# Successful response containing media container data.
|
23
|
+
field :object, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryResponseBody)
|
24
|
+
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
25
|
+
field :unauthorized, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryUnauthorized)
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryBadRequest), object: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryResponseBody), unauthorized: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryUnauthorized)).void }
|
29
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, object: nil, unauthorized: nil)
|
30
|
+
@content_type = content_type
|
31
|
+
@raw_response = raw_response
|
32
|
+
@status_code = status_code
|
33
|
+
@bad_request = bad_request
|
34
|
+
@object = object
|
35
|
+
@unauthorized = unauthorized
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
# Successful response containing media container data.
|
11
|
+
class GetAllMediaLibraryResponseBody < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :media_container, T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryMediaContainer)).void }
|
19
|
+
def initialize(media_container: nil)
|
20
|
+
@media_container = media_container
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryRole < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The name of the actor for this role
|
15
|
+
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(tag: ::String).void }
|
19
|
+
def initialize(tag: nil)
|
20
|
+
@tag = tag
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|