plex_ruby_sdk 0.8.1 → 0.9.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 (818) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/metadata_fields.rb +33 -0
  3. data/lib/crystalline/t.rb +21 -2
  4. data/lib/crystalline/utils.rb +29 -13
  5. data/lib/plex_ruby_sdk/activities.rb +2 -2
  6. data/lib/plex_ruby_sdk/authentication.rb +4 -4
  7. data/lib/plex_ruby_sdk/butler.rb +5 -5
  8. data/lib/plex_ruby_sdk/hubs.rb +3 -3
  9. data/lib/plex_ruby_sdk/library.rb +20 -20
  10. data/lib/plex_ruby_sdk/log.rb +3 -3
  11. data/lib/plex_ruby_sdk/media.rb +5 -5
  12. data/lib/plex_ruby_sdk/models/operations/account.rb +13 -0
  13. data/lib/plex_ruby_sdk/models/operations/action.rb +7 -0
  14. data/lib/plex_ruby_sdk/models/operations/activity.rb +13 -0
  15. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_badrequest.rb +6 -0
  16. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_errors.rb +8 -0
  17. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_mediacontainer.rb +9 -0
  18. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_metadata.rb +18 -0
  19. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_playlists_errors.rb +8 -0
  20. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_request.rb +8 -0
  21. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_response.rb +11 -0
  22. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_responsebody.rb +6 -0
  23. data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_unauthorized.rb +6 -0
  24. data/lib/plex_ruby_sdk/models/operations/applyupdates_badrequest.rb +6 -0
  25. data/lib/plex_ruby_sdk/models/operations/applyupdates_errors.rb +8 -0
  26. data/lib/plex_ruby_sdk/models/operations/applyupdates_request.rb +7 -0
  27. data/lib/plex_ruby_sdk/models/operations/applyupdates_response.rb +10 -0
  28. data/lib/plex_ruby_sdk/models/operations/applyupdates_unauthorized.rb +6 -0
  29. data/lib/plex_ruby_sdk/models/operations/applyupdates_updater_errors.rb +8 -0
  30. data/lib/plex_ruby_sdk/models/operations/billing.rb +7 -0
  31. data/lib/plex_ruby_sdk/models/operations/butlertask.rb +11 -0
  32. data/lib/plex_ruby_sdk/models/operations/butlertasks.rb +6 -0
  33. data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_activities_errors.rb +8 -0
  34. data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_badrequest.rb +6 -0
  35. data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_errors.rb +8 -0
  36. data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_request.rb +6 -0
  37. data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_response.rb +10 -0
  38. data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_unauthorized.rb +6 -0
  39. data/lib/plex_ruby_sdk/models/operations/checkforupdates_badrequest.rb +6 -0
  40. data/lib/plex_ruby_sdk/models/operations/checkforupdates_errors.rb +8 -0
  41. data/lib/plex_ruby_sdk/models/operations/checkforupdates_request.rb +6 -0
  42. data/lib/plex_ruby_sdk/models/operations/checkforupdates_response.rb +10 -0
  43. data/lib/plex_ruby_sdk/models/operations/checkforupdates_unauthorized.rb +6 -0
  44. data/lib/plex_ruby_sdk/models/operations/checkforupdates_updater_errors.rb +8 -0
  45. data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_badrequest.rb +6 -0
  46. data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_errors.rb +8 -0
  47. data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_playlists_errors.rb +8 -0
  48. data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_request.rb +6 -0
  49. data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_response.rb +10 -0
  50. data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_unauthorized.rb +6 -0
  51. data/lib/plex_ruby_sdk/models/operations/collection.rb +6 -0
  52. data/lib/plex_ruby_sdk/models/operations/connections.rb +12 -0
  53. data/lib/plex_ruby_sdk/models/operations/context.rb +6 -0
  54. data/lib/plex_ruby_sdk/models/operations/country.rb +8 -0
  55. data/lib/plex_ruby_sdk/models/operations/createplaylist_badrequest.rb +6 -0
  56. data/lib/plex_ruby_sdk/models/operations/createplaylist_errors.rb +8 -0
  57. data/lib/plex_ruby_sdk/models/operations/createplaylist_mediacontainer.rb +7 -0
  58. data/lib/plex_ruby_sdk/models/operations/createplaylist_metadata.rb +21 -0
  59. data/lib/plex_ruby_sdk/models/operations/createplaylist_playlists_errors.rb +8 -0
  60. data/lib/plex_ruby_sdk/models/operations/createplaylist_request.rb +10 -0
  61. data/lib/plex_ruby_sdk/models/operations/createplaylist_response.rb +11 -0
  62. data/lib/plex_ruby_sdk/models/operations/createplaylist_responsebody.rb +6 -0
  63. data/lib/plex_ruby_sdk/models/operations/createplaylist_unauthorized.rb +6 -0
  64. data/lib/plex_ruby_sdk/models/operations/deletelibrary_badrequest.rb +6 -0
  65. data/lib/plex_ruby_sdk/models/operations/deletelibrary_errors.rb +8 -0
  66. data/lib/plex_ruby_sdk/models/operations/deletelibrary_library_errors.rb +8 -0
  67. data/lib/plex_ruby_sdk/models/operations/deletelibrary_request.rb +6 -0
  68. data/lib/plex_ruby_sdk/models/operations/deletelibrary_response.rb +10 -0
  69. data/lib/plex_ruby_sdk/models/operations/deletelibrary_unauthorized.rb +6 -0
  70. data/lib/plex_ruby_sdk/models/operations/deleteplaylist_badrequest.rb +6 -0
  71. data/lib/plex_ruby_sdk/models/operations/deleteplaylist_errors.rb +8 -0
  72. data/lib/plex_ruby_sdk/models/operations/deleteplaylist_playlists_errors.rb +8 -0
  73. data/lib/plex_ruby_sdk/models/operations/deleteplaylist_request.rb +6 -0
  74. data/lib/plex_ruby_sdk/models/operations/deleteplaylist_response.rb +10 -0
  75. data/lib/plex_ruby_sdk/models/operations/deleteplaylist_unauthorized.rb +6 -0
  76. data/lib/plex_ruby_sdk/models/operations/device.rb +10 -0
  77. data/lib/plex_ruby_sdk/models/operations/director.rb +6 -0
  78. data/lib/plex_ruby_sdk/models/operations/directory.rb +8 -0
  79. data/lib/plex_ruby_sdk/models/operations/enablepapertrail_badrequest.rb +6 -0
  80. data/lib/plex_ruby_sdk/models/operations/enablepapertrail_errors.rb +8 -0
  81. data/lib/plex_ruby_sdk/models/operations/enablepapertrail_log_errors.rb +8 -0
  82. data/lib/plex_ruby_sdk/models/operations/enablepapertrail_response.rb +10 -0
  83. data/lib/plex_ruby_sdk/models/operations/enablepapertrail_unauthorized.rb +6 -0
  84. data/lib/plex_ruby_sdk/models/operations/errors.rb +8 -0
  85. data/lib/plex_ruby_sdk/models/operations/feature.rb +12 -0
  86. data/lib/plex_ruby_sdk/models/operations/field.rb +9 -0
  87. data/lib/plex_ruby_sdk/models/operations/fieldtype.rb +7 -0
  88. data/lib/plex_ruby_sdk/models/operations/friend.rb +17 -0
  89. data/lib/plex_ruby_sdk/models/operations/genre.rb +8 -0
  90. data/lib/plex_ruby_sdk/models/operations/geodata.rb +16 -0
  91. data/lib/plex_ruby_sdk/models/operations/get_actors_library_badrequest.rb +6 -0
  92. data/lib/plex_ruby_sdk/models/operations/get_actors_library_directory.rb +9 -0
  93. data/lib/plex_ruby_sdk/models/operations/get_actors_library_errors.rb +8 -0
  94. data/lib/plex_ruby_sdk/models/operations/get_actors_library_library_errors.rb +8 -0
  95. data/lib/plex_ruby_sdk/models/operations/get_actors_library_mediacontainer.rb +18 -0
  96. data/lib/plex_ruby_sdk/models/operations/get_actors_library_request.rb +7 -0
  97. data/lib/plex_ruby_sdk/models/operations/get_actors_library_response.rb +11 -0
  98. data/lib/plex_ruby_sdk/models/operations/get_actors_library_responsebody.rb +6 -0
  99. data/lib/plex_ruby_sdk/models/operations/get_actors_library_unauthorized.rb +6 -0
  100. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_badrequest.rb +6 -0
  101. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_directory.rb +48 -22
  102. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_errors.rb +8 -0
  103. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_library_errors.rb +8 -0
  104. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_location.rb +9 -2
  105. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_mediacontainer.rb +17 -8
  106. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_response.rb +11 -0
  107. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_responsebody.rb +8 -2
  108. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_type.rb +22 -0
  109. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_unauthorized.rb +6 -0
  110. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_badrequest.rb +6 -0
  111. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_collection.rb +6 -0
  112. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_country.rb +6 -0
  113. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_director.rb +6 -0
  114. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_errors.rb +8 -0
  115. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_field.rb +9 -0
  116. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_fieldtype.rb +7 -0
  117. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_filter.rb +11 -0
  118. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_genre.rb +6 -0
  119. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_guids.rb +6 -0
  120. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_image.rb +8 -0
  121. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_errors.rb +8 -0
  122. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_optimizedforstreaming.rb +25 -0
  123. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_media.rb +26 -2
  124. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_mediacontainer.rb +24 -0
  125. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_meta.rb +7 -0
  126. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_metadata.rb +69 -0
  127. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_operator.rb +7 -0
  128. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_optimizedforstreaming.rb +25 -0
  129. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_optimizedforstreaming_1.rb +18 -0
  130. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_part.rb +23 -2
  131. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_request.rb +14 -0
  132. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_response.rb +11 -0
  133. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_responsebody.rb +6 -0
  134. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_role.rb +6 -0
  135. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_sort.rb +13 -0
  136. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_stream.rb +54 -0
  137. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_type.rb +13 -0
  138. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_ultrablurcolors.rb +9 -0
  139. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_unauthorized.rb +6 -0
  140. data/lib/plex_ruby_sdk/models/operations/get_all_media_library_writer.rb +6 -0
  141. data/lib/plex_ruby_sdk/models/operations/get_banner_image_badrequest.rb +6 -0
  142. data/lib/plex_ruby_sdk/models/operations/get_banner_image_errors.rb +8 -0
  143. data/lib/plex_ruby_sdk/models/operations/get_banner_image_media_errors.rb +8 -0
  144. data/lib/plex_ruby_sdk/models/operations/get_banner_image_request.rb +11 -0
  145. data/lib/plex_ruby_sdk/models/operations/get_banner_image_response.rb +12 -0
  146. data/lib/plex_ruby_sdk/models/operations/get_banner_image_unauthorized.rb +6 -0
  147. data/lib/plex_ruby_sdk/models/operations/get_countries_library_badrequest.rb +6 -0
  148. data/lib/plex_ruby_sdk/models/operations/get_countries_library_directory.rb +8 -0
  149. data/lib/plex_ruby_sdk/models/operations/get_countries_library_errors.rb +8 -0
  150. data/lib/plex_ruby_sdk/models/operations/get_countries_library_library_errors.rb +8 -0
  151. data/lib/plex_ruby_sdk/models/operations/get_countries_library_mediacontainer.rb +18 -0
  152. data/lib/plex_ruby_sdk/models/operations/get_countries_library_request.rb +7 -0
  153. data/lib/plex_ruby_sdk/models/operations/get_countries_library_response.rb +11 -0
  154. data/lib/plex_ruby_sdk/models/operations/get_countries_library_responsebody.rb +6 -0
  155. data/lib/plex_ruby_sdk/models/operations/get_countries_library_unauthorized.rb +6 -0
  156. data/lib/plex_ruby_sdk/models/operations/get_genres_library_badrequest.rb +6 -0
  157. data/lib/plex_ruby_sdk/models/operations/get_genres_library_directory.rb +9 -0
  158. data/lib/plex_ruby_sdk/models/operations/get_genres_library_errors.rb +8 -0
  159. data/lib/plex_ruby_sdk/models/operations/get_genres_library_library_errors.rb +8 -0
  160. data/lib/plex_ruby_sdk/models/operations/get_genres_library_mediacontainer.rb +18 -0
  161. data/lib/plex_ruby_sdk/models/operations/get_genres_library_request.rb +7 -0
  162. data/lib/plex_ruby_sdk/models/operations/get_genres_library_response.rb +11 -0
  163. data/lib/plex_ruby_sdk/models/operations/get_genres_library_responsebody.rb +6 -0
  164. data/lib/plex_ruby_sdk/models/operations/get_genres_library_unauthorized.rb +6 -0
  165. data/lib/plex_ruby_sdk/models/operations/get_library_details_badrequest.rb +6 -0
  166. data/lib/plex_ruby_sdk/models/operations/get_library_details_directory.rb +10 -0
  167. data/lib/plex_ruby_sdk/models/operations/get_library_details_errors.rb +8 -0
  168. data/lib/plex_ruby_sdk/models/operations/get_library_details_field.rb +9 -0
  169. data/lib/plex_ruby_sdk/models/operations/get_library_details_fieldtype.rb +7 -0
  170. data/lib/plex_ruby_sdk/models/operations/get_library_details_filter.rb +10 -0
  171. data/lib/plex_ruby_sdk/models/operations/get_library_details_library_errors.rb +8 -0
  172. data/lib/plex_ruby_sdk/models/operations/get_library_details_mediacontainer.rb +20 -0
  173. data/lib/plex_ruby_sdk/models/operations/get_library_details_operator.rb +7 -0
  174. data/lib/plex_ruby_sdk/models/operations/get_library_details_request.rb +7 -0
  175. data/lib/plex_ruby_sdk/models/operations/get_library_details_response.rb +11 -0
  176. data/lib/plex_ruby_sdk/models/operations/get_library_details_responsebody.rb +6 -0
  177. data/lib/plex_ruby_sdk/models/operations/get_library_details_sort.rb +11 -0
  178. data/lib/plex_ruby_sdk/models/operations/get_library_details_type.rb +12 -0
  179. data/lib/plex_ruby_sdk/models/operations/get_library_details_unauthorized.rb +6 -0
  180. data/lib/plex_ruby_sdk/models/operations/get_library_items_badrequest.rb +6 -0
  181. data/lib/plex_ruby_sdk/models/operations/get_library_items_collection.rb +6 -0
  182. data/lib/plex_ruby_sdk/models/operations/get_library_items_country.rb +6 -0
  183. data/lib/plex_ruby_sdk/models/operations/get_library_items_director.rb +6 -0
  184. data/lib/plex_ruby_sdk/models/operations/get_library_items_errors.rb +8 -0
  185. data/lib/plex_ruby_sdk/models/operations/get_library_items_field.rb +9 -0
  186. data/lib/plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb +7 -0
  187. data/lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb +11 -0
  188. data/lib/plex_ruby_sdk/models/operations/get_library_items_genre.rb +6 -0
  189. data/lib/plex_ruby_sdk/models/operations/get_library_items_image.rb +8 -0
  190. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_errors.rb +8 -0
  191. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_field.rb +9 -0
  192. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_fieldtype.rb +7 -0
  193. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_filter.rb +10 -0
  194. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_operator.rb +7 -0
  195. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb +12 -0
  196. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_sort.rb +13 -0
  197. data/lib/plex_ruby_sdk/models/operations/get_library_items_location.rb +6 -0
  198. data/lib/plex_ruby_sdk/models/operations/get_library_items_media.rb +25 -2
  199. data/lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb +28 -0
  200. data/lib/plex_ruby_sdk/models/operations/get_library_items_meta.rb +7 -0
  201. data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +81 -0
  202. data/lib/plex_ruby_sdk/models/operations/get_library_items_operator.rb +7 -0
  203. data/lib/plex_ruby_sdk/models/operations/get_library_items_optimizedforstreaming.rb +18 -0
  204. data/lib/plex_ruby_sdk/models/operations/get_library_items_part.rb +18 -0
  205. data/lib/plex_ruby_sdk/models/operations/get_library_items_request.rb +12 -0
  206. data/lib/plex_ruby_sdk/models/operations/get_library_items_response.rb +11 -0
  207. data/lib/plex_ruby_sdk/models/operations/get_library_items_responsebody.rb +6 -0
  208. data/lib/plex_ruby_sdk/models/operations/get_library_items_role.rb +11 -0
  209. data/lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb +13 -0
  210. data/lib/plex_ruby_sdk/models/operations/get_library_items_stream.rb +43 -0
  211. data/lib/plex_ruby_sdk/models/operations/get_library_items_type.rb +13 -0
  212. data/lib/plex_ruby_sdk/models/operations/get_library_items_ultrablurcolors.rb +9 -0
  213. data/lib/plex_ruby_sdk/models/operations/get_library_items_unauthorized.rb +6 -0
  214. data/lib/plex_ruby_sdk/models/operations/get_library_items_writer.rb +6 -0
  215. data/lib/plex_ruby_sdk/models/operations/get_media_arts_mediacontainer.rb +10 -0
  216. data/lib/plex_ruby_sdk/models/operations/get_media_arts_metadata.rb +10 -0
  217. data/lib/plex_ruby_sdk/models/operations/get_media_arts_request.rb +6 -0
  218. data/lib/plex_ruby_sdk/models/operations/get_media_arts_response.rb +9 -0
  219. data/lib/plex_ruby_sdk/models/operations/get_media_arts_responsebody.rb +6 -0
  220. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_badrequest.rb +6 -0
  221. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_country.rb +8 -0
  222. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_director.rb +11 -0
  223. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_errors.rb +8 -0
  224. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb +8 -0
  225. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_guids.rb +6 -0
  226. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_image.rb +8 -0
  227. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_library_errors.rb +8 -0
  228. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_library_optimizedforstreaming.rb +25 -0
  229. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_location.rb +6 -0
  230. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_media.rb +26 -2
  231. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_mediacontainer.rb +14 -0
  232. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_metadata.rb +66 -0
  233. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming.rb +25 -0
  234. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming_1.rb +18 -0
  235. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming_library_1.rb +18 -0
  236. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_part.rb +23 -2
  237. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_producer.rb +11 -0
  238. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_request.rb +19 -0
  239. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_response.rb +11 -0
  240. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_responsebody.rb +6 -0
  241. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_role.rb +11 -0
  242. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_similar.rb +8 -0
  243. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb +54 -0
  244. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_ultrablurcolors.rb +9 -0
  245. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_unauthorized.rb +6 -0
  246. data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_writer.rb +11 -0
  247. data/lib/plex_ruby_sdk/models/operations/get_media_posters_mediacontainer.rb +10 -0
  248. data/lib/plex_ruby_sdk/models/operations/get_media_posters_metadata.rb +10 -0
  249. data/lib/plex_ruby_sdk/models/operations/get_media_posters_request.rb +6 -0
  250. data/lib/plex_ruby_sdk/models/operations/get_media_posters_response.rb +9 -0
  251. data/lib/plex_ruby_sdk/models/operations/get_media_posters_responsebody.rb +6 -0
  252. data/lib/plex_ruby_sdk/models/operations/get_media_providers_badrequest.rb +6 -0
  253. data/lib/plex_ruby_sdk/models/operations/get_media_providers_directory.rb +19 -0
  254. data/lib/plex_ruby_sdk/models/operations/get_media_providers_errors.rb +8 -0
  255. data/lib/plex_ruby_sdk/models/operations/get_media_providers_mediacontainer.rb +49 -0
  256. data/lib/plex_ruby_sdk/models/operations/get_media_providers_request.rb +6 -0
  257. data/lib/plex_ruby_sdk/models/operations/get_media_providers_response.rb +11 -0
  258. data/lib/plex_ruby_sdk/models/operations/get_media_providers_responsebody.rb +6 -0
  259. data/lib/plex_ruby_sdk/models/operations/get_media_providers_server_errors.rb +8 -0
  260. data/lib/plex_ruby_sdk/models/operations/get_media_providers_unauthorized.rb +6 -0
  261. data/lib/plex_ruby_sdk/models/operations/get_recently_added_field.rb +9 -0
  262. data/lib/plex_ruby_sdk/models/operations/get_recently_added_fieldtype.rb +7 -0
  263. data/lib/plex_ruby_sdk/models/operations/get_recently_added_filter.rb +11 -0
  264. data/lib/plex_ruby_sdk/models/operations/get_recently_added_image.rb +8 -0
  265. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_badrequest.rb +6 -0
  266. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_country.rb +6 -0
  267. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_director.rb +6 -0
  268. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_errors.rb +8 -0
  269. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_filter.rb +11 -0
  270. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_genre.rb +6 -0
  271. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_library_errors.rb +8 -0
  272. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_media.rb +21 -0
  273. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_mediacontainer.rb +14 -0
  274. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_metadata.rb +37 -0
  275. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_part.rb +15 -0
  276. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_request.rb +12 -0
  277. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_response.rb +11 -0
  278. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_responsebody.rb +6 -0
  279. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_role.rb +6 -0
  280. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_type.rb +13 -0
  281. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_unauthorized.rb +6 -0
  282. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_writer.rb +6 -0
  283. data/lib/plex_ruby_sdk/models/operations/get_recently_added_mediacontainer.rb +12 -0
  284. data/lib/plex_ruby_sdk/models/operations/get_recently_added_metadata.rb +80 -0
  285. data/lib/plex_ruby_sdk/models/operations/get_recently_added_operator.rb +7 -0
  286. data/lib/plex_ruby_sdk/models/operations/get_recently_added_optimizedforstreaming.rb +25 -0
  287. data/lib/plex_ruby_sdk/models/operations/get_recently_added_optimizedforstreaming_1.rb +18 -0
  288. data/lib/plex_ruby_sdk/models/operations/get_recently_added_request.rb +12 -0
  289. data/lib/plex_ruby_sdk/models/operations/get_recently_added_response.rb +9 -0
  290. data/lib/plex_ruby_sdk/models/operations/get_recently_added_responsebody.rb +6 -0
  291. data/lib/plex_ruby_sdk/models/operations/get_recently_added_sort.rb +13 -0
  292. data/lib/plex_ruby_sdk/models/operations/get_recently_added_type.rb +13 -0
  293. data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_badrequest.rb +6 -0
  294. data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_errors.rb +8 -0
  295. data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_library_errors.rb +8 -0
  296. data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_request.rb +7 -0
  297. data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_response.rb +10 -0
  298. data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_unauthorized.rb +6 -0
  299. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_badrequest.rb +6 -0
  300. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_collection.rb +6 -0
  301. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_country.rb +6 -0
  302. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_director.rb +6 -0
  303. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_errors.rb +8 -0
  304. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_genre.rb +6 -0
  305. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_image.rb +8 -0
  306. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_library_errors.rb +8 -0
  307. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_location.rb +6 -0
  308. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_media.rb +23 -0
  309. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_mediacontainer.rb +7 -0
  310. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_mediaguid.rb +6 -0
  311. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadata.rb +81 -0
  312. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadatarating.rb +8 -0
  313. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_part.rb +18 -0
  314. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_request.rb +11 -0
  315. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_response.rb +11 -0
  316. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_responsebody.rb +6 -0
  317. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_role.rb +11 -0
  318. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_stream.rb +43 -0
  319. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_ultrablurcolors.rb +9 -0
  320. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_unauthorized.rb +6 -0
  321. data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_writer.rb +6 -0
  322. data/lib/plex_ruby_sdk/models/operations/get_search_library_badrequest.rb +6 -0
  323. data/lib/plex_ruby_sdk/models/operations/get_search_library_errors.rb +8 -0
  324. data/lib/plex_ruby_sdk/models/operations/get_search_library_library_errors.rb +8 -0
  325. data/lib/plex_ruby_sdk/models/operations/get_search_library_mediacontainer.rb +18 -0
  326. data/lib/plex_ruby_sdk/models/operations/get_search_library_metadata.rb +25 -0
  327. data/lib/plex_ruby_sdk/models/operations/get_search_library_request.rb +7 -0
  328. data/lib/plex_ruby_sdk/models/operations/get_search_library_response.rb +11 -0
  329. data/lib/plex_ruby_sdk/models/operations/get_search_library_responsebody.rb +6 -0
  330. data/lib/plex_ruby_sdk/models/operations/get_search_library_unauthorized.rb +6 -0
  331. data/lib/plex_ruby_sdk/models/operations/get_server_identity_mediacontainer.rb +9 -0
  332. data/lib/plex_ruby_sdk/models/operations/get_server_identity_requesttimeout.rb +7 -0
  333. data/lib/plex_ruby_sdk/models/operations/get_server_identity_response.rb +10 -0
  334. data/lib/plex_ruby_sdk/models/operations/get_server_identity_responsebody.rb +6 -0
  335. data/lib/plex_ruby_sdk/models/operations/get_server_resources_badrequest.rb +6 -0
  336. data/lib/plex_ruby_sdk/models/operations/get_server_resources_errors.rb +8 -0
  337. data/lib/plex_ruby_sdk/models/operations/get_server_resources_plex_errors.rb +8 -0
  338. data/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb +9 -0
  339. data/lib/plex_ruby_sdk/models/operations/get_server_resources_response.rb +11 -0
  340. data/lib/plex_ruby_sdk/models/operations/get_server_resources_unauthorized.rb +6 -0
  341. data/lib/plex_ruby_sdk/models/operations/get_thumb_image_badrequest.rb +6 -0
  342. data/lib/plex_ruby_sdk/models/operations/get_thumb_image_errors.rb +8 -0
  343. data/lib/plex_ruby_sdk/models/operations/get_thumb_image_media_errors.rb +8 -0
  344. data/lib/plex_ruby_sdk/models/operations/get_thumb_image_request.rb +11 -0
  345. data/lib/plex_ruby_sdk/models/operations/get_thumb_image_response.rb +12 -0
  346. data/lib/plex_ruby_sdk/models/operations/get_thumb_image_unauthorized.rb +6 -0
  347. data/lib/plex_ruby_sdk/models/operations/get_users_badrequest.rb +6 -0
  348. data/lib/plex_ruby_sdk/models/operations/get_users_errors.rb +8 -0
  349. data/lib/plex_ruby_sdk/models/operations/get_users_mediacontainer.rb +11 -0
  350. data/lib/plex_ruby_sdk/models/operations/get_users_request.rb +18 -0
  351. data/lib/plex_ruby_sdk/models/operations/get_users_response.rb +11 -0
  352. data/lib/plex_ruby_sdk/models/operations/get_users_responsebody.rb +6 -0
  353. data/lib/plex_ruby_sdk/models/operations/get_users_server.rb +14 -0
  354. data/lib/plex_ruby_sdk/models/operations/get_users_unauthorized.rb +6 -0
  355. data/lib/plex_ruby_sdk/models/operations/get_users_users_errors.rb +8 -0
  356. data/lib/plex_ruby_sdk/models/operations/get_watch_list_badrequest.rb +6 -0
  357. data/lib/plex_ruby_sdk/models/operations/get_watch_list_errors.rb +8 -0
  358. data/lib/plex_ruby_sdk/models/operations/get_watch_list_request.rb +14 -0
  359. data/lib/plex_ruby_sdk/models/operations/get_watch_list_response.rb +11 -0
  360. data/lib/plex_ruby_sdk/models/operations/get_watch_list_responsebody.rb +12 -0
  361. data/lib/plex_ruby_sdk/models/operations/get_watch_list_unauthorized.rb +6 -0
  362. data/lib/plex_ruby_sdk/models/operations/get_watch_list_watchlist_errors.rb +8 -0
  363. data/lib/plex_ruby_sdk/models/operations/getavailableclients_badrequest.rb +6 -0
  364. data/lib/plex_ruby_sdk/models/operations/getavailableclients_errors.rb +8 -0
  365. data/lib/plex_ruby_sdk/models/operations/getavailableclients_mediacontainer.rb +7 -0
  366. data/lib/plex_ruby_sdk/models/operations/getavailableclients_response.rb +11 -0
  367. data/lib/plex_ruby_sdk/models/operations/getavailableclients_responsebody.rb +6 -0
  368. data/lib/plex_ruby_sdk/models/operations/getavailableclients_server_errors.rb +8 -0
  369. data/lib/plex_ruby_sdk/models/operations/getavailableclients_unauthorized.rb +6 -0
  370. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_account.rb +13 -0
  371. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_badrequest.rb +6 -0
  372. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_device.rb +10 -0
  373. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_errors.rb +8 -0
  374. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_mediacontainer.rb +9 -0
  375. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_request.rb +6 -0
  376. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_response.rb +11 -0
  377. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_responsebody.rb +6 -0
  378. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_statistics_errors.rb +8 -0
  379. data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_unauthorized.rb +6 -0
  380. data/lib/plex_ruby_sdk/models/operations/getbutlertasks_badrequest.rb +6 -0
  381. data/lib/plex_ruby_sdk/models/operations/getbutlertasks_butler_errors.rb +8 -0
  382. data/lib/plex_ruby_sdk/models/operations/getbutlertasks_errors.rb +8 -0
  383. data/lib/plex_ruby_sdk/models/operations/getbutlertasks_response.rb +11 -0
  384. data/lib/plex_ruby_sdk/models/operations/getbutlertasks_responsebody.rb +6 -0
  385. data/lib/plex_ruby_sdk/models/operations/getbutlertasks_unauthorized.rb +6 -0
  386. data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_badrequest.rb +6 -0
  387. data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_errors.rb +8 -0
  388. data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_plex_errors.rb +8 -0
  389. data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_response.rb +11 -0
  390. data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_unauthorized.rb +6 -0
  391. data/lib/plex_ruby_sdk/models/operations/getdevices_badrequest.rb +6 -0
  392. data/lib/plex_ruby_sdk/models/operations/getdevices_errors.rb +8 -0
  393. data/lib/plex_ruby_sdk/models/operations/getdevices_mediacontainer.rb +8 -0
  394. data/lib/plex_ruby_sdk/models/operations/getdevices_response.rb +11 -0
  395. data/lib/plex_ruby_sdk/models/operations/getdevices_responsebody.rb +6 -0
  396. data/lib/plex_ruby_sdk/models/operations/getdevices_server_errors.rb +8 -0
  397. data/lib/plex_ruby_sdk/models/operations/getdevices_unauthorized.rb +6 -0
  398. data/lib/plex_ruby_sdk/models/operations/getfilehash_badrequest.rb +6 -0
  399. data/lib/plex_ruby_sdk/models/operations/getfilehash_errors.rb +8 -0
  400. data/lib/plex_ruby_sdk/models/operations/getfilehash_library_errors.rb +8 -0
  401. data/lib/plex_ruby_sdk/models/operations/getfilehash_request.rb +7 -0
  402. data/lib/plex_ruby_sdk/models/operations/getfilehash_response.rb +10 -0
  403. data/lib/plex_ruby_sdk/models/operations/getfilehash_unauthorized.rb +6 -0
  404. data/lib/plex_ruby_sdk/models/operations/getgeodata_badrequest.rb +6 -0
  405. data/lib/plex_ruby_sdk/models/operations/getgeodata_errors.rb +8 -0
  406. data/lib/plex_ruby_sdk/models/operations/getgeodata_geodata.rb +16 -0
  407. data/lib/plex_ruby_sdk/models/operations/getgeodata_plex_errors.rb +8 -0
  408. data/lib/plex_ruby_sdk/models/operations/getgeodata_response.rb +11 -0
  409. data/lib/plex_ruby_sdk/models/operations/getgeodata_unauthorized.rb +6 -0
  410. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_badrequest.rb +6 -0
  411. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_errors.rb +8 -0
  412. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_hubs_errors.rb +8 -0
  413. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_mediacontainer.rb +9 -0
  414. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_metadata.rb +22 -0
  415. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_request.rb +7 -0
  416. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_response.rb +11 -0
  417. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_responsebody.rb +6 -0
  418. data/lib/plex_ruby_sdk/models/operations/getglobalhubs_unauthorized.rb +6 -0
  419. data/lib/plex_ruby_sdk/models/operations/gethomedata_badrequest.rb +6 -0
  420. data/lib/plex_ruby_sdk/models/operations/gethomedata_errors.rb +8 -0
  421. data/lib/plex_ruby_sdk/models/operations/gethomedata_plex_errors.rb +8 -0
  422. data/lib/plex_ruby_sdk/models/operations/gethomedata_response.rb +11 -0
  423. data/lib/plex_ruby_sdk/models/operations/gethomedata_responsebody.rb +11 -0
  424. data/lib/plex_ruby_sdk/models/operations/gethomedata_unauthorized.rb +6 -0
  425. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_badrequest.rb +6 -0
  426. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_country.rb +6 -0
  427. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_director.rb +6 -0
  428. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_errors.rb +8 -0
  429. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_genre.rb +6 -0
  430. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_hub.rb +17 -0
  431. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_hubs_errors.rb +8 -0
  432. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_media.rb +22 -0
  433. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_mediacontainer.rb +12 -0
  434. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_metadata.rb +39 -0
  435. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_part.rb +15 -0
  436. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_request.rb +8 -0
  437. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_response.rb +11 -0
  438. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_responsebody.rb +6 -0
  439. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_role.rb +6 -0
  440. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_unauthorized.rb +6 -0
  441. data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_writer.rb +6 -0
  442. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_badrequest.rb +6 -0
  443. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_directory.rb +10 -0
  444. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_errors.rb +8 -0
  445. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_library_errors.rb +8 -0
  446. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_mediacontainer.rb +28 -0
  447. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_metadata.rb +32 -0
  448. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_request.rb +7 -0
  449. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_response.rb +11 -0
  450. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_responsebody.rb +6 -0
  451. data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_unauthorized.rb +6 -0
  452. data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_badrequest.rb +6 -0
  453. data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_errors.rb +8 -0
  454. data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_response.rb +11 -0
  455. data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_responsebody.rb +6 -0
  456. data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_server_errors.rb +8 -0
  457. data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_unauthorized.rb +6 -0
  458. data/lib/plex_ruby_sdk/models/operations/getpin_authpincontainer.rb +17 -0
  459. data/lib/plex_ruby_sdk/models/operations/getpin_badrequest.rb +6 -0
  460. data/lib/plex_ruby_sdk/models/operations/getpin_errors.rb +8 -0
  461. data/lib/plex_ruby_sdk/models/operations/getpin_request.rb +11 -0
  462. data/lib/plex_ruby_sdk/models/operations/getpin_response.rb +10 -0
  463. data/lib/plex_ruby_sdk/models/operations/getplaylist_badrequest.rb +6 -0
  464. data/lib/plex_ruby_sdk/models/operations/getplaylist_errors.rb +8 -0
  465. data/lib/plex_ruby_sdk/models/operations/getplaylist_mediacontainer.rb +7 -0
  466. data/lib/plex_ruby_sdk/models/operations/getplaylist_metadata.rb +20 -0
  467. data/lib/plex_ruby_sdk/models/operations/getplaylist_playlists_errors.rb +8 -0
  468. data/lib/plex_ruby_sdk/models/operations/getplaylist_request.rb +6 -0
  469. data/lib/plex_ruby_sdk/models/operations/getplaylist_response.rb +11 -0
  470. data/lib/plex_ruby_sdk/models/operations/getplaylist_responsebody.rb +6 -0
  471. data/lib/plex_ruby_sdk/models/operations/getplaylist_unauthorized.rb +6 -0
  472. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_badrequest.rb +6 -0
  473. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_country.rb +6 -0
  474. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_director.rb +6 -0
  475. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_errors.rb +8 -0
  476. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_genre.rb +6 -0
  477. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_media.rb +22 -0
  478. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_mediacontainer.rb +14 -0
  479. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_metadata.rb +37 -0
  480. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_part.rb +15 -0
  481. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_playlists_errors.rb +8 -0
  482. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_request.rb +7 -0
  483. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_response.rb +11 -0
  484. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_responsebody.rb +6 -0
  485. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_role.rb +6 -0
  486. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_unauthorized.rb +6 -0
  487. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_writer.rb +6 -0
  488. data/lib/plex_ruby_sdk/models/operations/getplaylists_badrequest.rb +6 -0
  489. data/lib/plex_ruby_sdk/models/operations/getplaylists_errors.rb +8 -0
  490. data/lib/plex_ruby_sdk/models/operations/getplaylists_mediacontainer.rb +7 -0
  491. data/lib/plex_ruby_sdk/models/operations/getplaylists_metadata.rb +21 -0
  492. data/lib/plex_ruby_sdk/models/operations/getplaylists_playlists_errors.rb +8 -0
  493. data/lib/plex_ruby_sdk/models/operations/getplaylists_request.rb +7 -0
  494. data/lib/plex_ruby_sdk/models/operations/getplaylists_response.rb +11 -0
  495. data/lib/plex_ruby_sdk/models/operations/getplaylists_responsebody.rb +6 -0
  496. data/lib/plex_ruby_sdk/models/operations/getplaylists_unauthorized.rb +6 -0
  497. data/lib/plex_ruby_sdk/models/operations/getresizedphoto_badrequest.rb +6 -0
  498. data/lib/plex_ruby_sdk/models/operations/getresizedphoto_errors.rb +8 -0
  499. data/lib/plex_ruby_sdk/models/operations/getresizedphoto_request.rb +12 -0
  500. data/lib/plex_ruby_sdk/models/operations/getresizedphoto_response.rb +10 -0
  501. data/lib/plex_ruby_sdk/models/operations/getresizedphoto_server_errors.rb +8 -0
  502. data/lib/plex_ruby_sdk/models/operations/getresizedphoto_unauthorized.rb +6 -0
  503. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_badrequest.rb +6 -0
  504. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_errors.rb +8 -0
  505. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_mediacontainer.rb +7 -0
  506. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_request.rb +6 -0
  507. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_response.rb +11 -0
  508. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_responsebody.rb +6 -0
  509. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_statistics_errors.rb +8 -0
  510. data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_unauthorized.rb +6 -0
  511. data/lib/plex_ruby_sdk/models/operations/getsearchresults_badrequest.rb +6 -0
  512. data/lib/plex_ruby_sdk/models/operations/getsearchresults_country.rb +6 -0
  513. data/lib/plex_ruby_sdk/models/operations/getsearchresults_director.rb +6 -0
  514. data/lib/plex_ruby_sdk/models/operations/getsearchresults_errors.rb +8 -0
  515. data/lib/plex_ruby_sdk/models/operations/getsearchresults_genre.rb +6 -0
  516. data/lib/plex_ruby_sdk/models/operations/getsearchresults_media.rb +20 -0
  517. data/lib/plex_ruby_sdk/models/operations/getsearchresults_mediacontainer.rb +11 -0
  518. data/lib/plex_ruby_sdk/models/operations/getsearchresults_metadata.rb +39 -0
  519. data/lib/plex_ruby_sdk/models/operations/getsearchresults_part.rb +13 -0
  520. data/lib/plex_ruby_sdk/models/operations/getsearchresults_request.rb +6 -0
  521. data/lib/plex_ruby_sdk/models/operations/getsearchresults_response.rb +11 -0
  522. data/lib/plex_ruby_sdk/models/operations/getsearchresults_responsebody.rb +6 -0
  523. data/lib/plex_ruby_sdk/models/operations/getsearchresults_role.rb +6 -0
  524. data/lib/plex_ruby_sdk/models/operations/getsearchresults_search_errors.rb +8 -0
  525. data/lib/plex_ruby_sdk/models/operations/getsearchresults_unauthorized.rb +6 -0
  526. data/lib/plex_ruby_sdk/models/operations/getsearchresults_writer.rb +6 -0
  527. data/lib/plex_ruby_sdk/models/operations/getserveractivities_activities_errors.rb +8 -0
  528. data/lib/plex_ruby_sdk/models/operations/getserveractivities_badrequest.rb +6 -0
  529. data/lib/plex_ruby_sdk/models/operations/getserveractivities_errors.rb +8 -0
  530. data/lib/plex_ruby_sdk/models/operations/getserveractivities_mediacontainer.rb +7 -0
  531. data/lib/plex_ruby_sdk/models/operations/getserveractivities_response.rb +11 -0
  532. data/lib/plex_ruby_sdk/models/operations/getserveractivities_responsebody.rb +6 -0
  533. data/lib/plex_ruby_sdk/models/operations/getserveractivities_unauthorized.rb +6 -0
  534. data/lib/plex_ruby_sdk/models/operations/getservercapabilities_badrequest.rb +6 -0
  535. data/lib/plex_ruby_sdk/models/operations/getservercapabilities_errors.rb +8 -0
  536. data/lib/plex_ruby_sdk/models/operations/getservercapabilities_response.rb +11 -0
  537. data/lib/plex_ruby_sdk/models/operations/getservercapabilities_responsebody.rb +6 -0
  538. data/lib/plex_ruby_sdk/models/operations/getservercapabilities_unauthorized.rb +6 -0
  539. data/lib/plex_ruby_sdk/models/operations/getserverlist_badrequest.rb +6 -0
  540. data/lib/plex_ruby_sdk/models/operations/getserverlist_errors.rb +8 -0
  541. data/lib/plex_ruby_sdk/models/operations/getserverlist_mediacontainer.rb +7 -0
  542. data/lib/plex_ruby_sdk/models/operations/getserverlist_response.rb +11 -0
  543. data/lib/plex_ruby_sdk/models/operations/getserverlist_responsebody.rb +6 -0
  544. data/lib/plex_ruby_sdk/models/operations/getserverlist_server.rb +11 -0
  545. data/lib/plex_ruby_sdk/models/operations/getserverlist_server_errors.rb +8 -0
  546. data/lib/plex_ruby_sdk/models/operations/getserverlist_unauthorized.rb +6 -0
  547. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_badrequest.rb +6 -0
  548. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_errors.rb +8 -0
  549. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_mediacontainer.rb +7 -0
  550. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_response.rb +11 -0
  551. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_responsebody.rb +6 -0
  552. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_server_errors.rb +8 -0
  553. data/lib/plex_ruby_sdk/models/operations/getserverpreferences_unauthorized.rb +6 -0
  554. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_badrequest.rb +6 -0
  555. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_errors.rb +8 -0
  556. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_mediacontainer.rb +7 -0
  557. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_metadata.rb +24 -0
  558. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_request.rb +9 -0
  559. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_response.rb +11 -0
  560. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_responsebody.rb +6 -0
  561. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_sessions_errors.rb +8 -0
  562. data/lib/plex_ruby_sdk/models/operations/getsessionhistory_unauthorized.rb +6 -0
  563. data/lib/plex_ruby_sdk/models/operations/getsessions_badrequest.rb +6 -0
  564. data/lib/plex_ruby_sdk/models/operations/getsessions_errors.rb +8 -0
  565. data/lib/plex_ruby_sdk/models/operations/getsessions_media.rb +13 -0
  566. data/lib/plex_ruby_sdk/models/operations/getsessions_mediacontainer.rb +7 -0
  567. data/lib/plex_ruby_sdk/models/operations/getsessions_metadata.rb +43 -0
  568. data/lib/plex_ruby_sdk/models/operations/getsessions_part.rb +15 -0
  569. data/lib/plex_ruby_sdk/models/operations/getsessions_response.rb +11 -0
  570. data/lib/plex_ruby_sdk/models/operations/getsessions_responsebody.rb +6 -0
  571. data/lib/plex_ruby_sdk/models/operations/getsessions_sessions_errors.rb +8 -0
  572. data/lib/plex_ruby_sdk/models/operations/getsessions_stream.rb +25 -0
  573. data/lib/plex_ruby_sdk/models/operations/getsessions_unauthorized.rb +6 -0
  574. data/lib/plex_ruby_sdk/models/operations/getsessions_user.rb +8 -0
  575. data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_authentication_errors.rb +8 -0
  576. data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_badrequest.rb +6 -0
  577. data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_errors.rb +8 -0
  578. data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_request.rb +6 -0
  579. data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_response.rb +10 -0
  580. data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_unauthorized.rb +6 -0
  581. data/lib/plex_ruby_sdk/models/operations/getstatistics_badrequest.rb +6 -0
  582. data/lib/plex_ruby_sdk/models/operations/getstatistics_device.rb +10 -0
  583. data/lib/plex_ruby_sdk/models/operations/getstatistics_errors.rb +8 -0
  584. data/lib/plex_ruby_sdk/models/operations/getstatistics_mediacontainer.rb +9 -0
  585. data/lib/plex_ruby_sdk/models/operations/getstatistics_request.rb +6 -0
  586. data/lib/plex_ruby_sdk/models/operations/getstatistics_response.rb +11 -0
  587. data/lib/plex_ruby_sdk/models/operations/getstatistics_responsebody.rb +6 -0
  588. data/lib/plex_ruby_sdk/models/operations/getstatistics_statistics_errors.rb +8 -0
  589. data/lib/plex_ruby_sdk/models/operations/getstatistics_unauthorized.rb +6 -0
  590. data/lib/plex_ruby_sdk/models/operations/gettimeline_badrequest.rb +6 -0
  591. data/lib/plex_ruby_sdk/models/operations/gettimeline_errors.rb +8 -0
  592. data/lib/plex_ruby_sdk/models/operations/gettimeline_request.rb +15 -0
  593. data/lib/plex_ruby_sdk/models/operations/gettimeline_response.rb +10 -0
  594. data/lib/plex_ruby_sdk/models/operations/gettimeline_unauthorized.rb +6 -0
  595. data/lib/plex_ruby_sdk/models/operations/gettimeline_video_errors.rb +8 -0
  596. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_authpincontainer.rb +17 -0
  597. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_badrequest.rb +6 -0
  598. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_errors.rb +8 -0
  599. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_geodata.rb +16 -0
  600. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_plex_errors.rb +7 -0
  601. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_request.rb +11 -0
  602. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_response.rb +11 -0
  603. data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_responsebody.rb +6 -0
  604. data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_errors.rb +8 -0
  605. data/lib/plex_ruby_sdk/models/operations/gettokendetails_badrequest.rb +6 -0
  606. data/lib/plex_ruby_sdk/models/operations/gettokendetails_errors.rb +8 -0
  607. data/lib/plex_ruby_sdk/models/operations/gettokendetails_response.rb +11 -0
  608. data/lib/plex_ruby_sdk/models/operations/gettokendetails_subscription.rb +11 -0
  609. data/lib/plex_ruby_sdk/models/operations/gettokendetails_unauthorized.rb +6 -0
  610. data/lib/plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb +46 -0
  611. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_badrequest.rb +6 -0
  612. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_country.rb +8 -0
  613. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_errors.rb +8 -0
  614. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_genre.rb +8 -0
  615. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_guids.rb +6 -0
  616. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_library_errors.rb +8 -0
  617. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_mediacontainer.rb +11 -0
  618. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_metadata.rb +37 -0
  619. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb +7 -0
  620. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_response.rb +11 -0
  621. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_responsebody.rb +6 -0
  622. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_role.rb +11 -0
  623. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_unauthorized.rb +6 -0
  624. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_user.rb +6 -0
  625. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_badrequest.rb +6 -0
  626. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_errors.rb +8 -0
  627. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_mediacontainer.rb +7 -0
  628. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_response.rb +11 -0
  629. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_responsebody.rb +6 -0
  630. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_sessions_errors.rb +8 -0
  631. data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_unauthorized.rb +6 -0
  632. data/lib/plex_ruby_sdk/models/operations/gettransienttoken_authentication_errors.rb +8 -0
  633. data/lib/plex_ruby_sdk/models/operations/gettransienttoken_badrequest.rb +6 -0
  634. data/lib/plex_ruby_sdk/models/operations/gettransienttoken_errors.rb +8 -0
  635. data/lib/plex_ruby_sdk/models/operations/gettransienttoken_request.rb +7 -0
  636. data/lib/plex_ruby_sdk/models/operations/gettransienttoken_response.rb +10 -0
  637. data/lib/plex_ruby_sdk/models/operations/gettransienttoken_unauthorized.rb +6 -0
  638. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_badrequest.rb +6 -0
  639. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_errors.rb +8 -0
  640. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_mediacontainer.rb +11 -0
  641. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_response.rb +11 -0
  642. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_responsebody.rb +6 -0
  643. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_unauthorized.rb +6 -0
  644. data/lib/plex_ruby_sdk/models/operations/getupdatestatus_updater_errors.rb +8 -0
  645. data/lib/plex_ruby_sdk/models/operations/getuserfriends_badrequest.rb +6 -0
  646. data/lib/plex_ruby_sdk/models/operations/getuserfriends_errors.rb +8 -0
  647. data/lib/plex_ruby_sdk/models/operations/getuserfriends_plex_errors.rb +8 -0
  648. data/lib/plex_ruby_sdk/models/operations/getuserfriends_response.rb +11 -0
  649. data/lib/plex_ruby_sdk/models/operations/getuserfriends_unauthorized.rb +6 -0
  650. data/lib/plex_ruby_sdk/models/operations/guids.rb +6 -0
  651. data/lib/plex_ruby_sdk/models/operations/hidden.rb +18 -0
  652. data/lib/plex_ruby_sdk/models/operations/hub.rb +16 -0
  653. data/lib/plex_ruby_sdk/models/operations/image.rb +8 -0
  654. data/lib/plex_ruby_sdk/models/operations/internalpaymentmethod.rb +5 -0
  655. data/lib/plex_ruby_sdk/models/operations/location.rb +6 -0
  656. data/lib/plex_ruby_sdk/models/operations/logline_badrequest.rb +6 -0
  657. data/lib/plex_ruby_sdk/models/operations/logline_errors.rb +8 -0
  658. data/lib/plex_ruby_sdk/models/operations/logline_log_errors.rb +8 -0
  659. data/lib/plex_ruby_sdk/models/operations/logline_request.rb +8 -0
  660. data/lib/plex_ruby_sdk/models/operations/logline_response.rb +10 -0
  661. data/lib/plex_ruby_sdk/models/operations/logline_unauthorized.rb +6 -0
  662. data/lib/plex_ruby_sdk/models/operations/logmultiline_badrequest.rb +6 -0
  663. data/lib/plex_ruby_sdk/models/operations/logmultiline_errors.rb +8 -0
  664. data/lib/plex_ruby_sdk/models/operations/logmultiline_log_errors.rb +8 -0
  665. data/lib/plex_ruby_sdk/models/operations/logmultiline_response.rb +10 -0
  666. data/lib/plex_ruby_sdk/models/operations/logmultiline_unauthorized.rb +6 -0
  667. data/lib/plex_ruby_sdk/models/operations/markplayed_badrequest.rb +6 -0
  668. data/lib/plex_ruby_sdk/models/operations/markplayed_errors.rb +8 -0
  669. data/lib/plex_ruby_sdk/models/operations/markplayed_media_errors.rb +8 -0
  670. data/lib/plex_ruby_sdk/models/operations/markplayed_request.rb +6 -0
  671. data/lib/plex_ruby_sdk/models/operations/markplayed_response.rb +10 -0
  672. data/lib/plex_ruby_sdk/models/operations/markplayed_unauthorized.rb +6 -0
  673. data/lib/plex_ruby_sdk/models/operations/markunplayed_badrequest.rb +6 -0
  674. data/lib/plex_ruby_sdk/models/operations/markunplayed_errors.rb +8 -0
  675. data/lib/plex_ruby_sdk/models/operations/markunplayed_media_errors.rb +8 -0
  676. data/lib/plex_ruby_sdk/models/operations/markunplayed_request.rb +6 -0
  677. data/lib/plex_ruby_sdk/models/operations/markunplayed_response.rb +10 -0
  678. data/lib/plex_ruby_sdk/models/operations/markunplayed_unauthorized.rb +6 -0
  679. data/lib/plex_ruby_sdk/models/operations/media.rb +26 -2
  680. data/lib/plex_ruby_sdk/models/operations/mediacontainer.rb +56 -0
  681. data/lib/plex_ruby_sdk/models/operations/mediaguid.rb +6 -0
  682. data/lib/plex_ruby_sdk/models/operations/mediaprovider.rb +10 -0
  683. data/lib/plex_ruby_sdk/models/operations/meta.rb +7 -0
  684. data/lib/plex_ruby_sdk/models/operations/metadata.rb +40 -0
  685. data/lib/plex_ruby_sdk/models/operations/metadatarating.rb +8 -0
  686. data/lib/plex_ruby_sdk/models/operations/myplex.rb +17 -0
  687. data/lib/plex_ruby_sdk/models/operations/one.rb +18 -0
  688. data/lib/plex_ruby_sdk/models/operations/operator.rb +7 -0
  689. data/lib/plex_ruby_sdk/models/operations/optimizedforstreaming.rb +11 -4
  690. data/lib/plex_ruby_sdk/models/operations/optimizedforstreaming_1.rb +18 -0
  691. data/lib/plex_ruby_sdk/models/operations/part.rb +23 -2
  692. data/lib/plex_ruby_sdk/models/operations/pastsubscription.rb +20 -0
  693. data/lib/plex_ruby_sdk/models/operations/performsearch_badrequest.rb +6 -0
  694. data/lib/plex_ruby_sdk/models/operations/performsearch_errors.rb +8 -0
  695. data/lib/plex_ruby_sdk/models/operations/performsearch_request.rb +8 -0
  696. data/lib/plex_ruby_sdk/models/operations/performsearch_response.rb +10 -0
  697. data/lib/plex_ruby_sdk/models/operations/performsearch_search_errors.rb +8 -0
  698. data/lib/plex_ruby_sdk/models/operations/performsearch_unauthorized.rb +6 -0
  699. data/lib/plex_ruby_sdk/models/operations/performvoicesearch_badrequest.rb +6 -0
  700. data/lib/plex_ruby_sdk/models/operations/performvoicesearch_errors.rb +8 -0
  701. data/lib/plex_ruby_sdk/models/operations/performvoicesearch_request.rb +8 -0
  702. data/lib/plex_ruby_sdk/models/operations/performvoicesearch_response.rb +10 -0
  703. data/lib/plex_ruby_sdk/models/operations/performvoicesearch_search_errors.rb +8 -0
  704. data/lib/plex_ruby_sdk/models/operations/performvoicesearch_unauthorized.rb +6 -0
  705. data/lib/plex_ruby_sdk/models/operations/pivot.rb +11 -0
  706. data/lib/plex_ruby_sdk/models/operations/player.rb +20 -0
  707. data/lib/plex_ruby_sdk/models/operations/plexdevice.rb +29 -0
  708. data/lib/plex_ruby_sdk/models/operations/post_media_arts_request.rb +8 -0
  709. data/lib/plex_ruby_sdk/models/operations/post_media_arts_response.rb +8 -0
  710. data/lib/plex_ruby_sdk/models/operations/post_media_poster_request.rb +8 -0
  711. data/lib/plex_ruby_sdk/models/operations/post_media_poster_response.rb +8 -0
  712. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_errors.rb +8 -0
  713. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_subscription.rb +11 -0
  714. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_badrequest.rb +6 -0
  715. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_errors.rb +8 -0
  716. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb +11 -0
  717. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_requestbody.rb +9 -0
  718. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_response.rb +11 -0
  719. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_services.rb +10 -0
  720. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_subscription.rb +11 -0
  721. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_unauthorized.rb +6 -0
  722. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userplexaccount.rb +48 -0
  723. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userprofile.rb +13 -0
  724. data/lib/plex_ruby_sdk/models/operations/producer.rb +10 -0
  725. data/lib/plex_ruby_sdk/models/operations/provider.rb +8 -0
  726. data/lib/plex_ruby_sdk/models/operations/queryparam_filter.rb +5 -0
  727. data/lib/plex_ruby_sdk/models/operations/rating.rb +8 -0
  728. data/lib/plex_ruby_sdk/models/operations/ratings.rb +8 -0
  729. data/lib/plex_ruby_sdk/models/operations/release.rb +11 -0
  730. data/lib/plex_ruby_sdk/models/operations/responsebody.rb +11 -0
  731. data/lib/plex_ruby_sdk/models/operations/role.rb +11 -0
  732. data/lib/plex_ruby_sdk/models/operations/searchresult.rb +7 -0
  733. data/lib/plex_ruby_sdk/models/operations/server.rb +16 -0
  734. data/lib/plex_ruby_sdk/models/operations/services.rb +10 -0
  735. data/lib/plex_ruby_sdk/models/operations/session.rb +8 -0
  736. data/lib/plex_ruby_sdk/models/operations/setting.rb +15 -0
  737. data/lib/plex_ruby_sdk/models/operations/sharedservers.rb +5 -0
  738. data/lib/plex_ruby_sdk/models/operations/sharedsources.rb +5 -0
  739. data/lib/plex_ruby_sdk/models/operations/similar.rb +8 -0
  740. data/lib/plex_ruby_sdk/models/operations/sort.rb +13 -0
  741. data/lib/plex_ruby_sdk/models/operations/startalltasks_badrequest.rb +6 -0
  742. data/lib/plex_ruby_sdk/models/operations/startalltasks_butler_errors.rb +8 -0
  743. data/lib/plex_ruby_sdk/models/operations/startalltasks_errors.rb +8 -0
  744. data/lib/plex_ruby_sdk/models/operations/startalltasks_response.rb +10 -0
  745. data/lib/plex_ruby_sdk/models/operations/startalltasks_unauthorized.rb +6 -0
  746. data/lib/plex_ruby_sdk/models/operations/starttask_badrequest.rb +6 -0
  747. data/lib/plex_ruby_sdk/models/operations/starttask_butler_errors.rb +8 -0
  748. data/lib/plex_ruby_sdk/models/operations/starttask_errors.rb +8 -0
  749. data/lib/plex_ruby_sdk/models/operations/starttask_request.rb +6 -0
  750. data/lib/plex_ruby_sdk/models/operations/starttask_response.rb +10 -0
  751. data/lib/plex_ruby_sdk/models/operations/starttask_unauthorized.rb +6 -0
  752. data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_badrequest.rb +6 -0
  753. data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_errors.rb +8 -0
  754. data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_request.rb +21 -0
  755. data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_response.rb +10 -0
  756. data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_unauthorized.rb +6 -0
  757. data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_video_errors.rb +8 -0
  758. data/lib/plex_ruby_sdk/models/operations/statisticsbandwidth.rb +11 -0
  759. data/lib/plex_ruby_sdk/models/operations/statisticsmedia.rb +12 -0
  760. data/lib/plex_ruby_sdk/models/operations/statisticsresources.rb +11 -0
  761. data/lib/plex_ruby_sdk/models/operations/stopalltasks_badrequest.rb +6 -0
  762. data/lib/plex_ruby_sdk/models/operations/stopalltasks_butler_errors.rb +8 -0
  763. data/lib/plex_ruby_sdk/models/operations/stopalltasks_errors.rb +8 -0
  764. data/lib/plex_ruby_sdk/models/operations/stopalltasks_response.rb +10 -0
  765. data/lib/plex_ruby_sdk/models/operations/stopalltasks_unauthorized.rb +6 -0
  766. data/lib/plex_ruby_sdk/models/operations/stoptask_badrequest.rb +6 -0
  767. data/lib/plex_ruby_sdk/models/operations/stoptask_butler_errors.rb +8 -0
  768. data/lib/plex_ruby_sdk/models/operations/stoptask_errors.rb +8 -0
  769. data/lib/plex_ruby_sdk/models/operations/stoptask_request.rb +6 -0
  770. data/lib/plex_ruby_sdk/models/operations/stoptask_response.rb +10 -0
  771. data/lib/plex_ruby_sdk/models/operations/stoptask_unauthorized.rb +6 -0
  772. data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_badrequest.rb +6 -0
  773. data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_errors.rb +8 -0
  774. data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_request.rb +6 -0
  775. data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_response.rb +10 -0
  776. data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_sessions_errors.rb +8 -0
  777. data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_unauthorized.rb +6 -0
  778. data/lib/plex_ruby_sdk/models/operations/stream.rb +54 -0
  779. data/lib/plex_ruby_sdk/models/operations/subscription.rb +11 -0
  780. data/lib/plex_ruby_sdk/models/operations/transcodesession.rb +29 -0
  781. data/lib/plex_ruby_sdk/models/operations/trials.rb +5 -0
  782. data/lib/plex_ruby_sdk/models/operations/ultrablurcolors.rb +9 -0
  783. data/lib/plex_ruby_sdk/models/operations/updateplaylist_badrequest.rb +6 -0
  784. data/lib/plex_ruby_sdk/models/operations/updateplaylist_errors.rb +8 -0
  785. data/lib/plex_ruby_sdk/models/operations/updateplaylist_playlists_errors.rb +8 -0
  786. data/lib/plex_ruby_sdk/models/operations/updateplaylist_request.rb +8 -0
  787. data/lib/plex_ruby_sdk/models/operations/updateplaylist_response.rb +10 -0
  788. data/lib/plex_ruby_sdk/models/operations/updateplaylist_unauthorized.rb +6 -0
  789. data/lib/plex_ruby_sdk/models/operations/updateplayprogress_badrequest.rb +6 -0
  790. data/lib/plex_ruby_sdk/models/operations/updateplayprogress_errors.rb +8 -0
  791. data/lib/plex_ruby_sdk/models/operations/updateplayprogress_media_errors.rb +8 -0
  792. data/lib/plex_ruby_sdk/models/operations/updateplayprogress_request.rb +8 -0
  793. data/lib/plex_ruby_sdk/models/operations/updateplayprogress_response.rb +10 -0
  794. data/lib/plex_ruby_sdk/models/operations/updateplayprogress_unauthorized.rb +6 -0
  795. data/lib/plex_ruby_sdk/models/operations/uploadplaylist_badrequest.rb +6 -0
  796. data/lib/plex_ruby_sdk/models/operations/uploadplaylist_errors.rb +8 -0
  797. data/lib/plex_ruby_sdk/models/operations/uploadplaylist_playlists_errors.rb +8 -0
  798. data/lib/plex_ruby_sdk/models/operations/uploadplaylist_request.rb +8 -0
  799. data/lib/plex_ruby_sdk/models/operations/uploadplaylist_response.rb +10 -0
  800. data/lib/plex_ruby_sdk/models/operations/uploadplaylist_unauthorized.rb +6 -0
  801. data/lib/plex_ruby_sdk/models/operations/user.rb +25 -0
  802. data/lib/plex_ruby_sdk/models/operations/userprofile.rb +13 -0
  803. data/lib/plex_ruby_sdk/models/operations/writer.rb +9 -0
  804. data/lib/plex_ruby_sdk/models/operations.rb +832 -818
  805. data/lib/plex_ruby_sdk/models/shared/security.rb +6 -0
  806. data/lib/plex_ruby_sdk/playlists.rb +9 -9
  807. data/lib/plex_ruby_sdk/plex.rb +7 -7
  808. data/lib/plex_ruby_sdk/sdkconfiguration.rb +3 -3
  809. data/lib/plex_ruby_sdk/search.rb +3 -3
  810. data/lib/plex_ruby_sdk/server.rb +9 -9
  811. data/lib/plex_ruby_sdk/sessions.rb +4 -4
  812. data/lib/plex_ruby_sdk/statistics.rb +3 -3
  813. data/lib/plex_ruby_sdk/updater.rb +3 -3
  814. data/lib/plex_ruby_sdk/users.rb +1 -1
  815. data/lib/plex_ruby_sdk/utils/utils.rb +3 -3
  816. data/lib/plex_ruby_sdk/video.rb +2 -2
  817. data/lib/plex_ruby_sdk/watchlist.rb +1 -1
  818. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf3067a10347445724f3a5df1fc48c14e5ca0816e712b9f368e6bccac6cfc9e2
