plex_ruby_sdk 0.13.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/plex_ruby_sdk/library.rb +13 -12
  3. data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_badrequest.rb → get_library_sections_all_badrequest.rb} +3 -3
  4. data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_errors.rb → get_library_sections_all_errors.rb} +1 -1
  5. data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_library_errors.rb → get_library_sections_all_library_errors.rb} +1 -1
  6. data/lib/plex_ruby_sdk/models/errors/{get_all_media_library_unauthorized.rb → get_library_sections_all_unauthorized.rb} +3 -3
  7. data/lib/plex_ruby_sdk/models/errors.rb +4 -4
  8. data/lib/plex_ruby_sdk/models/operations/country.rb +8 -6
  9. data/lib/plex_ruby_sdk/models/operations/director.rb +18 -2
  10. data/lib/plex_ruby_sdk/models/operations/genre.rb +3 -1
  11. data/lib/plex_ruby_sdk/models/operations/get_actors_library_queryparam_type.rb +5 -3
  12. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_type.rb +4 -0
  13. data/lib/plex_ruby_sdk/models/operations/get_countries_library_queryparam_type.rb +5 -3
  14. data/lib/plex_ruby_sdk/models/operations/get_genres_library_queryparam_type.rb +5 -3
  15. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb +5 -1
  16. data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +1 -1
  17. data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb +5 -3
  18. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_activedirection.rb → get_library_sections_all_activedirection.rb} +2 -2
  19. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_collection.rb → get_library_sections_all_collection.rb} +1 -1
  20. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_country.rb → get_library_sections_all_country.rb} +1 -1
  21. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_defaultdirection.rb → get_library_sections_all_defaultdirection.rb} +2 -2
  22. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_director.rb → get_library_sections_all_director.rb} +1 -1
  23. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_field.rb → get_library_sections_all_field.rb} +1 -1
  24. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_fieldtype.rb → get_library_sections_all_fieldtype.rb} +3 -3
  25. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_filter.rb → get_library_sections_all_filter.rb} +1 -1
  26. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_genre.rb → get_library_sections_all_genre.rb} +1 -1
  27. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_guids.rb → get_library_sections_all_guids.rb} +4 -4
  28. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_hasthumbnail.rb → get_library_sections_all_hasthumbnail.rb} +2 -2
  29. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_image.rb → get_library_sections_all_image.rb} +3 -3
  30. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_library_optimizedforstreaming.rb → get_library_sections_all_library_optimizedforstreaming.rb} +1 -1
  31. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_library_response_type.rb → get_library_sections_all_library_response_type.rb} +1 -1
  32. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_library_type.rb → get_library_sections_all_library_type.rb} +6 -2
  33. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_media.rb → get_library_sections_all_media.rb} +3 -3
  34. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_mediacontainer.rb → get_library_sections_all_mediacontainer.rb} +4 -4
  35. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_meta.rb → get_library_sections_all_meta.rb} +4 -4
  36. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_metadata.rb → get_library_sections_all_metadata.rb} +13 -13
  37. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_operator.rb → get_library_sections_all_operator.rb} +1 -1
  38. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_optimizedforstreaming.rb → get_library_sections_all_optimizedforstreaming.rb} +1 -1
  39. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_optimizedforstreaming_1.rb → get_library_sections_all_optimizedforstreaming_1.rb} +1 -1
  40. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_part.rb → get_library_sections_all_part.rb} +5 -5
  41. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_queryparam_includemeta.rb → get_library_sections_all_queryparam_includemeta.rb} +2 -2
  42. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_queryparam_type.rb → get_library_sections_all_queryparam_type.rb} +7 -5
  43. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_request.rb → get_library_sections_all_request.rb} +4 -4
  44. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_response.rb → get_library_sections_all_response.rb} +3 -3
  45. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_responsebody.rb → get_library_sections_all_responsebody.rb} +3 -3
  46. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_role.rb → get_library_sections_all_role.rb} +1 -1
  47. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_sort.rb → get_library_sections_all_sort.rb} +4 -4
  48. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_stream.rb → get_library_sections_all_stream.rb} +3 -3
  49. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_streamtype.rb → get_library_sections_all_streamtype.rb} +2 -2
  50. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_type.rb → get_library_sections_all_type.rb} +5 -5
  51. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_ultrablurcolors.rb → get_library_sections_all_ultrablurcolors.rb} +1 -1
  52. data/lib/plex_ruby_sdk/models/operations/{get_all_media_library_writer.rb → get_library_sections_all_writer.rb} +1 -1
  53. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_country.rb +8 -6
  54. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_director.rb +4 -4
  55. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb +3 -1
  56. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_guids.rb +2 -1
  57. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_request.rb +3 -3
  58. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_role.rb +12 -8
  59. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_type.rb +5 -1
  60. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_writer.rb +2 -2
  61. data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_type.rb +5 -1
  62. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadata.rb +1 -1
  63. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_type.rb +5 -1
  64. data/lib/plex_ruby_sdk/models/operations/get_search_library_queryparam_type.rb +5 -3
  65. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +5 -3
  66. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_mediacontainer.rb +14 -14
  67. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_includeguids.rb +21 -0
  68. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +5 -3
  69. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb +3 -3
  70. data/lib/plex_ruby_sdk/models/operations/guids.rb +3 -3
  71. data/lib/plex_ruby_sdk/models/operations/producer.rb +5 -4
  72. data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +5 -3
  73. data/lib/plex_ruby_sdk/models/operations/rating.rb +1 -1
  74. data/lib/plex_ruby_sdk/models/operations/role.rb +12 -8
  75. data/lib/plex_ruby_sdk/models/operations/type.rb +5 -3
  76. data/lib/plex_ruby_sdk/models/operations/writer.rb +7 -3
  77. data/lib/plex_ruby_sdk/models/operations.rb +37 -36
  78. data/lib/plex_ruby_sdk/sdkconfiguration.rb +2 -2
  79. metadata +42 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75ce431c60e6b7e5b2313b3ce02c6a99eba0300e6e1a5c4f26a9b13452f77018
