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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6ebf162d541d58c19dc2523f70fcad1d84dd358e31d56d6cd843c19356e3edf
|
4
|
+
data.tar.gz: 6925068587896b70952aa41e38beeda87552549c1b5ffcf7cc6a3dd46b511f89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdc8125a02ed11451aeec818791dc64200e71c3c04dea33ddc12470997cd9ba5953e0e0e795f2b665572aa2e2c32888a75a81667f4d41b89087996c1a0a7dbe3
|
7
|
+
data.tar.gz: c26bc9515b62f76be272199a3dda60067b456c9ae18cb12b3d4f9dfff8982aac6470914f24134f34d3dde977b0b157a1a78dd6efd0a1193d198eb08149ab70fe
|
@@ -368,6 +368,57 @@ module PlexRubySDK
|
|
368
368
|
end
|
369
369
|
|
370
370
|
|
371
|
+
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetAllMediaLibraryRequest)).returns(::PlexRubySDK::Operations::GetAllMediaLibraryResponse) }
|
372
|
+
def get_all_media_library(request)
|
373
|
+
# get_all_media_library - Get all media of library
|
374
|
+
# Retrieves a list of all general media data for this library.
|
375
|
+
#
|
376
|
+
url, params = @sdk_configuration.get_server_details
|
377
|
+
base_url = Utils.template_url(url, params)
|
378
|
+
url = Utils.generate_url(
|
379
|
+
::PlexRubySDK::Operations::GetAllMediaLibraryRequest,
|
380
|
+
base_url,
|
381
|
+
'/library/sections/{sectionKey}/all',
|
382
|
+
request
|
383
|
+
)
|
384
|
+
headers = {}
|
385
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetAllMediaLibraryRequest, request)
|
386
|
+
headers['Accept'] = 'application/json'
|
387
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
388
|
+
|
389
|
+
r = @sdk_configuration.client.get(url) do |req|
|
390
|
+
req.headers = headers
|
391
|
+
req.params = query_params
|
392
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
393
|
+
end
|
394
|
+
|
395
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
396
|
+
|
397
|
+
res = ::PlexRubySDK::Operations::GetAllMediaLibraryResponse.new(
|
398
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
399
|
+
)
|
400
|
+
if r.status == 200
|
401
|
+
if Utils.match_content_type(content_type, 'application/json')
|
402
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllMediaLibraryResponseBody)
|
403
|
+
res.object = out
|
404
|
+
end
|
405
|
+
elsif r.status == 400
|
406
|
+
if Utils.match_content_type(content_type, 'application/json')
|
407
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllMediaLibraryBadRequest)
|
408
|
+
res.bad_request = out
|
409
|
+
end
|
410
|
+
elsif r.status == 401
|
411
|
+
if Utils.match_content_type(content_type, 'application/json')
|
412
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllMediaLibraryUnauthorized)
|
413
|
+
res.unauthorized = out
|
414
|
+
end
|
415
|
+
elsif r.status == 404
|
416
|
+
end
|
417
|
+
|
418
|
+
res
|
419
|
+
end
|
420
|
+
|
421
|
+
|
371
422
|
sig { params(section_key: ::Integer, force: T.nilable(::PlexRubySDK::Operations::Force)).returns(::PlexRubySDK::Operations::GetRefreshLibraryMetadataResponse) }
|
372
423
|
def get_refresh_library_metadata(section_key, force = nil)
|
373
424
|
# get_refresh_library_metadata - Refresh Metadata Of The Library
|
@@ -23,8 +23,8 @@ module PlexRubySDK
|
|
23
23
|
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
24
24
|
# Specifies whether caching is disabled.
|
25
25
|
field :nocache, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
26
|
-
|
27
|
-
field :size, ::
|
26
|
+
# Number of media items returned in this response.
|
27
|
+
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
28
28
|
# URL for the thumbnail image of the media container.
|
29
29
|
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
30
30
|
# The primary title of the media container.
|
@@ -39,7 +39,7 @@ module PlexRubySDK
|
|
39
39
|
field :directory, T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(allow_sync: T::Boolean, art: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::
|
42
|
+
sig { params(allow_sync: T::Boolean, art: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, view_group: ::String, view_mode: ::String, directory: T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryDirectory])).void }
|
43
43
|
def initialize(allow_sync: nil, art: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, size: nil, thumb: nil, title1: nil, title2: nil, view_group: nil, view_mode: nil, directory: nil)
|
44
44
|
@allow_sync = allow_sync
|
45
45
|
@art = art
|
@@ -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
|
+
# GetAllMediaLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
11
|
+
#
|
12
|
+
class GetAllMediaLibraryActiveDirection < T::Enum
|
13
|
+
enums do
|
14
|
+
ASCENDING = new('asc')
|
15
|
+
DESCENDING = new('desc')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
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
|
+
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
11
|
+
class GetAllMediaLibraryBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryErrors])).void }
|
19
|
+
def initialize(errors: nil)
|
20
|
+
@errors = errors
|
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 GetAllMediaLibraryCollection < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The user-made collection this media item belongs to
|
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
|
@@ -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 GetAllMediaLibraryCountry < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The country of origin of this media item
|
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
|
@@ -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
|
+
# GetAllMediaLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
11
|
+
#
|
12
|
+
class GetAllMediaLibraryDefaultDirection < T::Enum
|
13
|
+
enums do
|
14
|
+
ASCENDING = new('asc')
|
15
|
+
DESCENDING = new('desc')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
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 GetAllMediaLibraryDirector < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The role of Director
|
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
|
@@ -0,0 +1,30 @@
|
|
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 GetAllMediaLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
16
|
+
|
17
|
+
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
18
|
+
|
19
|
+
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
23
|
+
def initialize(code: nil, message: nil, status: nil)
|
24
|
+
@code = code
|
25
|
+
@message = message
|
26
|
+
@status = status
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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 GetAllMediaLibraryField < ::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
|
+
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
20
|
+
|
21
|
+
field :sub_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subType') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(key: ::String, title: ::String, type: ::String, sub_type: T.nilable(::String)).void }
|
25
|
+
def initialize(key: nil, title: nil, type: nil, sub_type: nil)
|
26
|
+
@key = key
|
27
|
+
@title = title
|
28
|
+
@type = type
|
29
|
+
@sub_type = sub_type
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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 GetAllMediaLibraryFieldType < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :operator, T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryOperator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
|
16
|
+
|
17
|
+
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(operator: T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryOperator], type: ::String).void }
|
21
|
+
def initialize(operator: nil, type: nil)
|
22
|
+
@operator = operator
|
23
|
+
@type = type
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
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 GetAllMediaLibraryFilter < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
16
|
+
|
17
|
+
field :filter_type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filterType') } }
|
18
|
+
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
20
|
+
|
21
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
22
|
+
|
23
|
+
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
24
|
+
|
25
|
+
field :advanced, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('advanced') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(filter: ::String, filter_type: ::String, key: ::String, title: ::String, type: ::String, advanced: T.nilable(T::Boolean)).void }
|
29
|
+
def initialize(filter: nil, filter_type: nil, key: nil, title: nil, type: nil, advanced: nil)
|
30
|
+
@filter = filter
|
31
|
+
@filter_type = filter_type
|
32
|
+
@key = key
|
33
|
+
@title = title
|
34
|
+
@type = type
|
35
|
+
@advanced = advanced
|
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
|
+
|
11
|
+
class GetAllMediaLibraryGenre < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The country of origin of this media item
|
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
|
@@ -0,0 +1,18 @@
|
|
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
|
+
# GetAllMediaLibraryHasThumbnail - Indicates if the part has a thumbnail.
|
11
|
+
class GetAllMediaLibraryHasThumbnail < T::Enum
|
12
|
+
enums do
|
13
|
+
FALSE = new('0')
|
14
|
+
TRUE = new('1')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,30 @@
|
|
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 GetAllMediaLibraryImage < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :alt, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('alt') } }
|
16
|
+
|
17
|
+
field :type, ::PlexRubySDK::Operations::GetAllMediaLibraryLibraryResponseType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetAllMediaLibraryLibraryResponseType, false) } }
|
18
|
+
|
19
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('url') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(alt: ::String, type: ::PlexRubySDK::Operations::GetAllMediaLibraryLibraryResponseType, url: ::String).void }
|
23
|
+
def initialize(alt: nil, type: nil, url: nil)
|
24
|
+
@alt = alt
|
25
|
+
@type = type
|
26
|
+
@url = url
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
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 GetAllMediaLibraryLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
16
|
+
|
17
|
+
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
18
|
+
|
19
|
+
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
23
|
+
def initialize(code: nil, message: nil, status: nil)
|
24
|
+
@code = code
|
25
|
+
@message = message
|
26
|
+
@status = status
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module PlexRubySDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetAllMediaLibraryLibraryResponseType < T::Enum
|
12
|
+
enums do
|
13
|
+
COVER_POSTER = new('coverPoster')
|
14
|
+
BACKGROUND = new('background')
|
15
|
+
SNAPSHOT = new('snapshot')
|
16
|
+
CLEAR_LOGO = new('clearLogo')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
# GetAllMediaLibraryLibraryType - The type of media content
|
11
|
+
#
|
12
|
+
class GetAllMediaLibraryLibraryType < T::Enum
|
13
|
+
enums do
|
14
|
+
MOVIE = new('movie')
|
15
|
+
TV_SHOW = new('show')
|
16
|
+
SEASON = new('season')
|
17
|
+
EPISODE = new('episode')
|
18
|
+
ARTIST = new('artist')
|
19
|
+
ALBUM = new('album')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -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 GetAllMediaLibraryMedia < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Indicates whether voice activity is detected.
|
15
|
+
field :has_voice_activity, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasVoiceActivity') } }
|
16
|
+
# Unique media identifier.
|
17
|
+
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
18
|
+
# An array of parts for this media item.
|
19
|
+
field :part, T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryPart], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
20
|
+
# Aspect ratio of the video.
|
21
|
+
field :aspect_ratio, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('aspectRatio') } }
|
22
|
+
# Number of audio channels.
|
23
|
+
field :audio_channels, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannels') } }
|
24
|
+
# Audio codec used.
|
25
|
+
field :audio_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioCodec') } }
|
26
|
+
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
27
|
+
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
28
|
+
# Bitrate in bits per second.
|
29
|
+
field :bitrate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitrate') } }
|
30
|
+
# File container type.
|
31
|
+
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
32
|
+
|
33
|
+
field :display_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayOffset') } }
|
34
|
+
# Duration of the media in milliseconds.
|
35
|
+
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
36
|
+
|
37
|
+
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
38
|
+
# Video height in pixels.
|
39
|
+
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
40
|
+
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
41
|
+
field :optimized_for_streaming, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
42
|
+
# Video codec used.
|
43
|
+
field :video_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoCodec') } }
|
44
|
+
# Frame rate of the video. Values found include NTSC, PAL, 24p
|
45
|
+
#
|
46
|
+
field :video_frame_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoFrameRate') } }
|
47
|
+
# Video profile (e.g., main 10).
|
48
|
+
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
49
|
+
# Video resolution (e.g., 4k).
|
50
|
+
field :video_resolution, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoResolution') } }
|
51
|
+
# Video width in pixels.
|
52
|
+
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
53
|
+
|
54
|
+
|
55
|
+
sig { params(has_voice_activity: T::Boolean, id: ::Integer, part: T::Array[::PlexRubySDK::Operations::GetAllMediaLibraryPart], aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(::Object), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
56
|
+
def initialize(has_voice_activity: nil, id: nil, part: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, height: nil, optimized_for_streaming: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
57
|
+
@has_voice_activity = has_voice_activity
|
58
|
+
@id = id
|
59
|
+
@part = part
|
60
|
+
@aspect_ratio = aspect_ratio
|
61
|
+
@audio_channels = audio_channels
|
62
|
+
@audio_codec = audio_codec
|
63
|
+
@audio_profile = audio_profile
|
64
|
+
@bitrate = bitrate
|
65
|
+
@container = container
|
66
|
+
@display_offset = display_offset
|
67
|
+
@duration = duration
|
68
|
+
@has64bit_offsets = has64bit_offsets
|
69
|
+
@height = height
|
70
|
+
@optimized_for_streaming = optimized_for_streaming
|
71
|
+
@video_codec = video_codec
|
72
|
+
@video_frame_rate = video_frame_rate
|
73
|
+
@video_profile = video_profile
|
74
|
+
@video_resolution = video_resolution
|
75
|
+
@width = width
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|