4
- data.tar.gz: 878ce677d32082acefa11d54b24c0dcf6f93f8550bbaa87f6ca4e4aa6237a08f
3
+ metadata.gz: caf9cf3f01c061dad369aa2458abd0de7f5ccbdca7932c0ce38afd93a68523ce
4
+ data.tar.gz: 253e702742d48c33f4699c2a064c4aced5d8ddc5d07ff9c211d2e375f70454ce
5
5
  SHA512:
6
- metadata.gz: d0e4e861fe59f6432aa7c6fdd5270ee7f9c2e00258af2f1d8db023c7f05c0ead2f060a1ec926828263dae2711be25e0b6717109f096afe93e968441462939ce8
7
- data.tar.gz: 579c5b9be0c52f9a981d0e875ac673e1e6e70b6f2b3cac47aa6e6998f3b5e07d5bb8424cac60f81a6045ca5411e6b17cc7f5b605b96162812bf698c1758faba6
6
+ metadata.gz: d189a8ac0478edd58606abd7c34e9ae26b339894c9596a56b6fdcb94d9bb685d0dd7ea54724d9b155960b6cb5ebd6a896b2b757f700ae225d096edae2087a028
7
+ data.tar.gz: 98924f266aaca5b8229908f2c955baf2bb5dfa306fc8cbc0779579a531a114d64aee5468436b4c6a7b43f27b5a97ac1a2871d3957a710cff3e1e54d6e3cdaf99
@@ -80,6 +80,10 @@ module Crystalline
80
80
  key = "#{field.name}="