4
- data.tar.gz: 7c4e359b51712ba2163d64f53a6979971aa325b758859ba6e6627547774f5fae
3
+ metadata.gz: b85c9786aa84443ba71c6a872179d7a3b03ee6148257eedc955e10e7d7c02c51
4
+ data.tar.gz: 327bc27d3e8e3033ece917e4d7ee71f5a97c9eb1ab2134a6a3369db8675847e5
5
5
  SHA512:
6
- metadata.gz: ff2359fcdc7d58a5fa6275114149c04c7cc2803f914755556bcbfcd14c4488f6f567932bd301b05800c03a069c67d36dffe98d136f6f4f12e8a076c16cb043c2
7
- data.tar.gz: a4700f8b3f27304ff8d03c2f9e0fe6def6137ba08a7e785f3ab1fc6a9b2cac71dfc1fb99953a538e31693a405dafc8c4ebb657262b624e0ea43651eefca66355
6
+ metadata.gz: a173eac30db2aabbfdc68bf9e59f1ed467ae7302fdf40b1ea5dcc10a1a9ae1b673f6b0b592a04c8ce2a16a557981002fe0cee7a614e495d0658e892c03db216b
7
+ data.tar.gz: 7cb59ff19ce928d6d78dddb04e0d007f6b505625b96e59f29457b6bfed3c8614b3b14f6f74742c66bbc8bff1939f2c95a6305d966d183417488b20cd96f448ea
@@ -879,21 +879,21 @@ module PlexRubySDK
879
879
  end
880
880
 
881
881
 
882
- sig { params(request: T.nilable(Models::Operations::GetAllMediaLibraryRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAllMediaLibraryResponse) }
883
- def get_all_media_library(request, timeout_ms = nil)
884
- # get_all_media_library - Get all media of library
882
+ sig { params(request: T.nilable(Models::Operations::GetLibrarySectionsAllRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetLibrarySectionsAllResponse) }
883
+ def get_library_sections_all(request, timeout_ms = nil)
884
+ # get_library_sections_all - Get Library section media by tag ALL
885
885
  # Retrieves a list of all general media data for this library.
886
886
  #
887
887
  url, params = @sdk_configuration.get_server_details
888
888
  base_url = Utils.template_url(url, params)
889
889
  url = Utils.generate_url(
890
- Models::Operations::GetAllMediaLibraryRequest,
890
+ Models::Operations::GetLibrarySectionsAllRequest,
891
891
  base_url,
892
892
  '/library/sections/{sectionKey}/all',
893
893
  request
894
894
  )
895
895
  headers = {}
896
- query_params = Utils.get_query_params(Models::Operations::GetAllMediaLibraryRequest, request)
896
+ query_params = Utils.get_query_params(Models::Operations::GetLibrarySectionsAllRequest, request)
897
897
  headers['Accept'] = 'application/json'
898
898
  headers['user-agent'] = @sdk_configuration.user_agent
899
899
 
@@ -907,7 +907,7 @@ module PlexRubySDK
907
907
  hook_ctx = SDKHooks::HookContext.new(
908
908
  base_url: base_url,
909
909
  oauth2_scopes: [],
910
- operation_id: 'get-all-media-library',
910
+ operation_id: 'get-library-sections-all',
911
911
  security_source: @sdk_configuration.security_source
912
912
  )
913
913
 
@@ -964,8 +964,8 @@ module PlexRubySDK
964
964
  ),
965
965
  response: http_response
966
966
  )
