plex_ruby_sdk 0.7.3 → 0.7.4
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 +80 -19
- data/lib/plex_ruby_sdk/models/operations/{get_meta_data_by_rating_key_badrequest.rb → get_actors_library_badrequest.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_directory.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/{get_meta_data_by_rating_key_errors.rb → get_actors_library_errors.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/{get_meta_data_by_rating_key_library_errors.rb → get_actors_library_library_errors.rb} +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_mediacontainer.rb +60 -0
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_queryparam_type.rb +29 -0
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_request.rb +35 -0
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/{get_meta_data_by_rating_key_unauthorized.rb → get_actors_library_unauthorized.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_queryparam_type.rb +29 -0
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_request.rb +11 -2
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_queryparam_type.rb +29 -0
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_request.rb +11 -2
- data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_library_items_request.rb +11 -11
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_country.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_director.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_image.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_location.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_media.rb +66 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_mediacontainer.rb +48 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_metadata.rb +198 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_part.rb +54 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_request.rb +63 -0
- data/lib/plex_ruby_sdk/models/operations/{get_meta_data_by_rating_key_response.rb → get_media_meta_data_response.rb} +5 -5
- data/lib/plex_ruby_sdk/models/operations/{get_meta_data_by_rating_key_responsebody.rb → get_media_meta_data_responsebody.rb} +3 -3
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_role.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb +159 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_ultrablurcolors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_writer.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_request.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_request.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_search_library_queryparam_type.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/get_search_library_request.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_request.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/guids.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/producer.rb +14 -11
- data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations/rating.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/similar.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/type.rb +1 -1
- data/lib/plex_ruby_sdk/models/operations.rb +34 -18
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +2 -2
- metadata +36 -20
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_country.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_director.rb +0 -36
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_genre.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_media.rb +0 -72
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_mediacontainer.rb +0 -48
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_metadata.rb +0 -135
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_part.rb +0 -54
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_request.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_role.rb +0 -39
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_stream.rb +0 -117
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_writer.rb +0 -36
- data/lib/plex_ruby_sdk/models/operations/ratings.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aab2d5a5c3fd56d2f87a1ad2ed378ee33cb261fca295afa8b45a20e97007237
|
4
|
+
data.tar.gz: 915b5d4f4df15a0b3dafd021ffcb28f7cbf8869de8e03781f7fee21e124058f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 295e32cdd5d52ff7e91e24cb24cd0d525b028ce565f691739d8d49c3342b3c9f7cc97cc595ecbf9104779a3718eebce0703b07db2366794b304f5ec3afff0acf
|
7
|
+
data.tar.gz: 65947eb9d2582ecdbe8845b3005752fdb540fe0c7852167bbf1b310813d151bd6813cac0fb59c17c3618785f305b8ee73ae28fd0d831756dda93615fe207fc2b
|
@@ -491,14 +491,15 @@ module PlexRubySDK
|
|
491
491
|
end
|
492
492
|
|
493
493
|
|
494
|
-
sig { params(section_key: ::Integer).returns(::PlexRubySDK::Operations::GetGenresLibraryResponse) }
|
495
|
-
def get_genres_library(section_key)
|
494
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetGenresLibraryQueryParamType).returns(::PlexRubySDK::Operations::GetGenresLibraryResponse) }
|
495
|
+
def get_genres_library(section_key, type)
|
496
496
|
# get_genres_library - Get Genres of library media
|
497
497
|
# Retrieves a list of all the genres that are found for the media in this library.
|
498
498
|
#
|
499
499
|
request = ::PlexRubySDK::Operations::GetGenresLibraryRequest.new(
|
500
500
|
|
501
|
-
section_key: section_key
|
501
|
+
section_key: section_key,
|
502
|
+
type: type
|
502
503
|
)
|
503
504
|
url, params = @sdk_configuration.get_server_details
|
504
505
|
base_url = Utils.template_url(url, params)
|
@@ -509,11 +510,13 @@ module PlexRubySDK
|
|
509
510
|
request
|
510
511
|
)
|
511
512
|
headers = {}
|
513
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetGenresLibraryRequest, request)
|
512
514
|
headers['Accept'] = 'application/json'
|
513
515
|
headers['user-agent'] = @sdk_configuration.user_agent
|
514
516
|
|
515
517
|
r = @sdk_configuration.client.get(url) do |req|
|
516
518
|
req.headers = headers
|
519
|
+
req.params = query_params
|
517
520
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
518
521
|
end
|
519
522
|
|
@@ -544,14 +547,15 @@ module PlexRubySDK
|
|
544
547
|
end
|
545
548
|
|
546
549
|
|
547
|
-
sig { params(section_key: ::Integer).returns(::PlexRubySDK::Operations::GetCountriesLibraryResponse) }
|
548
|
-
def get_countries_library(section_key)
|
550
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetCountriesLibraryQueryParamType).returns(::PlexRubySDK::Operations::GetCountriesLibraryResponse) }
|
551
|
+
def get_countries_library(section_key, type)
|
549
552
|
# get_countries_library - Get Countries of library media
|
550
553
|
# Retrieves a list of all the countries that are found for the media in this library.
|
551
554
|
#
|
552
555
|
request = ::PlexRubySDK::Operations::GetCountriesLibraryRequest.new(
|
553
556
|
|
554
|
-
section_key: section_key
|
557
|
+
section_key: section_key,
|
558
|
+
type: type
|
555
559
|
)
|
556
560
|
url, params = @sdk_configuration.get_server_details
|
557
561
|
base_url = Utils.template_url(url, params)
|
@@ -562,11 +566,13 @@ module PlexRubySDK
|
|
562
566
|
request
|
563
567
|
)
|
564
568
|
headers = {}
|
569
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetCountriesLibraryRequest, request)
|
565
570
|
headers['Accept'] = 'application/json'
|
566
571
|
headers['user-agent'] = @sdk_configuration.user_agent
|
567
572
|
|
568
573
|
r = @sdk_configuration.client.get(url) do |req|
|
569
574
|
req.headers = headers
|
575
|
+
req.params = query_params
|
570
576
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
571
577
|
end
|
572
578
|
|
@@ -597,6 +603,62 @@ module PlexRubySDK
|
|
597
603
|
end
|
598
604
|
|
599
605
|
|
606
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetActorsLibraryQueryParamType).returns(::PlexRubySDK::Operations::GetActorsLibraryResponse) }
|
607
|
+
def get_actors_library(section_key, type)
|
608
|
+
# get_actors_library - Get Actors of library media
|
609
|
+
# Retrieves a list of all the actors that are found for the media in this library.
|
610
|
+
#
|
611
|
+
request = ::PlexRubySDK::Operations::GetActorsLibraryRequest.new(
|
612
|
+
|
613
|
+
section_key: section_key,
|
614
|
+
type: type
|
615
|
+
)
|
616
|
+
url, params = @sdk_configuration.get_server_details
|
617
|
+
base_url = Utils.template_url(url, params)
|
618
|
+
url = Utils.generate_url(
|
619
|
+
::PlexRubySDK::Operations::GetActorsLibraryRequest,
|
620
|
+
base_url,
|
621
|
+
'/library/sections/{sectionKey}/actor',
|
622
|
+
request
|
623
|
+
)
|
624
|
+
headers = {}
|
625
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetActorsLibraryRequest, request)
|
626
|
+
headers['Accept'] = 'application/json'
|
627
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
628
|
+
|
629
|
+
r = @sdk_configuration.client.get(url) do |req|
|
630
|
+
req.headers = headers
|
631
|
+
req.params = query_params
|
632
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
633
|
+
end
|
634
|
+
|
635
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
636
|
+
|
637
|
+
res = ::PlexRubySDK::Operations::GetActorsLibraryResponse.new(
|
638
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
639
|
+
)
|
640
|
+
if r.status == 200
|
641
|
+
if Utils.match_content_type(content_type, 'application/json')
|
642
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetActorsLibraryResponseBody)
|
643
|
+
res.object = out
|
644
|
+
end
|
645
|
+
elsif r.status == 400
|
646
|
+
if Utils.match_content_type(content_type, 'application/json')
|
647
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetActorsLibraryBadRequest)
|
648
|
+
res.bad_request = out
|
649
|
+
end
|
650
|
+
elsif r.status == 401
|
651
|
+
if Utils.match_content_type(content_type, 'application/json')
|
652
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetActorsLibraryUnauthorized)
|
653
|
+
res.unauthorized = out
|
654
|
+
end
|
655
|
+
elsif r.status == 404
|
656
|
+
end
|
657
|
+
|
658
|
+
res
|
659
|
+
end
|
660
|
+
|
661
|
+
|
600
662
|
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetSearchAllLibrariesRequest)).returns(::PlexRubySDK::Operations::GetSearchAllLibrariesResponse) }
|
601
663
|
def get_search_all_libraries(request)
|
602
664
|
# get_search_all_libraries - Search All Libraries
|
@@ -642,52 +704,51 @@ module PlexRubySDK
|
|
642
704
|
end
|
643
705
|
|
644
706
|
|
645
|
-
sig { params(
|
646
|
-
def
|
647
|
-
#
|
648
|
-
# This endpoint will return the
|
707
|
+
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetMediaMetaDataRequest)).returns(::PlexRubySDK::Operations::GetMediaMetaDataResponse) }
|
708
|
+
def get_media_meta_data(request)
|
709
|
+
# get_media_meta_data - Get Media Metadata
|
710
|
+
# This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
|
649
711
|
#
|
650
|
-
request = ::PlexRubySDK::Operations::GetMetaDataByRatingKeyRequest.new(
|
651
|
-
|
652
|
-
rating_key: rating_key
|
653
|
-
)
|
654
712
|
url, params = @sdk_configuration.get_server_details
|
655
713
|
base_url = Utils.template_url(url, params)
|
656
714
|
url = Utils.generate_url(
|
657
|
-
::PlexRubySDK::Operations::
|
715
|
+
::PlexRubySDK::Operations::GetMediaMetaDataRequest,
|
658
716
|
base_url,
|
659
717
|
'/library/metadata/{ratingKey}',
|
660
718
|
request
|
661
719
|
)
|
662
720
|
headers = {}
|
721
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetMediaMetaDataRequest, request)
|
663
722
|
headers['Accept'] = 'application/json'
|
664
723
|
headers['user-agent'] = @sdk_configuration.user_agent
|
665
724
|
|
666
725
|
r = @sdk_configuration.client.get(url) do |req|
|
667
726
|
req.headers = headers
|
727
|
+
req.params = query_params
|
668
728
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
669
729
|
end
|
670
730
|
|
671
731
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
672
732
|
|
673
|
-
res = ::PlexRubySDK::Operations::
|
733
|
+
res = ::PlexRubySDK::Operations::GetMediaMetaDataResponse.new(
|
674
734
|
status_code: r.status, content_type: content_type, raw_response: r
|
675
735
|
)
|
676
736
|
if r.status == 200
|
677
737
|
if Utils.match_content_type(content_type, 'application/json')
|
678
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::
|
738
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaMetaDataResponseBody)
|
679
739
|
res.object = out
|
680
740
|
end
|
681
741
|
elsif r.status == 400
|
682
742
|
if Utils.match_content_type(content_type, 'application/json')
|
683
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::
|
743
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaMetaDataBadRequest)
|
684
744
|
res.bad_request = out
|
685
745
|
end
|
686
746
|
elsif r.status == 401
|
687
747
|
if Utils.match_content_type(content_type, 'application/json')
|
688
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::
|
748
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaMetaDataUnauthorized)
|
689
749
|
res.unauthorized = out
|
690
750
|
end
|
751
|
+
elsif r.status == 404
|
691
752
|
end
|
692
753
|
|
693
754
|
res
|
@@ -8,14 +8,14 @@ module PlexRubySDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
11
|
-
class
|
11
|
+
class GetActorsLibraryBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::
|
15
|
+
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
16
16
|
|
17
17
|
|
18
|
-
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::
|
18
|
+
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryErrors])).void }
|
19
19
|
def initialize(errors: nil)
|
20
20
|
@errors = errors
|
21
21
|
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 GetActorsLibraryDirectory < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# A fast lookup key for the actor relative url.
|
15
|
+
field :fast_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('fastKey') } }
|
16
|
+
# A unique key representing the actor.
|
17
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
18
|
+
# URL for the thumbnail image of the actor.
|
19
|
+
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
20
|
+
# The name of the actor.
|
21
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(fast_key: ::String, key: ::String, thumb: ::String, title: ::String).void }
|
25
|
+
def initialize(fast_key: nil, key: nil, thumb: nil, title: nil)
|
26
|
+
@fast_key = fast_key
|
27
|
+
@key = key
|
28
|
+
@thumb = thumb
|
29
|
+
@title = title
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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 GetActorsLibraryMediaContainer < ::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
|
+
# An plugin identifier for the media container.
|
19
|
+
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
20
|
+
# The prefix used for media tag resource paths.
|
21
|
+
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
22
|
+
# The version number for media tags.
|
23
|
+
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
24
|
+
# Specifies whether caching is disabled.
|
25
|
+
field :nocache, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
26
|
+
|
27
|
+
field :size, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
28
|
+
# URL for the thumbnail image of the media container.
|
29
|
+
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
30
|
+
# The primary title of the media container.
|
31
|
+
field :title1, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title1') } }
|
32
|
+
# The secondary title of the media container.
|
33
|
+
field :title2, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title2') } }
|
34
|
+
# Identifier for the view group layout.
|
35
|
+
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
36
|
+
# Identifier for the view mode.
|
37
|
+
field :view_mode, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewMode') } }
|
38
|
+
# An array of actor entries for media items.
|
39
|
+
field :directory, T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(allow_sync: T::Boolean, art: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::Float, thumb: ::String, title1: ::String, title2: ::String, view_group: ::String, view_mode: ::String, directory: T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryDirectory])).void }
|
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
|
+
@allow_sync = allow_sync
|
45
|
+
@art = art
|
46
|
+
@identifier = identifier
|
47
|
+
@media_tag_prefix = media_tag_prefix
|
48
|
+
@media_tag_version = media_tag_version
|
49
|
+
@nocache = nocache
|
50
|
+
@size = size
|
51
|
+
@thumb = thumb
|
52
|
+
@title1 = title1
|
53
|
+
@title2 = title2
|
54
|
+
@view_group = view_group
|
55
|
+
@view_mode = view_mode
|
56
|
+
@directory = directory
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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
|
+
# GetActorsLibraryQueryParamType - 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 GetActorsLibraryQueryParamType < 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,35 @@
|
|
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 GetActorsLibraryRequest < ::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::GetActorsLibraryQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetActorsLibraryQueryParamType).void }
|
29
|
+
def initialize(section_key: nil, type: nil)
|
30
|
+
@section_key = section_key
|
31
|
+
@type = type
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
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 GetActorsLibraryResponse < ::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::GetActorsLibraryBadRequest)
|
22
|
+
# Successful response containing media container data.
|
23
|
+
field :object, T.nilable(::PlexRubySDK::Operations::GetActorsLibraryResponseBody)
|
24
|
+
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
25
|
+
field :unauthorized, T.nilable(::PlexRubySDK::Operations::GetActorsLibraryUnauthorized)
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::GetActorsLibraryBadRequest), object: T.nilable(::PlexRubySDK::Operations::GetActorsLibraryResponseBody), unauthorized: T.nilable(::PlexRubySDK::Operations::GetActorsLibraryUnauthorized)).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 GetActorsLibraryResponseBody < ::PlexRubySDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :media_container, T.nilable(::PlexRubySDK::Operations::GetActorsLibraryMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::GetActorsLibraryMediaContainer)).void }
|
19
|
+
def initialize(media_container: nil)
|
20
|
+
@media_container = media_container
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -8,14 +8,14 @@ module PlexRubySDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
11
|
-
class
|
11
|
+
class GetActorsLibraryUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::
|
15
|
+
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
16
16
|
|
17
17
|
|
18
|
-
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::
|
18
|
+
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryLibraryErrors])).void }
|
19
19
|
def initialize(errors: nil)
|
20
20
|
@errors = errors
|
21
21
|
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
|
+
# GetCountriesLibraryQueryParamType - 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 GetCountriesLibraryQueryParamType < 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
|
@@ -15,11 +15,20 @@ module PlexRubySDK
|
|
15
15
|
# Note: This is unique in the context of the Plex server.
|
16
16
|
#
|
17
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::GetCountriesLibraryQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
18
26
|
|
19
27
|
|
20
|
-
sig { params(section_key: ::Integer).void }
|
21
|
-
def initialize(section_key: nil)
|
28
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetCountriesLibraryQueryParamType).void }
|
29
|
+
def initialize(section_key: nil, type: nil)
|
22
30
|
@section_key = section_key
|
31
|
+
@type = type
|
23
32
|
end
|
24
33
|
end
|
25
34
|
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
|
+
# GetGenresLibraryQueryParamType - 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 GetGenresLibraryQueryParamType < 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
|
@@ -15,11 +15,20 @@ module PlexRubySDK
|
|
15
15
|
# Note: This is unique in the context of the Plex server.
|
16
16
|
#
|
17
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::GetGenresLibraryQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
18
26
|
|
19
27
|
|
20
|
-
sig { params(section_key: ::Integer).void }
|
21
|
-
def initialize(section_key: nil)
|
28
|
+
sig { params(section_key: ::Integer, type: ::PlexRubySDK::Operations::GetGenresLibraryQueryParamType).void }
|
29
|
+
def initialize(section_key: nil, type: nil)
|
22
30
|
@section_key = section_key
|
31
|
+
@type = type
|
23
32
|
end
|
24
33
|
end
|
25
34
|
end
|
@@ -17,20 +17,20 @@ module PlexRubySDK
|
|
17
17
|
field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
|
18
18
|
# A key representing a specific tag within the section.
|
19
19
|
field :tag, ::PlexRubySDK::Operations::Tag, { 'path_param': { 'field_name': 'tag', 'style': 'simple', 'explode': false } }
|
20
|
-
#
|
21
|
-
#
|
22
|
-
field :include_guids, T.nilable(::PlexRubySDK::Operations::IncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
23
|
-
# Adds the Meta object to the response
|
24
|
-
#
|
25
|
-
field :include_meta, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
|
26
|
-
# The type of media to retrieve.
|
20
|
+
# The type of media to retrieve or filter by.
|
27
21
|
# 1 = movie
|
28
22
|
# 2 = show
|
29
23
|
# 3 = season
|
30
24
|
# 4 = episode
|
31
25
|
# E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
32
26
|
#
|
33
|
-
field :type,
|
27
|
+
field :type, ::PlexRubySDK::Operations::GetLibraryItemsQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
28
|
+
# Adds the Guids object to the response
|
29
|
+
#
|
30
|
+
field :include_guids, T.nilable(::PlexRubySDK::Operations::IncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
|
31
|
+
# Adds the Meta object to the response
|
32
|
+
#
|
33
|
+
field :include_meta, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
|
34
34
|
# The number of items to return. If not specified, all items will be returned.
|
35
35
|
# If the number of items exceeds the limit, the response will be paginated.
|
36
36
|
# By default this is 50
|
@@ -43,13 +43,13 @@ module PlexRubySDK
|
|
43
43
|
field :x_plex_container_start, T.nilable(::Integer), { 'query_param': { 'field_name': 'X-Plex-Container-Start', 'style': 'form', 'explode': true } }
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(section_key: ::Integer, tag: ::PlexRubySDK::Operations::Tag,
|
47
|
-
def initialize(section_key: nil, tag: nil,
|
46
|
+
sig { params(section_key: ::Integer, tag: ::PlexRubySDK::Operations::Tag, type: ::PlexRubySDK::Operations::GetLibraryItemsQueryParamType, include_guids: T.nilable(::PlexRubySDK::Operations::IncludeGuids), include_meta: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamIncludeMeta), x_plex_container_size: T.nilable(::Integer), x_plex_container_start: T.nilable(::Integer)).void }
|
47
|
+
def initialize(section_key: nil, tag: nil, type: nil, include_guids: nil, include_meta: nil, x_plex_container_size: nil, x_plex_container_start: nil)
|
48
48
|
@section_key = section_key
|
49
49
|
@tag = tag
|
50
|
+
@type = type
|
50
51
|
@include_guids = include_guids
|
51
52
|
@include_meta = include_meta
|
52
|
-
@type = type
|
53
53
|
@x_plex_container_size = x_plex_container_size
|
54
54
|
@x_plex_container_start = x_plex_container_start
|
55
55
|
end
|