81
81
  lookup = field.metadata.fetch(:format_json, {}).fetch(:letter_case, nil).call
82
82
  value = d[lookup]
83
+
84
+ # If field is not nilable, and the value is not in the dict, raise a KeyError
85
+ raise KeyError, "key #{lookup} not found in hash" if value.nil? && !T.nilable?(field.type)
86
+ # If field is nilable, and the value is not in the dict, just move to the next field
83
87
  next if value.nil?
84
88
 
85
89
  if T.arr? field_type
@@ -93,12 +97,41 @@ module Crystalline
93
97
  unmarshalled_hash = value.map { |k, v| [k, unmarshal_single(val_type, v)] }.to_h
94
98
  # rubocop:enable Style/HashTransformValues
95
99
  to_build.send(key, unmarshalled_hash)
100
+ elsif T.union? field_type
101
+ discriminator = field.metadata.fetch(:discriminator, nil)
102
+ if !discriminator.nil?
103
+ type_to_deserialize = value.fetch(discriminator)
104
+ type_to_deserialize = T.get_union_types(field_type).find { |t| t.name.split('::').last == type_to_deserialize }
105
+ unmarshalled_val = Crystalline.unmarshal_json(value, type_to_deserialize)
106
+ to_build.send(key, unmarshalled_val)
107
+ else
108
+ union_types = T.get_union_types(field_type)
109
+ union_types = union_types.sort_by { |klass| Crystalline.non_nilable_attr_count(klass) }
110
+
111
+ union_types.each do |union_type|
112
+ begin
113
+ unmarshalled_val = Crystalline.unmarshal_json(value, union_type)
114
+ to_build.send(key, unmarshalled_val)
115
+ rescue TypeError
116
+ next
117
+ rescue NoMethodError
118
+ next
119
+ rescue KeyError
120
+ next
121
+ end
122
+ break
123
+ end
124
+ end
125
+ elsif field_type.instance_of?(Class) && field_type < ::Crystalline::FieldAugmented
126
+ unmarshalled = Crystalline.unmarshal_json(value, field_type)
127
+ to_build.send(key, unmarshalled)
96
128
  else