967
- obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetAllMediaLibraryResponseBody)
968
- response = Models::Operations::GetAllMediaLibraryResponse.new(
967
+ obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetLibrarySectionsAllResponseBody)
968
+ response = Models::Operations::GetLibrarySectionsAllResponse.new(
969
969
  status_code: http_response.status,
970
970
  content_type: content_type,
971
971
  raw_response: http_response,
@@ -984,7 +984,7 @@ module PlexRubySDK
984
984
  ),
985
985
  response: http_response
986
986
  )
987
- obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetAllMediaLibraryBadRequest)
987
+ obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetLibrarySectionsAllBadRequest)
988
988
  obj.raw_response = http_response
989
989
  throw obj
990
990
  else
@@ -998,7 +998,7 @@ module PlexRubySDK
998
998
  ),
999
999
  response: http_response
1000
1000
  )
1001
- obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetAllMediaLibraryUnauthorized)
1001
+ obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetLibrarySectionsAllUnauthorized)
1002
1002
  obj.raw_response = http_response
1003
1003
  throw obj
1004
1004
  else
@@ -1863,7 +1863,8 @@ module PlexRubySDK
1863
1863
  sig { params(request: T.nilable(Models::Operations::GetMediaMetaDataRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMediaMetaDataResponse) }
1864
1864
  def get_media_meta_data(request, timeout_ms = nil)
1865
1865
  # get_media_meta_data - Get Media Metadata
1866
- # This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
1866
+ # This endpoint will return all the (meta)data of one or more library items specified by the ratingKey.
1867
+ # Multiple rating keys can be provided as a comma-separated list (e.g., "21119,21617").
1867
1868
  #
1868
1869
  url, params = @sdk_configuration.get_server_details
1869
1870
  base_url = Utils.template_url(url, params)
@@ -2587,7 +2588,7 @@ module PlexRubySDK
2587
2588
  end
2588
2589
 
2589
2590
 
2590
- sig { params(type: Models::Operations::GetTopWatchedContentQueryParamType, include_guids: T.nilable(::Integer), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTopWatchedContentResponse) }
2591
+ sig { params(type: Models::Operations::GetTopWatchedContentQueryParamType, include_guids: T.nilable(Models::Operations::GetTopWatchedContentQueryParamIncludeGuids), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTopWatchedContentResponse) }
2591
2592
  def get_top_watched_content(type, include_guids = nil, timeout_ms = nil)
2592
2593
  # get_top_watched_content - Get Top Watched Content
2593
2594
  # This endpoint will return the top watched content from libraries of a certain type
@@ -9,17 +9,17 @@ module PlexRubySDK
9
9
  module Errors
10
10
 
11
11
  # Bad Request - A parameter was not specified, or was specified incorrectly.
12
- class GetAllMediaLibraryBadRequest
12
+ class GetLibrarySectionsAllBadRequest
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
- field :errors, T.nilable(T::Array[Models::Errors::GetAllMediaLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
17
+ field :errors, T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
18
18
  # Raw HTTP response; suitable for custom response parsing
19
19
  field :raw_response, T.nilable(::Faraday::Response), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('-') } }
20
20
 
21
21
 
22
- sig { params(errors: T.nilable(T::Array[Models::Errors::GetAllMediaLibraryErrors]), raw_response: T.nilable(::Faraday::Response)).void }
22
+ sig { params(errors: T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllErrors]), raw_response: T.nilable(::Faraday::Response)).void }
23
23
  def initialize(errors: nil, raw_response: nil)