97
129
  decoder = field.metadata.fetch(:format_json, {}).fetch(:decoder, nil)
98
130
  final_value = unmarshal_single(field_type, value, decoder)
99
131
  to_build.send(key, final_value)
100
132
  end
101
133
  end
134
+
102
135
  to_build
103
136
  end
104
137
  end
data/lib/crystalline/t.rb CHANGED
@@ -27,11 +27,17 @@ module T
27
27
  end
28
28
 
29
29
  def self.nilable?(t)
30
- t.respond_to? :unwrap_nilable
30
+ # in sorbet all `T.any` types provide unwrap_nilable for some reason
31
+ # So, in order to make this check more robust, we check if the type responds to the `types` method, and if so, whether
32
+ # one of those types is NilClass. For non-nilable unions, `types` will return a valid list that does not include NilClass
33
+ return false unless t.respond_to?(:unwrap_nilable)
34
+ return true unless t.respond_to?(:types)
35
+ t.types.map { |tt| simplify_type(tt) }.include?(NilClass)
31
36
  end
32
37
 
33
38
  def self.nilable_of(t)
34
- if t.respond_to? :unwrap_nilable
39
+
40
+ if nilable t
35
41
  return simplify_type t.unwrap_nilable
36
42
  end
37
43
  nil
@@ -48,6 +54,19 @@ module T
48
54
  t
49
55
  end
50
56
 
57
+
58
+ def self.union?(t)
59
+ return false unless t.respond_to? :types
60
+ return false if t.types.any? { |tt| get_raw_type(tt) == TrueClass }
61
+ return false if t.types.length == 2 && t.types.any? { |tt| get_raw_type(tt) == NilClass }
62
+ t.types.length > 1
63
+ end
64
+
65
+ def self.get_union_types(t)
66
+ t.types.map { |tt| get_raw_type(tt) }
67
+ end
68
+
69
+
51
70
  def self.get_raw_type(t)
52
71
  if t.respond_to? :raw_type
53
72
  return t.raw_type
@@ -13,25 +13,20 @@ module Crystalline
13
13
  end
14
14
 
15
15
  sig { params(complex: Object).returns(Object) }
16
- def self.marshal_dict_complex(complex)
16
+ def self.to_dict(complex)
17
17
  if complex.is_a? Array
18
- complex.map { |v| Crystalline.marshal_dict_complex(v) }
18
+ complex.map { |v| Crystalline.to_dict(v) }
19
19
  elsif complex.is_a? Hash
20
- complex.transform_values { |v| Crystalline.marshal_dict_complex(v) }
20
+ complex.transform_values { |v| Crystalline.to_dict(v) }
21
21
  elsif complex.is_a? Crystalline::FieldAugmented