24
24
  @errors = errors
25
25
  @raw_response = raw_response
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Errors
10
10
 
11
11
 
12
- class GetAllMediaLibraryErrors
12
+ class GetLibrarySectionsAllErrors
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Errors
10
10
 
11
11
 
12
- class GetAllMediaLibraryLibraryErrors
12
+ class GetLibrarySectionsAllLibraryErrors
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,17 +9,17 @@ module PlexRubySDK
9
9
  module Errors
10
10
 
11
11
  # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
12
- class GetAllMediaLibraryUnauthorized
12
+ class GetLibrarySectionsAllUnauthorized
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
- field :errors, T.nilable(T::Array[Models::Errors::GetAllMediaLibraryLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
17
+ field :errors, T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
18
18
  # Raw HTTP response; suitable for custom response parsing
19
19
  field :raw_response, T.nilable(::Faraday::Response), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('-') } }
20
20
 
21
21
 
22
- sig { params(errors: T.nilable(T::Array[Models::Errors::GetAllMediaLibraryLibraryErrors]), raw_response: T.nilable(::Faraday::Response)).void }
22
+ sig { params(errors: T.nilable(T::Array[Models::Errors::GetLibrarySectionsAllLibraryErrors]), raw_response: T.nilable(::Faraday::Response)).void }
23
23
  def initialize(errors: nil, raw_response: nil)
24
24
  @errors = errors
25
25
  @raw_response = raw_response
@@ -52,10 +52,6 @@ module PlexRubySDK
52
52
  autoload :GetAllLibrariesLibraryErrors, 'plex_ruby_sdk/models/errors/get_all_libraries_library_errors.rb'
53
53
  autoload :GetAllLibrariesUnauthorized, 'plex_ruby_sdk/models/errors/get_all_libraries_unauthorized.rb'
54
54
  autoload :GetAllLibrariesErrors, 'plex_ruby_sdk/models/errors/get_all_libraries_errors.rb'
55
- autoload :GetAllMediaLibraryBadRequest, 'plex_ruby_sdk/models/errors/get_all_media_library_badrequest.rb'
56
- autoload :GetAllMediaLibraryLibraryErrors, 'plex_ruby_sdk/models/errors/get_all_media_library_library_errors.rb'
57
- autoload :GetAllMediaLibraryUnauthorized, 'plex_ruby_sdk/models/errors/get_all_media_library_unauthorized.rb'
58
- autoload :GetAllMediaLibraryErrors, 'plex_ruby_sdk/models/errors/get_all_media_library_errors.rb'
59
55
  autoload :GetBannerImageBadRequest, 'plex_ruby_sdk/models/errors/get_banner_image_badrequest.rb'
60
56
  autoload :GetBannerImageMediaErrors, 'plex_ruby_sdk/models/errors/get_banner_image_media_errors.rb'
61
57
  autoload :GetBannerImageUnauthorized, 'plex_ruby_sdk/models/errors/get_banner_image_unauthorized.rb'
@@ -76,6 +72,10 @@ module PlexRubySDK
76
72
  autoload :GetLibraryItemsLibraryErrors, 'plex_ruby_sdk/models/errors/get_library_items_library_errors.rb'
77
73
  autoload :GetLibraryItemsUnauthorized, 'plex_ruby_sdk/models/errors/get_library_items_unauthorized.rb'
78
74
  autoload :GetLibraryItemsErrors, 'plex_ruby_sdk/models/errors/get_library_items_errors.rb'
75
+ autoload :GetLibrarySectionsAllBadRequest, 'plex_ruby_sdk/models/errors/get_library_sections_all_badrequest.rb'
76
+ autoload :GetLibrarySectionsAllLibraryErrors, 'plex_ruby_sdk/models/errors/get_library_sections_all_library_errors.rb'
77
+ autoload :GetLibrarySectionsAllUnauthorized, 'plex_ruby_sdk/models/errors/get_library_sections_all_unauthorized.rb'
78
+ autoload :GetLibrarySectionsAllErrors, 'plex_ruby_sdk/models/errors/get_library_sections_all_errors.rb'
79
79
  autoload :GetMediaMetaDataBadRequest, 'plex_ruby_sdk/models/errors/get_media_meta_data_badrequest.rb'
80
80
  autoload :GetMediaMetaDataLibraryErrors, 'plex_ruby_sdk/models/errors/get_media_meta_data_library_errors.rb'