22
22
  complex.to_dict
23
23
  else
24
- complex
24
+ val_to_string complex, primitives: false
25
25
  end
26
26
  end
27
27
 
28
- def self.marshal_json_complex(complex)
29
- JSON.dump(marshal_dict_complex(complex))
30
- end
31
-
32
- sig { params(data: Object, type: Object).returns(Object) }
33
- def self.unmarshal_complex(data, type)
34
- unmarshal_json(data, type)
28
+ def self.to_json(complex)
29
+ JSON.dump(to_dict(complex))
35
30
  end
36
31
 
37
32
  sig { params(data: Object, type: Object).returns(Object) }
@@ -42,9 +37,9 @@ module Crystalline
42
37
  if type.instance_of?(Class) && type < ::Crystalline::FieldAugmented
43
38
  type.from_dict(data)
44
39
  elsif T.arr? type
45
- data.map { |v| Crystalline.unmarshal_complex(v, T.arr_of(type)) }
40
+ data.map { |v| Crystalline.unmarshal_json(v, T.arr_of(type)) }
46
41
  elsif T.hash? type
47
- data.transform_values { |v| Crystalline.unmarshal_complex(v, T.hash_of(type)) }
42
+ data.transform_values { |v| Crystalline.unmarshal_json(v, T.hash_of(type)) }
48
43
  else