81
81
  autoload :GetMediaMetaDataUnauthorized, 'plex_ruby_sdk/models/errors/get_media_meta_data_unauthorized.rb'
@@ -14,25 +14,27 @@ module PlexRubySDK
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
+ field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
18
+ # The unique identifier for the country.
19
+ # NOTE: This is different for each Plex server and is not globally unique.
20
+ #
17
21
  field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
18
22
  # The country of origin of this media item
19
23
  field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
20
24
 
21
- field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
22
25
 
23
-
24
- sig { params(id: ::Integer, tag: ::String, filter: T.nilable(::String)).void }
25
- def initialize(id: nil, tag: nil, filter: nil)
26
+ sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
27
+ def initialize(filter: nil, id: nil, tag: nil)
28
+ @filter = filter
26
29
  @id = id
27
30
  @tag = tag
28
- @filter = filter
29
31
  end
30
32
 
31
33
  def ==(other)
32
34
  return false unless other.is_a? self.class
35
+ return false unless @filter == other.filter
33
36
  return false unless @id == other.id
34
37
  return false unless @tag == other.tag
35
- return false unless @filter == other.filter
36
38
  true
37
39
  end
38
40
  end
@@ -13,18 +13,34 @@ module PlexRubySDK
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
+ # The filter string used to query this director.
17
+ field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
18
+ # Unique identifier for the director.
19
+ field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
16
20
  # The role of Director
17
21
  field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
22
+ # A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
23
+ field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
24
+ # The absolute URL of the thumbnail image for the director.
25
+ field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
18
26
 
19
27
 
20
- sig { params(tag: ::String).void }
21
- def initialize(tag: nil)
28
+ sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: ::String, thumb: T.nilable(::String)).void }
29
+ def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
30
+ @filter = filter
31
+ @id = id
22
32
  @tag = tag
33
+ @tag_key = tag_key
34
+ @thumb = thumb
23
35
  end
24
36
 
25
37
  def ==(other)
26
38
  return false unless other.is_a? self.class
39
+ return false unless @filter == other.filter
40
+ return false unless @id == other.id
27
41
  return false unless @tag == other.tag
42
+ return false unless @tag_key == other.tag_key
43
+ return false unless @thumb == other.thumb
28
44
  true
29
45
  end
30
46
  end
@@ -15,7 +15,9 @@ module PlexRubySDK
15
15
 
16
16
 
17
17
  field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
18
-
18
+ # The unique identifier for the genre.
19
+ # NOTE: This is different for each Plex server and is not globally unique.
20
+ #
19
21
  field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
20
22
  # The genre name of this media-item
21
23
  #
@@ -21,9 +21,11 @@ module PlexRubySDK
21
21
  TV_SHOW = new(2)
22
22
  SEASON = new(3)
23
23
  EPISODE = new(4)
24
- AUDIO = new(8)
25
- ALBUM = new(9)
26
- TRACK = new(10)
24
+ ARTIST = new(5)
25
+ ALBUM = new(6)
26
+ TRACK = new(7)
27
+ PHOTO_ALBUM = new(8)
28
+ PHOTO = new(9)
27
29
  end
28
30
  end
29
31
  end
@@ -17,6 +17,10 @@ module PlexRubySDK
17
17
  EPISODE = new('episode')
18
18
  ARTIST = new('artist')
19
19
  ALBUM = new('album')
20
+ TRACK = new('track')
21
+ PHOTO_ALBUM = new('photoalbum')
22
+ PHOTO = new('photo')
23
+ COLLECTION = new('collection')
20
24
  end
21
25
  end
22
26
  end
@@ -21,9 +21,11 @@ module PlexRubySDK
21
21
  TV_SHOW = new(2)
22
22
  SEASON = new(3)
23
23
  EPISODE = new(4)
24
- AUDIO = new(8)
25
- ALBUM = new(9)
26
- TRACK = new(10)
24
+ ARTIST = new(5)
25
+ ALBUM = new(6)
26
+ TRACK = new(7)
27
+ PHOTO_ALBUM = new(8)
28
+ PHOTO = new(9)
27
29
  end
28
30
  end
29
31
  end
@@ -21,9 +21,11 @@ module PlexRubySDK
21
21
  TV_SHOW = new(2)
22
22
  SEASON = new(3)
23
23
  EPISODE = new(4)
24
- AUDIO = new(8)
25
- ALBUM = new(9)
26
- TRACK = new(10)
24
+ ARTIST = new(5)
25
+ ALBUM = new(6)
26
+ TRACK = new(7)
27
+ PHOTO_ALBUM = new(8)
28
+ PHOTO = new(9)
27
29
  end
28
30
  end
29
31
  end
@@ -8,7 +8,7 @@ module PlexRubySDK
8
8
  module Models
9
9
  module Operations
10
10
 
11
- # GetLibraryItemsLibraryType - The type of media content
11
+ # GetLibraryItemsLibraryType - The type of media content in the Plex library. This can represent videos, music, or photos.
12
12
  #
13
13
  class GetLibraryItemsLibraryType < T::Enum
14
14
  enums do
@@ -18,6 +18,10 @@ module PlexRubySDK
18
18
  EPISODE = new('episode')
19
19
  ARTIST = new('artist')
20
20
  ALBUM = new('album')
21
+ TRACK = new('track')
22
+ PHOTO_ALBUM = new('photoalbum')
23
+ PHOTO = new('photo')
24
+ COLLECTION = new('collection')
21
25
  end
22
26
  end
23
27
  end
@@ -27,7 +27,7 @@ module PlexRubySDK
27
27
  field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
28
28
 
29
29
  field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
30
- # The type of media content
30
+ # The type of media content in the Plex library. This can represent videos, music, or photos.
31
31
  #
32
32
  field :type, Models::Operations::GetLibraryItemsLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsLibraryType, false) } }
33
33
 
@@ -21,9 +21,11 @@ module PlexRubySDK
21
21
  TV_SHOW = new(2)
22
22
  SEASON = new(3)
23
23
  EPISODE = new(4)
24
- AUDIO = new(8)
25
- ALBUM = new(9)
26
- TRACK = new(10)
24
+ ARTIST = new(5)
25
+ ALBUM = new(6)
26
+ TRACK = new(7)
27
+ PHOTO_ALBUM = new(8)
28
+ PHOTO = new(9)
27
29
  end
28
30
  end
29
31
  end
@@ -8,9 +8,9 @@ module PlexRubySDK
8
8
  module Models
9
9
  module Operations
10
10
 
11
- # GetAllMediaLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
11
+ # GetLibrarySectionsAllActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
12
12
  #
13
- class GetAllMediaLibraryActiveDirection < T::Enum
13
+ class GetLibrarySectionsAllActiveDirection < T::Enum
14
14
  enums do
15
15
  ASCENDING = new('asc')
16
16
  DESCENDING = new('desc')
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryCollection
12
+ class GetLibrarySectionsAllCollection
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryCountry
12
+ class GetLibrarySectionsAllCountry
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -8,9 +8,9 @@ module PlexRubySDK
8
8
  module Models
9
9
  module Operations
10
10
 
11
- # GetAllMediaLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
11
+ # GetLibrarySectionsAllDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
12
12
  #
13
- class GetAllMediaLibraryDefaultDirection < T::Enum
13
+ class GetLibrarySectionsAllDefaultDirection < T::Enum
14
14
  enums do
15
15
  ASCENDING = new('asc')
16
16
  DESCENDING = new('desc')
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryDirector
12
+ class GetLibrarySectionsAllDirector
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryField
12
+ class GetLibrarySectionsAllField
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,17 +9,17 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryFieldType
12
+ class GetLibrarySectionsAllFieldType
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
- field :operator, T::Array[Models::Operations::GetAllMediaLibraryOperator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
17
+ field :operator, T::Array[Models::Operations::GetLibrarySectionsAllOperator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
18
18
 
19
19
  field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
20
20
 
21
21
 
22
- sig { params(operator: T::Array[Models::Operations::GetAllMediaLibraryOperator], type: ::String).void }
22
+ sig { params(operator: T::Array[Models::Operations::GetLibrarySectionsAllOperator], type: ::String).void }
23
23
  def initialize(operator: nil, type: nil)
24
24
  @operator = operator
25
25
  @type = type
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryFilter
12
+ class GetLibrarySectionsAllFilter
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryGenre
12
+ class GetLibrarySectionsAllGenre
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,16 +9,16 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryGuids
12
+ class GetLibrarySectionsAllGuids
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
- # The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
16
+ # The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
17
17
  #
18
- field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
18
+ field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
19
19
 
20
20
 
21
- sig { params(id: T.nilable(::String)).void }
21
+ sig { params(id: ::String).void }
22
22
  def initialize(id: nil)
23
23
  @id = id
24
24
  end
@@ -8,8 +8,8 @@ module PlexRubySDK
8
8
  module Models
9
9
  module Operations
10
10
 
11
- # GetAllMediaLibraryHasThumbnail - Indicates if the part has a thumbnail.
12
- class GetAllMediaLibraryHasThumbnail < T::Enum
11
+ # GetLibrarySectionsAllHasThumbnail - Indicates if the part has a thumbnail.
12
+ class GetLibrarySectionsAllHasThumbnail < T::Enum
13
13
  enums do
14
14
  FALSE = new('0')
15
15
  TRUE = new('1')
@@ -9,19 +9,19 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryImage
12
+ class GetLibrarySectionsAllImage
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
17
  field :alt, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('alt') } }