49
44
  data
50
45
  end
@@ -62,4 +57,25 @@ module Crystalline
62
57
  val
63
58
  end
64
59
  end
60
+
61
+ sig { params(klass: T.any(Class, T::Types::TypedArray, T::Types::TypedHash)).returns(Integer) }
62
+ def self.non_nilable_attr_count(klass)
63
+ # somewhat sane sort ordering for Union deserialization.
64
+ # All Crystalline objects return the number of non-nilable fields
65
+ # All non-string primitives return 2
66
+ # All arrays and hashes return 1
67
+ # Strings return 0 (since any data can deserialize to a string, it should be our last attempt)
68
+ if klass.respond_to? :fields
69
+ return -1 * klass.fields.count do |field|
70
+ !T.nilable? field.type
71
+ end
72
+ else
73
+ if klass == String
74
+ return 0
75
+ elsif klass.is_a?(T::Types::TypedArray) || klass.is_a?(T::Types::TypedHash)
76
+ return 1
77
+ end
78
+ return 2
79
+ end
80
+ end
65
81
  end
@@ -49,7 +49,7 @@ module PlexRubySDK
49
49
 
50
50
  hook_ctx = SDKHooks::HookContext.new(
51
51
  base_url: base_url,
52
- oauth2_scopes: nil,
52
+ oauth2_scopes: [],
53
53
  operation_id: 'getServerActivities',
54
54
  security_source: @sdk_configuration.security_source
55
55
  )
@@ -151,7 +151,7 @@ module PlexRubySDK
151
151
 
152
152
  hook_ctx = SDKHooks::HookContext.new(
153
153
  base_url: base_url,
154
- oauth2_scopes: nil,
154
+ oauth2_scopes: [],
155
155
  operation_id: 'cancelServerActivities',
156
156
  security_source: @sdk_configuration.security_source
157
157
  )
@@ -60,7 +60,7 @@ module PlexRubySDK
60
60
 
61
61
  hook_ctx = SDKHooks::HookContext.new(
62
62
  base_url: base_url,
63
- oauth2_scopes: nil,
63
+ oauth2_scopes: [],
64
64
  operation_id: 'getTransientToken',
65
65
  security_source: @sdk_configuration.security_source
66
66
  )
@@ -157,7 +157,7 @@ module PlexRubySDK
157
157
 
158
158
  hook_ctx = SDKHooks::HookContext.new(
159
159
  base_url: base_url,
160
- oauth2_scopes: nil,
160
+ oauth2_scopes: [],
161
161
  operation_id: 'getSourceConnectionInformation',
162
162
  security_source: @sdk_configuration.security_source
163
163
  )
@@ -248,7 +248,7 @@ module PlexRubySDK
248
248
 
249
249
  hook_ctx = SDKHooks::HookContext.new(
250
250
  base_url: base_url,
251
- oauth2_scopes: nil,
251
+ oauth2_scopes: [],
252
252
  operation_id: 'getTokenDetails',
253
253
  security_source: @sdk_configuration.security_source
254
254
  )
@@ -350,7 +350,7 @@ module PlexRubySDK
350
350
 
351
351
  hook_ctx = SDKHooks::HookContext.new(
352
352
  base_url: base_url,
353
- oauth2_scopes: nil,
353
+ oauth2_scopes: [],
354
354
  operation_id: 'post-users-sign-in-data',
355
355
  security_source: nil
356
356
  )
@@ -43,7 +43,7 @@ module PlexRubySDK
43
43
 
44
44
  hook_ctx = SDKHooks::HookContext.new(
45
45
  base_url: base_url,
46
- oauth2_scopes: nil,
46
+ oauth2_scopes: [],
47
47
  operation_id: 'getButlerTasks',
48
48
  security_source: @sdk_configuration.security_source
49
49
  )
@@ -141,7 +141,7 @@ module PlexRubySDK
141
141
 
142
142
  hook_ctx = SDKHooks::HookContext.new(
143
143
  base_url: base_url,
144
- oauth2_scopes: nil,
144
+ oauth2_scopes: [],
145
145
  operation_id: 'startAllTasks',
146
146
  security_source: @sdk_configuration.security_source
147
147
  )
@@ -231,7 +231,7 @@ module PlexRubySDK
231
231
 
232
232
  hook_ctx = SDKHooks::HookContext.new(
233
233
  base_url: base_url,
234
- oauth2_scopes: nil,
234
+ oauth2_scopes: [],
235
235
  operation_id: 'stopAllTasks',
236
236
  security_source: @sdk_configuration.security_source
237
237
  )
@@ -334,7 +334,7 @@ module PlexRubySDK
334
334
 
335
335
  hook_ctx = SDKHooks::HookContext.new(
336
336
  base_url: base_url,
337
- oauth2_scopes: nil,
337
+ oauth2_scopes: [],
338
338
  operation_id: 'startTask',
339
339
  security_source: @sdk_configuration.security_source
340
340
  )
@@ -433,7 +433,7 @@ module PlexRubySDK
433
433
 
434
434
  hook_ctx = SDKHooks::HookContext.new(
435
435
  base_url: base_url,
436
- oauth2_scopes: nil,
436
+ oauth2_scopes: [],
437
437
  operation_id: 'stopTask',
438
438
  security_source: @sdk_configuration.security_source
439
439
  )
@@ -49,7 +49,7 @@ module PlexRubySDK
49
49
 
50
50
  hook_ctx = SDKHooks::HookContext.new(
51
51
  base_url: base_url,
52
- oauth2_scopes: nil,
52
+ oauth2_scopes: [],
53
53
  operation_id: 'getGlobalHubs',
54
54
  security_source: @sdk_configuration.security_source
55
55
  )
@@ -145,7 +145,7 @@ module PlexRubySDK
145
145
 
146
146
  hook_ctx = SDKHooks::HookContext.new(
147
147
  base_url: base_url,
148
- oauth2_scopes: nil,
148
+ oauth2_scopes: [],
149
149
  operation_id: 'get-recently-added',
150
150
  security_source: @sdk_configuration.security_source
151
151
  )
@@ -243,7 +243,7 @@ module PlexRubySDK
243
243
 
244
244
  hook_ctx = SDKHooks::HookContext.new(
245
245
  base_url: base_url,
246
- oauth2_scopes: nil,
246
+ oauth2_scopes: [],
247
247
  operation_id: 'getLibraryHubs',
248
248
  security_source: @sdk_configuration.security_source
249
249
  )
@@ -49,7 +49,7 @@ module PlexRubySDK
49
49
 
50
50
  hook_ctx = SDKHooks::HookContext.new(
51
51
  base_url: base_url,
52
- oauth2_scopes: nil,
52
+ oauth2_scopes: [],
53
53
  operation_id: 'getFileHash',
54
54
  security_source: @sdk_configuration.security_source
55
55
  )
@@ -141,7 +141,7 @@ module PlexRubySDK
141
141
 
142
142
  hook_ctx = SDKHooks::HookContext.new(
143
143
  base_url: base_url,
144
- oauth2_scopes: nil,
144
+ oauth2_scopes: [],
145
145
  operation_id: 'get-recently-added-library',
146
146
  security_source: @sdk_configuration.security_source
147
147
  )
@@ -241,7 +241,7 @@ module PlexRubySDK
241
241
 
242
242
  hook_ctx = SDKHooks::HookContext.new(
243
243
  base_url: base_url,
244
- oauth2_scopes: nil,
244
+ oauth2_scopes: [],
245
245
  operation_id: 'get-all-libraries',
246
246
  security_source: @sdk_configuration.security_source
247
247
  )
@@ -384,7 +384,7 @@ module PlexRubySDK
384
384
 
385
385
  hook_ctx = SDKHooks::HookContext.new(
386
386
  base_url: base_url,
387
- oauth2_scopes: nil,
387
+ oauth2_scopes: [],
388
388
  operation_id: 'get-library-details',
389
389
  security_source: @sdk_configuration.security_source
390
390
  )
@@ -487,7 +487,7 @@ module PlexRubySDK
487
487
 
488
488
  hook_ctx = SDKHooks::HookContext.new(
489
489
  base_url: base_url,
490
- oauth2_scopes: nil,
490
+ oauth2_scopes: [],
491
491
  operation_id: 'deleteLibrary',
492
492
  security_source: @sdk_configuration.security_source
493
493
  )
@@ -603,7 +603,7 @@ module PlexRubySDK
603
603
 
604
604
  hook_ctx = SDKHooks::HookContext.new(
605
605
  base_url: base_url,
606
- oauth2_scopes: nil,
606
+ oauth2_scopes: [],
607
607
  operation_id: 'get-library-items',
608
608
  security_source: @sdk_configuration.security_source
609
609
  )
@@ -704,7 +704,7 @@ module PlexRubySDK
704
704
 
705
705
  hook_ctx = SDKHooks::HookContext.new(
706
706
  base_url: base_url,
707
- oauth2_scopes: nil,
707
+ oauth2_scopes: [],
708
708
  operation_id: 'get-all-media-library',
709
709
  security_source: @sdk_configuration.security_source
710
710
  )
@@ -811,7 +811,7 @@ module PlexRubySDK
811
811
 
812
812
  hook_ctx = SDKHooks::HookContext.new(
813
813
  base_url: base_url,
814
- oauth2_scopes: nil,
814
+ oauth2_scopes: [],
815
815
  operation_id: 'get-refresh-library-metadata',
816
816
  security_source: @sdk_configuration.security_source
817
817
  )
@@ -930,7 +930,7 @@ module PlexRubySDK
930
930
 
931
931
  hook_ctx = SDKHooks::HookContext.new(
932
932
  base_url: base_url,
933
- oauth2_scopes: nil,
933
+ oauth2_scopes: [],
934
934
  operation_id: 'get-search-library',
935
935
  security_source: @sdk_configuration.security_source
936
936
  )