18
18
 
19
- field :type, Models::Operations::GetAllMediaLibraryLibraryResponseType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetAllMediaLibraryLibraryResponseType, false) } }
19
+ field :type, Models::Operations::GetLibrarySectionsAllLibraryResponseType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllLibraryResponseType, false) } }
20
20
 
21
21
  field :url, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('url') } }
22
22
 
23
23
 
24
- sig { params(alt: ::String, type: Models::Operations::GetAllMediaLibraryLibraryResponseType, url: ::String).void }
24
+ sig { params(alt: ::String, type: Models::Operations::GetLibrarySectionsAllLibraryResponseType, url: ::String).void }
25
25
  def initialize(alt: nil, type: nil, url: nil)
26
26
  @alt = alt
27
27
  @type = type
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
  # Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
12
- class GetAllMediaLibraryLibraryOptimizedForStreaming
12
+ class GetLibrarySectionsAllLibraryOptimizedForStreaming
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryLibraryResponseType < T::Enum
12
+ class GetLibrarySectionsAllLibraryResponseType < T::Enum
13
13
  enums do
14
14
  COVER_POSTER = new('coverPoster')
15
15
  BACKGROUND = new('background')
@@ -8,9 +8,9 @@ module PlexRubySDK
8
8
  module Models
9
9
  module Operations
10
10
 
11
- # GetAllMediaLibraryLibraryType - The type of media content
11
+ # GetLibrarySectionsAllLibraryType - The type of media content in the Plex library. This can represent videos, music, or photos.
12
12
  #
13
- class GetAllMediaLibraryLibraryType < T::Enum
13
+ class GetLibrarySectionsAllLibraryType < T::Enum
14
14
  enums do
15
15
  MOVIE = new('movie')
16
16
  TV_SHOW = new('show')
@@ -18,6 +18,10 @@ module PlexRubySDK
18
18
  EPISODE = new('episode')
19
19
  ARTIST = new('artist')
20
20
  ALBUM = new('album')
21
+ TRACK = new('track')
22
+ PHOTO_ALBUM = new('photoalbum')
23
+ PHOTO = new('photo')
24
+ COLLECTION = new('collection')
21
25
  end
22
26
  end
23
27
  end
@@ -9,7 +9,7 @@ module PlexRubySDK
9
9
  module Operations
10
10
 
11
11
 
12
- class GetAllMediaLibraryMedia
12
+ class GetLibrarySectionsAllMedia
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -40,7 +40,7 @@ module PlexRubySDK
40
40
  # Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
41
41
  field :optimized_for_streaming, T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
42
42
  # An array of parts for this media item.
43
- field :part, T.nilable(T::Array[Models::Operations::GetAllMediaLibraryPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
43
+ field :part, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
44
44
  # Video codec used.
45
45
  field :video_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoCodec') } }
46
46
  # Frame rate of the video. Values found include NTSC, PAL, 24p
@@ -54,7 +54,7 @@ module PlexRubySDK
54
54
  field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
55
55
 
56
56
 
57
- sig { params(id: ::Integer, 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), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), part: T.nilable(T::Array[Models::Operations::GetAllMediaLibraryPart]), 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 }
57
+ sig { params(id: ::Integer, 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), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), part: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllPart]), 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 }
58
58
  def initialize(id: 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, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
59
59
  @id = id
60
60
  @aspect_ratio = aspect_ratio