@@ -1036,7 +1036,7 @@ module PlexRubySDK
1036
1036
 
1037
1037
  hook_ctx = SDKHooks::HookContext.new(
1038
1038
  base_url: base_url,
1039
- oauth2_scopes: nil,
1039
+ oauth2_scopes: [],
1040
1040
  operation_id: 'get-genres-library',
1041
1041
  security_source: @sdk_configuration.security_source
1042
1042
  )
@@ -1143,7 +1143,7 @@ module PlexRubySDK
1143
1143
 
1144
1144
  hook_ctx = SDKHooks::HookContext.new(
1145
1145
  base_url: base_url,
1146
- oauth2_scopes: nil,
1146
+ oauth2_scopes: [],
1147
1147
  operation_id: 'get-countries-library',
1148
1148
  security_source: @sdk_configuration.security_source
1149
1149
  )
@@ -1250,7 +1250,7 @@ module PlexRubySDK
1250
1250
 
1251
1251
  hook_ctx = SDKHooks::HookContext.new(
1252
1252
  base_url: base_url,
1253
- oauth2_scopes: nil,
1253
+ oauth2_scopes: [],
1254
1254
  operation_id: 'get-actors-library',
1255
1255
  security_source: @sdk_configuration.security_source
1256
1256
  )
@@ -1347,7 +1347,7 @@ module PlexRubySDK
1347
1347
 
1348
1348
  hook_ctx = SDKHooks::HookContext.new(
1349
1349
  base_url: base_url,
1350
- oauth2_scopes: nil,
1350
+ oauth2_scopes: [],
1351
1351
  operation_id: 'get-search-all-libraries',
1352
1352
  security_source: @sdk_configuration.security_source
1353
1353
  )
@@ -1448,7 +1448,7 @@ module PlexRubySDK
1448
1448
 
1449
1449
  hook_ctx = SDKHooks::HookContext.new(
1450
1450
  base_url: base_url,
1451
- oauth2_scopes: nil,
1451
+ oauth2_scopes: [],
1452
1452
  operation_id: 'get-media-meta-data',
1453
1453
  security_source: @sdk_configuration.security_source
1454
1454
  )
@@ -1552,7 +1552,7 @@ module PlexRubySDK
1552
1552
 
1553
1553
  hook_ctx = SDKHooks::HookContext.new(
1554
1554
  base_url: base_url,
1555
- oauth2_scopes: nil,
1555
+ oauth2_scopes: [],
1556
1556
  operation_id: 'get-media-arts',
1557
1557
  security_source: @sdk_configuration.security_source
1558
1558
  )
@@ -1658,7 +1658,7 @@ module PlexRubySDK
1658
1658
 
1659
1659
  hook_ctx = SDKHooks::HookContext.new(
1660
1660
  base_url: base_url,
1661
- oauth2_scopes: nil,
1661
+ oauth2_scopes: [],
1662
1662
  operation_id: 'post-media-arts',
1663
1663
  security_source: @sdk_configuration.security_source
1664
1664
  )
@@ -1749,7 +1749,7 @@ module PlexRubySDK
1749
1749
 
1750
1750
  hook_ctx = SDKHooks::HookContext.new(
1751
1751
  base_url: base_url,
1752
- oauth2_scopes: nil,
1752
+ oauth2_scopes: [],
1753
1753
  operation_id: 'get-media-posters',
1754
1754
  security_source: @sdk_configuration.security_source
1755
1755
  )
@@ -1855,7 +1855,7 @@ module PlexRubySDK
1855
1855
 
1856
1856
  hook_ctx = SDKHooks::HookContext.new(
1857
1857
  base_url: base_url,
1858
- oauth2_scopes: nil,
1858
+ oauth2_scopes: [],
1859
1859
  operation_id: 'post-media-poster',
1860
1860
  security_source: @sdk_configuration.security_source
1861
1861
  )
@@ -1949,7 +1949,7 @@ module PlexRubySDK
1949
1949
 
1950
1950
  hook_ctx = SDKHooks::HookContext.new(
1951
1951
  base_url: base_url,
1952
- oauth2_scopes: nil,
1952
+ oauth2_scopes: [],
1953
1953
  operation_id: 'getMetadataChildren',
1954
1954
  security_source: @sdk_configuration.security_source
1955
1955
  )
@@ -2050,7 +2050,7 @@ module PlexRubySDK
2050
2050
 
2051
2051
  hook_ctx = SDKHooks::HookContext.new(
2052
2052
  base_url: base_url,
2053
- oauth2_scopes: nil,
2053
+ oauth2_scopes: [],
2054
2054
  operation_id: 'getTopWatchedContent',
2055
2055
  security_source: @sdk_configuration.security_source
2056
2056
  )
@@ -51,7 +51,7 @@ module PlexRubySDK
51
51
 
52
52
  hook_ctx = SDKHooks::HookContext.new(
53
53
  base_url: base_url,
54
- oauth2_scopes: nil,
54
+ oauth2_scopes: [],
55
55
  operation_id: 'logLine',
56
56
  security_source: @sdk_configuration.security_source
57
57
  )
@@ -173,7 +173,7 @@ module PlexRubySDK
173
173
 
174
174
  hook_ctx = SDKHooks::HookContext.new(
175
175
  base_url: base_url,
176
- oauth2_scopes: nil,
176
+ oauth2_scopes: [],
177
177
  operation_id: 'logMultiLine',
178
178
  security_source: @sdk_configuration.security_source
179
179
  )
@@ -264,7 +264,7 @@ module PlexRubySDK
264
264
 
265
265
  hook_ctx = SDKHooks::HookContext.new(
266
266
  base_url: base_url,
267
- oauth2_scopes: nil,
267
+ oauth2_scopes: [],
268
268
  operation_id: 'enablePaperTrail',
269
269
  security_source: @sdk_configuration.security_source
270
270
  )
@@ -48,7 +48,7 @@ module PlexRubySDK
48
48
 
49
49
  hook_ctx = SDKHooks::HookContext.new(
50
50
  base_url: base_url,
51
- oauth2_scopes: nil,
51
+ oauth2_scopes: [],
52
52
  operation_id: 'markPlayed',
53
53
  security_source: @sdk_configuration.security_source
54
54
  )
@@ -143,7 +143,7 @@ module PlexRubySDK
143
143
 
144
144
  hook_ctx = SDKHooks::HookContext.new(
145
145
  base_url: base_url,
146
- oauth2_scopes: nil,
146
+ oauth2_scopes: [],
147
147
  operation_id: 'markUnplayed',
148
148
  security_source: @sdk_configuration.security_source
149
149
  )
@@ -241,7 +241,7 @@ module PlexRubySDK
241
241
 
242
242
  hook_ctx = SDKHooks::HookContext.new(
243
243
  base_url: base_url,
244
- oauth2_scopes: nil,
244
+ oauth2_scopes: [],
245
245
  operation_id: 'updatePlayProgress',
246
246
  security_source: @sdk_configuration.security_source
247
247
  )
@@ -337,7 +337,7 @@ module PlexRubySDK
337
337
 
338
338
  hook_ctx = SDKHooks::HookContext.new(
339
339
  base_url: base_url,
340
- oauth2_scopes: nil,
340
+ oauth2_scopes: [],
341
341
  operation_id: 'get-banner-image',
342
342
  security_source: @sdk_configuration.security_source
343
343
  )
@@ -435,7 +435,7 @@ module PlexRubySDK
435
435
 
436
436
  hook_ctx = SDKHooks::HookContext.new(
437
437
  base_url: base_url,
438
- oauth2_scopes: nil,
438
+ oauth2_scopes: [],
439
439
  operation_id: 'get-thumb-image',
440
440
  security_source: @sdk_configuration.security_source
441
441
  )
@@ -40,6 +40,19 @@ module PlexRubySDK
40
40
  @subtitle_mode = subtitle_mode
41
41
  @thumb = thumb
42
42
  end
43
+
44
+ def ==(other)
45
+ return false unless other.is_a? self.class
46
+ return false unless @auto_select_audio == other.auto_select_audio
47
+ return false unless @default_audio_language == other.default_audio_language
48
+ return false unless @default_subtitle_language == other.default_subtitle_language
49
+ return false unless @id == other.id
50
+ return false unless @key == other.key
51
+ return false unless @name == other.name
52
+ return false unless @subtitle_mode == other.subtitle_mode
53
+ return false unless @thumb == other.thumb
54
+ true
55
+ end
43
56
  end
44
57
  end
45
58
  end
@@ -22,6 +22,13 @@ module PlexRubySDK
22
22
  @id = id
23
23
  @key = key
24
24
  end
25
+
26
+ def ==(other)
27
+ return false unless other.is_a? self.class
28
+ return false unless @id == other.id
29
+ return false unless @key == other.key
30
+ true
31
+ end
25
32
  end
26
33
  end
27
34
  end
@@ -40,6 +40,19 @@ module PlexRubySDK
40
40
  @user_id = user_id
41
41
  @uuid = uuid
42
42
  end
43
+
44
+ def ==(other)
45
+ return false unless other.is_a? self.class
46
+ return false unless @cancellable == other.cancellable
47
+ return false unless @context == other.context
48
+ return false unless @progress == other.progress
49
+ return false unless @subtitle == other.subtitle
50
+ return false unless @title == other.title
51
+ return false unless @type == other.type
52
+ return false unless @user_id == other.user_id
53
+ return false unless @uuid == other.uuid
54
+ true
55
+ end
43
56
  end
44
57
  end
45
58
  end
@@ -19,6 +19,12 @@ module PlexRubySDK
19
19
  def initialize(errors: nil)
20
20
  @errors = errors
21
21
  end
22
+
23
+ def ==(other)
24
+ return false unless other.is_a? self.class
25
+ return false unless @errors == other.errors
26
+ true
27
+ end
22
28
  end
23
29
  end
24
30
  end
@@ -25,6 +25,14 @@ module PlexRubySDK
25
25
  @message = message
26
26
  @status = status
27
27
  end
28
+
29
+ def ==(other)
30
+ return false unless other.is_a? self.class
31
+ return false unless @code == other.code
32
+ return false unless @message == other.message
33
+ return false unless @status == other.status
34
+ true
35
+ end
28
36
  end
29
37
  end
30
38
  end
@@ -28,6 +28,15 @@ module PlexRubySDK
28
28
  @metadata = metadata
29
29
  @size = size
30
30
  end
31
+
32
+ def ==(other)
33
+ return false unless other.is_a? self.class
34
+ return false unless @leaf_count_added == other.leaf_count_added
35
+ return false unless @leaf_count_requested == other.leaf_count_requested
36
+ return false unless @metadata == other.metadata
37
+ return false unless @size == other.size
38
+ true
39
+ end
31
40
  end
32
41
  end
33
42
  end
@@ -55,6 +55,24 @@ module PlexRubySDK
55
55
  @type = type
56
56
  @updated_at = updated_at
57
57
  end
58
+
59
+ def ==(other)
60
+ return false unless other.is_a? self.class
61
+ return false unless @added_at == other.added_at
62
+ return false unless @composite == other.composite
63
+ return false unless @duration == other.duration
64
+ return false unless @guid == other.guid
65
+ return false unless @key == other.key
66
+ return false unless @leaf_count == other.leaf_count
67
+ return false unless @playlist_type == other.playlist_type
68
+ return false unless @rating_key == other.rating_key
69
+ return false unless @smart == other.smart
70
+ return false unless @summary == other.summary
71
+ return false unless @title == other.title
72
+ return false unless @type == other.type
73
+ return false unless @updated_at == other.updated_at
74
+ true
75
+ end
58
76
  end
59
77
  end
60
78
  end