plex_ruby_sdk 0.8.1 → 0.10.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.
- checksums.yaml +4 -4
- data/lib/crystalline/metadata_fields.rb +37 -4
- data/lib/crystalline/t.rb +21 -2
- data/lib/crystalline/utils.rb +31 -19
- data/lib/plex_ruby_sdk/activities.rb +120 -54
- data/lib/plex_ruby_sdk/authentication.rb +240 -108
- data/lib/plex_ruby_sdk/butler.rb +290 -132
- data/lib/plex_ruby_sdk/hubs.rb +168 -82
- data/lib/plex_ruby_sdk/library.rb +1157 -558
- data/lib/plex_ruby_sdk/log.rb +170 -78
- data/lib/plex_ruby_sdk/media.rb +308 -141
- data/lib/plex_ruby_sdk/models/errors/addplaylistcontents_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/addplaylistcontents_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/addplaylistcontents_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/addplaylistcontents_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/apierror.rb +38 -0
- data/lib/plex_ruby_sdk/models/errors/applyupdates_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/applyupdates_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/applyupdates_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/applyupdates_updater_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/cancelserveractivities_activities_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/cancelserveractivities_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/cancelserveractivities_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/cancelserveractivities_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/checkforupdates_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/checkforupdates_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/checkforupdates_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/checkforupdates_updater_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/clearplaylistcontents_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/clearplaylistcontents_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/clearplaylistcontents_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/clearplaylistcontents_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/createplaylist_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/createplaylist_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/createplaylist_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/createplaylist_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/deletelibrary_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/deletelibrary_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/deletelibrary_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/deletelibrary_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/deleteplaylist_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/deleteplaylist_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/deleteplaylist_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/deleteplaylist_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/enablepapertrail_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/enablepapertrail_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/enablepapertrail_log_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/enablepapertrail_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_actors_library_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_actors_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_actors_library_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_actors_library_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_libraries_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_libraries_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_libraries_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_libraries_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_media_library_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_media_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_media_library_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_all_media_library_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_banner_image_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_banner_image_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_banner_image_media_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_banner_image_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_countries_library_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_countries_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_countries_library_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_countries_library_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_genres_library_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_genres_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_genres_library_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_genres_library_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_details_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_details_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_details_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_details_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_items_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_items_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_items_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_library_items_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_meta_data_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_meta_data_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_meta_data_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_meta_data_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_providers_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_providers_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_providers_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_media_providers_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_recently_added_library_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_recently_added_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_recently_added_library_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_recently_added_library_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_refresh_library_metadata_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_refresh_library_metadata_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_refresh_library_metadata_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_refresh_library_metadata_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_all_libraries_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_all_libraries_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_all_libraries_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_all_libraries_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_library_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_library_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_search_library_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_server_identity_requesttimeout.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_server_resources_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/get_server_resources_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/get_server_resources_plex_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/get_server_resources_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/get_thumb_image_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_thumb_image_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_thumb_image_media_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/get_thumb_image_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/get_users_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/get_users_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/get_users_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/get_users_users_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/get_watch_list_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/get_watch_list_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/get_watch_list_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/get_watch_list_watchlist_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getavailableclients_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getavailableclients_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getavailableclients_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getavailableclients_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getbandwidthstatistics_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getbandwidthstatistics_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getbandwidthstatistics_statistics_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getbandwidthstatistics_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getbutlertasks_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getbutlertasks_butler_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getbutlertasks_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getbutlertasks_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getcompanionsdata_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/getcompanionsdata_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getcompanionsdata_plex_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getcompanionsdata_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/getdevices_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getdevices_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getdevices_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getdevices_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getfilehash_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getfilehash_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getfilehash_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getfilehash_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getgeodata_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/getgeodata_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getgeodata_plex_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getgeodata_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/getglobalhubs_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getglobalhubs_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getglobalhubs_hubs_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getglobalhubs_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gethomedata_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gethomedata_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gethomedata_plex_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gethomedata_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getlibraryhubs_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getlibraryhubs_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getlibraryhubs_hubs_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getlibraryhubs_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getmetadatachildren_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getmetadatachildren_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getmetadatachildren_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getmetadatachildren_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getmyplexaccount_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getmyplexaccount_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getmyplexaccount_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getmyplexaccount_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getpin_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/getpin_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylist_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylist_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylist_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylist_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylistcontents_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylistcontents_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylistcontents_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylistcontents_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylists_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylists_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getplaylists_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getresizedphoto_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getresizedphoto_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getresizedphoto_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getresizedphoto_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getresourcesstatistics_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getresourcesstatistics_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getresourcesstatistics_statistics_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getresourcesstatistics_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsearchresults_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsearchresults_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsearchresults_search_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsearchresults_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getserveractivities_activities_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getserveractivities_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getserveractivities_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getserveractivities_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getservercapabilities_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getservercapabilities_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getservercapabilities_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getserverlist_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getserverlist_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getserverlist_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getserverlist_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getserverpreferences_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getserverpreferences_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getserverpreferences_server_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getserverpreferences_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsessionhistory_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsessionhistory_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsessionhistory_sessions_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsessionhistory_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsessions_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsessions_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsessions_sessions_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsessions_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsourceconnectioninformation_authentication_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsourceconnectioninformation_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getsourceconnectioninformation_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getsourceconnectioninformation_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getstatistics_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getstatistics_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getstatistics_statistics_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getstatistics_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettimeline_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettimeline_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettimeline_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettimeline_video_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettokenbypinid_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/gettokenbypinid_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/gettokenbypinid_plex_errors.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/gettokenbypinid_responsebody.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/gettokendetails_authentication_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/gettokendetails_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/gettokendetails_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/gettokendetails_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/gettopwatchedcontent_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettopwatchedcontent_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettopwatchedcontent_library_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettopwatchedcontent_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettranscodesessions_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettranscodesessions_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettranscodesessions_sessions_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettranscodesessions_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettransienttoken_authentication_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettransienttoken_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/gettransienttoken_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/gettransienttoken_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getupdatestatus_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getupdatestatus_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getupdatestatus_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/getupdatestatus_updater_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/getuserfriends_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/getuserfriends_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getuserfriends_plex_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/getuserfriends_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/logline_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/logline_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/logline_log_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/logline_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/logmultiline_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/logmultiline_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/logmultiline_log_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/logmultiline_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/markplayed_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/markplayed_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/markplayed_media_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/markplayed_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/markunplayed_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/markunplayed_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/markunplayed_media_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/markunplayed_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/performsearch_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/performsearch_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/performsearch_search_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/performsearch_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/performvoicesearch_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/performvoicesearch_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/performvoicesearch_search_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/performvoicesearch_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/post_users_sign_in_data_authentication_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/post_users_sign_in_data_badrequest.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/post_users_sign_in_data_errors.rb +44 -0
- data/lib/plex_ruby_sdk/models/errors/post_users_sign_in_data_unauthorized.rb +40 -0
- data/lib/plex_ruby_sdk/models/errors/startalltasks_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/startalltasks_butler_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/startalltasks_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/startalltasks_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/starttask_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/starttask_butler_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/starttask_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/starttask_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/startuniversaltranscode_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/startuniversaltranscode_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/startuniversaltranscode_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/startuniversaltranscode_video_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stopalltasks_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/stopalltasks_butler_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stopalltasks_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stopalltasks_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/stoptask_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/stoptask_butler_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stoptask_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stoptask_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/stoptranscodesession_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/stoptranscodesession_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stoptranscodesession_sessions_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/stoptranscodesession_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/updateplaylist_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/updateplaylist_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/updateplaylist_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/updateplaylist_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/updateplayprogress_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/updateplayprogress_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/updateplayprogress_media_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/updateplayprogress_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/uploadplaylist_badrequest.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors/uploadplaylist_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/uploadplaylist_playlists_errors.rb +41 -0
- data/lib/plex_ruby_sdk/models/errors/uploadplaylist_unauthorized.rb +37 -0
- data/lib/plex_ruby_sdk/models/errors.rb +323 -0
- data/lib/plex_ruby_sdk/models/operations/account.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/action.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/activedirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/activity.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_mediacontainer.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_metadata.rb +53 -32
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/alllibraries.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/allowcameraupload.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/allowchannels.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/allowsubtitleadmin.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/allowsync.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/allowtuners.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/applyupdates_request.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/applyupdates_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/autoselectsubtitle.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/billing.rb +23 -13
- data/lib/plex_ruby_sdk/models/operations/butlertask.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/butlertasks.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/collection.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/connections.rb +49 -34
- data/lib/plex_ruby_sdk/models/operations/context.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/country.rb +30 -19
- data/lib/plex_ruby_sdk/models/operations/createplaylist_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/createplaylist_metadata.rb +62 -38
- data/lib/plex_ruby_sdk/models/operations/createplaylist_queryparam_type.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/createplaylist_request.rb +38 -25
- data/lib/plex_ruby_sdk/models/operations/createplaylist_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/createplaylist_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/defaultdirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/defaultsubtitleaccessibility.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/defaultsubtitleforced.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_request.rb +20 -11
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/device.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/director.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/directory.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/download.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/enablecreditsmarkergeneration.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/episodesort.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/feature.rb +35 -20
- data/lib/plex_ruby_sdk/models/operations/field.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/fieldtype.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/filter.rb +13 -11
- data/lib/plex_ruby_sdk/models/operations/flattenseasons.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/force.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/friend.rb +69 -49
- data/lib/plex_ruby_sdk/models/operations/genre.rb +31 -20
- data/lib/plex_ruby_sdk/models/operations/geodata.rb +62 -43
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_directory.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_mediacontainer.rb +70 -49
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_request.rb +34 -24
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_directory.rb +104 -73
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_location.rb +26 -16
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_mediacontainer.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_type.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_activedirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_collection.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_country.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_defaultdirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_director.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_field.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_fieldtype.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_filter.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_genre.rb +19 -10
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_guids.rb +19 -10
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_hasthumbnail.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_image.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_optimizedforstreaming.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_response_type.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_type.rb +14 -12
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_media.rb +89 -62
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_mediacontainer.rb +91 -64
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_meta.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_metadata.rb +275 -203
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_operator.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_optimizedforstreaming.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_optimizedforstreaming_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_part.rb +74 -50
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_queryparam_includemeta.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_request.rb +63 -46
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_role.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_sort.rb +52 -36
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_stream.rb +205 -148
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_type.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_ultrablurcolors.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_writer.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_request.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_response.rb +38 -31
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_directory.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_mediacontainer.rb +70 -49
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_request.rb +34 -24
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_directory.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_mediacontainer.rb +70 -49
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_request.rb +34 -24
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_library_details_directory.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/get_library_details_field.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_library_details_fieldtype.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_details_filter.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/get_library_details_mediacontainer.rb +59 -36
- data/lib/plex_ruby_sdk/models/operations/get_library_details_operator.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_details_request.rb +30 -20
- data/lib/plex_ruby_sdk/models/operations/get_library_details_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_library_details_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_library_details_sort.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/get_library_details_type.rb +35 -20
- data/lib/plex_ruby_sdk/models/operations/get_library_items_activedirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_collection.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_country.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_defaultdirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_director.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_field.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/get_library_items_genre.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_hasthumbnail.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/get_library_items_image.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_activedirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_defaultdirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_field.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_fieldtype.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_filter.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_operator.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_200_type.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb +35 -20
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_sort.rb +52 -36
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb +14 -12
- data/lib/plex_ruby_sdk/models/operations/get_library_items_location.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_media.rb +68 -42
- data/lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb +94 -63
- data/lib/plex_ruby_sdk/models/operations/get_library_items_meta.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +272 -188
- data/lib/plex_ruby_sdk/models/operations/get_library_items_operator.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_items_optimizedforstreaming.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_part.rb +55 -34
- data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_includemeta.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/get_library_items_request.rb +62 -47
- data/lib/plex_ruby_sdk/models/operations/get_library_items_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_library_items_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_library_items_role.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb +52 -36
- data/lib/plex_ruby_sdk/models/operations/get_library_items_stream.rb +162 -116
- data/lib/plex_ruby_sdk/models/operations/get_library_items_type.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/get_library_items_ultrablurcolors.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_library_items_writer.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_media_arts_mediacontainer.rb +38 -25
- data/lib/plex_ruby_sdk/models/operations/get_media_arts_metadata.rb +38 -25
- data/lib/plex_ruby_sdk/models/operations/get_media_arts_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_arts_response.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations/get_media_arts_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_country.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_director.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_guids.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_hasthumbnail.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_image.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_library_optimizedforstreaming.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_location.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_media.rb +89 -62
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_mediacontainer.rb +54 -37
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_metadata.rb +252 -183
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_optimizedforstreaming_library_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_part.rb +74 -50
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_producer.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_request.rb +74 -52
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_role.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_similar.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb +205 -148
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_ultrablurcolors.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_writer.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_media_posters_mediacontainer.rb +38 -25
- data/lib/plex_ruby_sdk/models/operations/get_media_posters_metadata.rb +38 -25
- data/lib/plex_ruby_sdk/models/operations/get_media_posters_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_posters_response.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations/get_media_posters_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_directory.rb +56 -34
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_mediacontainer.rb +146 -94
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_activedirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_defaultdirection.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_field.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_fieldtype.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_filter.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_response_type.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_type.rb +14 -12
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_image.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_country.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_director.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_filter.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_genre.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_media.rb +62 -38
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_mediacontainer.rb +43 -26
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_metadata.rb +110 -70
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_part.rb +44 -26
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_request.rb +59 -44
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_role.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_type.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_writer.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_mediacontainer.rb +47 -32
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_metadata.rb +319 -236
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_operator.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_optimizedforstreaming.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_optimizedforstreaming_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_request.rb +59 -44
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_response.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_sort.rb +52 -36
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_type.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_request.rb +24 -14
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_collection.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_country.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_director.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_enablecreditsmarkergeneration.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_episodesort.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_flattenseasons.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_genre.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_hasthumbnail.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_image.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_library_type.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_location.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_media.rb +68 -42
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_mediaguid.rb +20 -11
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadata.rb +272 -188
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_metadatarating.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_part.rb +55 -34
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_queryparam_includecollections.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_queryparam_includeexternalmedia.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_request.rb +43 -29
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_role.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_showordering.rb +18 -16
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_stream.rb +162 -116
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_type.rb +14 -12
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_ultrablurcolors.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_writer.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/get_search_library_mediacontainer.rb +53 -32
- data/lib/plex_ruby_sdk/models/operations/get_search_library_metadata.rb +74 -46
- data/lib/plex_ruby_sdk/models/operations/get_search_library_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/get_search_library_request.rb +34 -24
- data/lib/plex_ruby_sdk/models/operations/get_search_library_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/get_search_library_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_mediacontainer.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_response.rb +34 -25
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb +39 -27
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_request.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_response.rb +38 -31
- data/lib/plex_ruby_sdk/models/operations/get_users_mediacontainer.rb +45 -31
- data/lib/plex_ruby_sdk/models/operations/get_users_request.rb +73 -52
- data/lib/plex_ruby_sdk/models/operations/get_users_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/get_users_responsebody.rb +22 -13
- data/lib/plex_ruby_sdk/models/operations/get_users_server.rb +57 -40
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_request.rb +67 -50
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_responsebody.rb +49 -34
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_account.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_device.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_mediacontainer.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_request.rb +20 -11
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/getdevices_mediacontainer.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/getdevices_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getdevices_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getfilehash_request.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/getfilehash_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/getgeodata_geodata.rb +62 -43
- data/lib/plex_ruby_sdk/models/operations/getgeodata_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_mediacontainer.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_metadata.rb +65 -40
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_request.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/gethomedata_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/gethomedata_responsebody.rb +33 -19
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_country.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_director.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_genre.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_hub.rb +50 -30
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_media.rb +65 -40
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_mediacontainer.rb +35 -20
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_metadata.rb +116 -74
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_part.rb +44 -26
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_role.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_writer.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_directory.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_mediacontainer.rb +83 -52
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_metadata.rb +95 -60
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_request.rb +23 -13
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getpin_authpincontainer.rb +57 -37
- data/lib/plex_ruby_sdk/models/operations/getpin_request.rb +48 -34
- data/lib/plex_ruby_sdk/models/operations/getpin_response.rb +37 -28
- data/lib/plex_ruby_sdk/models/operations/getplaylist_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getplaylist_metadata.rb +59 -36
- data/lib/plex_ruby_sdk/models/operations/getplaylist_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getplaylist_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getplaylist_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_country.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_director.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_genre.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_media.rb +65 -40
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_mediacontainer.rb +41 -24
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_metadata.rb +110 -70
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_part.rb +44 -26
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_request.rb +32 -22
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_role.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_writer.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getplaylists_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getplaylists_metadata.rb +62 -38
- data/lib/plex_ruby_sdk/models/operations/getplaylists_request.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/getplaylists_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getplaylists_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_request.rb +46 -31
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_request.rb +20 -11
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_country.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_director.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_genre.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_media.rb +59 -36
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_mediacontainer.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_metadata.rb +116 -74
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_part.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_role.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_writer.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getserverlist_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getserverlist_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getserverlist_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getserverlist_server.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_metadata.rb +71 -44
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_request.rb +39 -27
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsessions_media.rb +38 -22
- data/lib/plex_ruby_sdk/models/operations/getsessions_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/getsessions_metadata.rb +129 -83
- data/lib/plex_ruby_sdk/models/operations/getsessions_part.rb +44 -26
- data/lib/plex_ruby_sdk/models/operations/getsessions_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getsessions_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsessions_stream.rb +74 -46
- data/lib/plex_ruby_sdk/models/operations/getsessions_user.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/getstatistics_device.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/getstatistics_mediacontainer.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/getstatistics_request.rb +20 -11
- data/lib/plex_ruby_sdk/models/operations/getstatistics_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getstatistics_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/gettimeline_request.rb +58 -40
- data/lib/plex_ruby_sdk/models/operations/gettimeline_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_authpincontainer.rb +57 -37
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_geodata.rb +62 -43
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_request.rb +45 -31
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_response_status.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_status.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_status.rb +11 -9
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_subscription.rb +45 -31
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb +178 -129
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_country.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_genre.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_guids.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_mediacontainer.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_metadata.rb +110 -70
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb +33 -23
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_role.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_user.rb +17 -8
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_mediacontainer.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_queryparam_type.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_request.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_mediacontainer.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_response.rb +34 -28
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_responsebody.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/guids.rb +19 -10
- data/lib/plex_ruby_sdk/models/operations/hasthumbnail.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/hidden.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/home.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/hub.rb +47 -28
- data/lib/plex_ruby_sdk/models/operations/image.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/includeadvanced.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/includecollections.rb +13 -11
- data/lib/plex_ruby_sdk/models/operations/includedetails.rb +11 -9
- data/lib/plex_ruby_sdk/models/operations/includeexternalmedia.rb +13 -11
- data/lib/plex_ruby_sdk/models/operations/includeguids.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/includehttps.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/includeipv6.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/includemeta.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/includerelay.rb +14 -12
- data/lib/plex_ruby_sdk/models/operations/internalpaymentmethod.rb +17 -9
- data/lib/plex_ruby_sdk/models/operations/level.rb +18 -16
- data/lib/plex_ruby_sdk/models/operations/libtype.rb +13 -11
- data/lib/plex_ruby_sdk/models/operations/location.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/logline_request.rb +36 -25
- data/lib/plex_ruby_sdk/models/operations/logline_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/logmultiline_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/mailingliststatus.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/markplayed_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/markplayed_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/markunplayed_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/markunplayed_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/media.rb +89 -62
- data/lib/plex_ruby_sdk/models/operations/mediacontainer.rb +167 -108
- data/lib/plex_ruby_sdk/models/operations/mediaguid.rb +20 -11
- data/lib/plex_ruby_sdk/models/operations/mediaprovider.rb +29 -16
- data/lib/plex_ruby_sdk/models/operations/mediareviewsvisibility.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/meta.rb +22 -12
- data/lib/plex_ruby_sdk/models/operations/metadata.rb +122 -79
- data/lib/plex_ruby_sdk/models/operations/metadatarating.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/minsize.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/myplex.rb +50 -30
- data/lib/plex_ruby_sdk/models/operations/one.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/onlytransient.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/operator.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/optimizedforstreaming.rb +16 -6
- data/lib/plex_ruby_sdk/models/operations/optimizedforstreaming_1.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/owned.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/part.rb +74 -50
- data/lib/plex_ruby_sdk/models/operations/pastsubscription.rb +62 -39
- data/lib/plex_ruby_sdk/models/operations/pathparam_taskname.rb +21 -19
- data/lib/plex_ruby_sdk/models/operations/pending.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/performsearch_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/performsearch_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/pivot.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/player.rb +59 -36
- data/lib/plex_ruby_sdk/models/operations/playlisttype.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/plexdevice.rb +113 -81
- data/lib/plex_ruby_sdk/models/operations/post_media_arts_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/post_media_arts_response.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/post_media_poster_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/post_media_poster_response.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_response_status.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_status.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_subscription.rb +45 -31
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_autoselectsubtitle.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_defaultsubtitleaccessibility.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_defaultsubtitleforced.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mailingliststatus.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mediareviewsvisibility.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb +45 -31
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_requestbody.rb +37 -25
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_response.rb +37 -31
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_services.rb +32 -19
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_state.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_status.rb +11 -9
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_subscription.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userplexaccount.rb +184 -133
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userprofile.rb +44 -28
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_watchedindicator.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/producer.rb +38 -25
- data/lib/plex_ruby_sdk/models/operations/protected.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/protocol.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/provider.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/queryparam_filter.rb +17 -9
- data/lib/plex_ruby_sdk/models/operations/queryparam_force.rb +13 -11
- data/lib/plex_ruby_sdk/models/operations/queryparam_includecollections.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/queryparam_includeexternalmedia.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/queryparam_includeguids.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/queryparam_includemeta.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/queryparam_onlytransient.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/queryparam_smart.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/rating.rb +24 -13
- data/lib/plex_ruby_sdk/models/operations/ratings.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/release.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/responsebody.rb +45 -31
- data/lib/plex_ruby_sdk/models/operations/restricted.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/role.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/scope.rb +8 -6
- data/lib/plex_ruby_sdk/models/operations/searchresult.rb +20 -10
- data/lib/plex_ruby_sdk/models/operations/searchtypes.rb +11 -9
- data/lib/plex_ruby_sdk/models/operations/server.rb +47 -28
- data/lib/plex_ruby_sdk/models/operations/services.rb +32 -19
- data/lib/plex_ruby_sdk/models/operations/session.rb +23 -12
- data/lib/plex_ruby_sdk/models/operations/setting.rb +44 -26
- data/lib/plex_ruby_sdk/models/operations/sharedservers.rb +17 -9
- data/lib/plex_ruby_sdk/models/operations/sharedsources.rb +17 -9
- data/lib/plex_ruby_sdk/models/operations/showordering.rb +18 -16
- data/lib/plex_ruby_sdk/models/operations/similar.rb +24 -13
- data/lib/plex_ruby_sdk/models/operations/skip.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/smart.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/sort.rb +52 -36
- data/lib/plex_ruby_sdk/models/operations/startalltasks_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/starttask_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/starttask_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_request.rb +78 -54
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/state.rb +10 -8
- data/lib/plex_ruby_sdk/models/operations/statisticsbandwidth.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/statisticsmedia.rb +35 -20
- data/lib/plex_ruby_sdk/models/operations/statisticsresources.rb +32 -18
- data/lib/plex_ruby_sdk/models/operations/status.rb +11 -9
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/stoptask_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/stoptask_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_request.rb +18 -9
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/stream.rb +205 -148
- data/lib/plex_ruby_sdk/models/operations/subscription.rb +42 -28
- data/lib/plex_ruby_sdk/models/operations/tag.rb +23 -21
- data/lib/plex_ruby_sdk/models/operations/taskname.rb +21 -19
- data/lib/plex_ruby_sdk/models/operations/tonight.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/transcodesession.rb +86 -54
- data/lib/plex_ruby_sdk/models/operations/trials.rb +17 -9
- data/lib/plex_ruby_sdk/models/operations/type.rb +20 -18
- data/lib/plex_ruby_sdk/models/operations/ultrablurcolors.rb +26 -14
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_request.rb +26 -15
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_request.rb +40 -29
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_response.rb +30 -25
- data/lib/plex_ruby_sdk/models/operations/upscale.rb +9 -7
- data/lib/plex_ruby_sdk/models/operations/user.rb +101 -73
- data/lib/plex_ruby_sdk/models/operations/userprofile.rb +44 -28
- data/lib/plex_ruby_sdk/models/operations/watchedindicator.rb +12 -10
- data/lib/plex_ruby_sdk/models/operations/writer.rb +34 -22
- data/lib/plex_ruby_sdk/models/operations.rb +598 -893
- data/lib/plex_ruby_sdk/models/server_variables/server_protocol.rb +20 -0
- data/lib/plex_ruby_sdk/{server_variables.rb → models/server_variables.rb} +4 -2
- data/lib/plex_ruby_sdk/models/shared/security.rb +17 -8
- data/lib/plex_ruby_sdk/models/shared.rb +4 -2
- data/lib/plex_ruby_sdk/playlists.rb +554 -255
- data/lib/plex_ruby_sdk/plex.rb +426 -190
- data/lib/plex_ruby_sdk/plex_api.rb +6 -6
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +9 -7
- data/lib/plex_ruby_sdk/search.rb +180 -83
- data/lib/plex_ruby_sdk/server.rb +542 -240
- data/lib/plex_ruby_sdk/sessions.rb +246 -110
- data/lib/plex_ruby_sdk/statistics.rb +192 -87
- data/lib/plex_ruby_sdk/updater.rb +178 -82
- data/lib/plex_ruby_sdk/users.rb +63 -26
- data/lib/plex_ruby_sdk/utils/utils.rb +21 -10
- data/lib/plex_ruby_sdk/video.rb +114 -52
- data/lib/plex_ruby_sdk/watchlist.rb +64 -29
- data/lib/plex_ruby_sdk.rb +6 -3
- metadata +331 -315
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/applyupdates_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/applyupdates_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/applyupdates_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/applyupdates_updater_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_activities_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_updater_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/createplaylist_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/createplaylist_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/createplaylist_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/createplaylist_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_log_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_actors_library_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_all_media_library_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_media_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_countries_library_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_genres_library_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_library_details_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_library_details_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_library_details_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_library_details_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_library_items_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_library_items_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_library_items_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_media_meta_data_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_search_all_libraries_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_search_library_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_search_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_search_library_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_search_library_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_requesttimeout.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_plex_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_media_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/get_users_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_users_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/get_users_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_users_users_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_watchlist_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_statistics_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_butler_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_plex_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/getdevices_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getdevices_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getdevices_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getdevices_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getfilehash_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getfilehash_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getfilehash_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getfilehash_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getgeodata_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/getgeodata_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getgeodata_plex_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getgeodata_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_hubs_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gethomedata_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gethomedata_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gethomedata_plex_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gethomedata_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_hubs_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getpin_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/getpin_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getplaylist_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getplaylist_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getplaylist_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getplaylist_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getplaylists_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getplaylists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getplaylists_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getplaylists_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_statistics_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_search_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_activities_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getserverlist_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getserverlist_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getserverlist_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getserverlist_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_server_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_sessions_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsessions_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsessions_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsessions_sessions_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsessions_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_authentication_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getstatistics_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getstatistics_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getstatistics_statistics_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getstatistics_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettimeline_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettimeline_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettimeline_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettimeline_video_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_plex_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_responsebody.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_library_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_sessions_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_authentication_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_updater_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_plex_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/logline_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/logline_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/logline_log_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/logline_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/logmultiline_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/logmultiline_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/logmultiline_log_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/logmultiline_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/markplayed_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/markplayed_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/markplayed_media_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/markplayed_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/markunplayed_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/markunplayed_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/markunplayed_media_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/markunplayed_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/performsearch_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/performsearch_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/performsearch_search_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/performsearch_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_search_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_badrequest.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_errors.rb +0 -33
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_unauthorized.rb +0 -27
- data/lib/plex_ruby_sdk/models/operations/startalltasks_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/startalltasks_butler_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/startalltasks_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/startalltasks_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/starttask_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/starttask_butler_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/starttask_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/starttask_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_video_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_butler_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/stoptask_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/stoptask_butler_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stoptask_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stoptask_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_sessions_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_media_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_badrequest.rb +0 -24
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_playlists_errors.rb +0 -30
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_unauthorized.rb +0 -24
- data/lib/plex_ruby_sdk/server_variables/server_protocol.rb +0 -18
@@ -23,11 +23,11 @@ module PlexRubySDK
|
|
23
23
|
end
|
24
24
|
|
25
25
|
|
26
|
-
sig { params(url: ::String, type: T.nilable(::Float), timeout_ms: T.nilable(Integer)).returns(::
|
26
|
+
sig { params(url: ::String, type: T.nilable(::Float), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetFileHashResponse) }
|
27
27
|
def get_file_hash(url, type = nil, timeout_ms = nil)
|
28
28
|
# get_file_hash - Get Hash Value
|
29
29
|
# This resource returns hash values for local files
|
30
|
-
request = ::
|
30
|
+
request = Models::Operations::GetFileHashRequest.new(
|
31
31
|
|
32
32
|
url: url,
|
33
33
|
type: type
|
@@ -36,7 +36,7 @@ module PlexRubySDK
|
|
36
36
|
base_url = Utils.template_url(url, params)
|
37
37
|
url = "#{base_url}/library/hashes"
|
38
38
|
headers = {}
|
39
|
-
query_params = Utils.get_query_params(::
|
39
|
+
query_params = Utils.get_query_params(Models::Operations::GetFileHashRequest, request)
|
40
40
|
headers['Accept'] = 'application/json'
|
41
41
|
headers['user-agent'] = @sdk_configuration.user_agent
|
42
42
|
|
@@ -49,16 +49,17 @@ module PlexRubySDK
|
|
49
49
|
|
50
50
|
hook_ctx = SDKHooks::HookContext.new(
|
51
51
|
base_url: base_url,
|
52
|
-
oauth2_scopes:
|
52
|
+
oauth2_scopes: [],
|
53
53
|
operation_id: 'getFileHash',
|
54
54
|
security_source: @sdk_configuration.security_source
|
55
55
|
)
|
56
56
|
|
57
57
|
error = T.let(nil, T.nilable(StandardError))
|
58
|
-
|
58
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
59
|
+
|
59
60
|
|
60
61
|
begin
|
61
|
-
|
62
|
+
http_response = connection.get(url) do |req|
|
62
63
|
req.headers.merge!(headers)
|
63
64
|
req.options.timeout = timeout unless timeout.nil?
|
64
65
|
req.params = query_params
|
@@ -74,52 +75,82 @@ module PlexRubySDK
|
|
74
75
|
rescue StandardError => e
|
75
76
|
error = e
|
76
77
|
ensure
|
77
|
-
if
|
78
|
-
|
78
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
79
|
+
http_response = @sdk_configuration.hooks.after_error(
|
79
80
|
error: error,
|
80
81
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
81
82
|
hook_ctx: hook_ctx
|
82
83
|
),
|
83
|
-
response:
|
84
|
+
response: http_response
|
84
85
|
)
|
85
86
|
else
|
86
|
-
|
87
|
+
http_response = @sdk_configuration.hooks.after_success(
|
87
88
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
88
89
|
hook_ctx: hook_ctx
|
89
90
|
),
|
90
|
-
response:
|
91
|
+
response: http_response
|
91
92
|
)
|
92
93
|
end
|
93
94
|
|
94
|
-
if
|
95
|
+
if http_response.nil?
|
95
96
|
raise error if !error.nil?
|
96
97
|
raise 'no response'
|
97
98
|
end
|
98
99
|
end
|
99
|
-
|
100
|
-
content_type =
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
100
|
+
|
101
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
102
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
103
|
+
http_response = @sdk_configuration.hooks.after_success(
|
104
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
105
|
+
hook_ctx: hook_ctx
|
106
|
+
),
|
107
|
+
response: http_response
|
108
|
+
)
|
109
|
+
return Models::Operations::GetFileHashResponse.new(
|
110
|
+
status_code: http_response.status,
|
111
|
+
content_type: content_type,
|
112
|
+
raw_response: http_response
|
113
|
+
)
|
114
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
107
115
|
if Utils.match_content_type(content_type, 'application/json')
|
108
|
-
|
109
|
-
|
116
|
+
http_response = @sdk_configuration.hooks.after_success(
|
117
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
118
|
+
hook_ctx: hook_ctx
|
119
|
+
),
|
120
|
+
response: http_response
|
121
|
+
)
|
122
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetFileHashBadRequest)
|
123
|
+
obj.raw_response = http_response
|
124
|
+
throw obj
|
125
|
+
else
|
126
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
110
127
|
end
|
111
|
-
elsif
|
128
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
112
129
|
if Utils.match_content_type(content_type, 'application/json')
|
113
|
-
|
114
|
-
|
130
|
+
http_response = @sdk_configuration.hooks.after_success(
|
131
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
132
|
+
hook_ctx: hook_ctx
|
133
|
+
),
|
134
|
+
response: http_response
|
135
|
+
)
|
136
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetFileHashUnauthorized)
|
137
|
+
obj.raw_response = http_response
|
138
|
+
throw obj
|
139
|
+
else
|
140
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
115
141
|
end
|
116
|
-
|
142
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
143
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
144
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
145
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
146
|
+
else
|
147
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
117
148
|
|
118
|
-
|
149
|
+
end
|
119
150
|
end
|
120
151
|
|
121
152
|
|
122
|
-
sig { params(request: T.nilable(::
|
153
|
+
sig { params(request: T.nilable(Models::Operations::GetRecentlyAddedLibraryRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetRecentlyAddedLibraryResponse) }
|
123
154
|
def get_recently_added_library(request, timeout_ms = nil)
|
124
155
|
# get_recently_added_library - Get Recently Added
|
125
156
|
# This endpoint will return the recently added content.
|
@@ -128,7 +159,7 @@ module PlexRubySDK
|
|
128
159
|
base_url = Utils.template_url(url, params)
|
129
160
|
url = "#{base_url}/library/recentlyAdded"
|
130
161
|
headers = {}
|
131
|
-
query_params = Utils.get_query_params(::
|
162
|
+
query_params = Utils.get_query_params(Models::Operations::GetRecentlyAddedLibraryRequest, request)
|
132
163
|
headers['Accept'] = 'application/json'
|
133
164
|
headers['user-agent'] = @sdk_configuration.user_agent
|
134
165
|
|
@@ -141,16 +172,17 @@ module PlexRubySDK
|
|
141
172
|
|
142
173
|
hook_ctx = SDKHooks::HookContext.new(
|
143
174
|
base_url: base_url,
|
144
|
-
oauth2_scopes:
|
175
|
+
oauth2_scopes: [],
|
145
176
|
operation_id: 'get-recently-added-library',
|
146
177
|
security_source: @sdk_configuration.security_source
|
147
178
|
)
|
148
179
|
|
149
180
|
error = T.let(nil, T.nilable(StandardError))
|
150
|
-
|
181
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
182
|
+
|
151
183
|
|
152
184
|
begin
|
153
|
-
|
185
|
+
http_response = connection.get(url) do |req|
|
154
186
|
req.headers.merge!(headers)
|
155
187
|
req.options.timeout = timeout unless timeout.nil?
|
156
188
|
req.params = query_params
|
@@ -166,56 +198,90 @@ module PlexRubySDK
|
|
166
198
|
rescue StandardError => e
|
167
199
|
error = e
|
168
200
|
ensure
|
169
|
-
if
|
170
|
-
|
201
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
202
|
+
http_response = @sdk_configuration.hooks.after_error(
|
171
203
|
error: error,
|
172
204
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
173
205
|
hook_ctx: hook_ctx
|
174
206
|
),
|
175
|
-
response:
|
207
|
+
response: http_response
|
176
208
|
)
|
177
209
|
else
|
178
|
-
|
210
|
+
http_response = @sdk_configuration.hooks.after_success(
|
179
211
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
180
212
|
hook_ctx: hook_ctx
|
181
213
|
),
|
182
|
-
response:
|
214
|
+
response: http_response
|
183
215
|
)
|
184
216
|
end
|
185
217
|
|
186
|
-
if
|
218
|
+
if http_response.nil?
|
187
219
|
raise error if !error.nil?
|
188
220
|
raise 'no response'
|
189
221
|
end
|
190
222
|
end
|
191
|
-
|
192
|
-
content_type =
|
193
|
-
|
194
|
-
res = ::PlexRubySDK::Operations::GetRecentlyAddedLibraryResponse.new(
|
195
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
196
|
-
)
|
197
|
-
if r.status == 200
|
223
|
+
|
224
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
225
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
198
226
|
if Utils.match_content_type(content_type, 'application/json')
|
199
|
-
|
200
|
-
|
227
|
+
http_response = @sdk_configuration.hooks.after_success(
|
228
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
229
|
+
hook_ctx: hook_ctx
|
230
|
+
),
|
231
|
+
response: http_response
|
232
|
+
)
|
233
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetRecentlyAddedLibraryResponseBody)
|
234
|
+
response = Models::Operations::GetRecentlyAddedLibraryResponse.new(
|
235
|
+
status_code: http_response.status,
|
236
|
+
content_type: content_type,
|
237
|
+
raw_response: http_response,
|
238
|
+
object: obj
|
239
|
+
)
|
240
|
+
|
241
|
+
return response
|
242
|
+
else
|
243
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
201
244
|
end
|
202
|
-
elsif
|
245
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
203
246
|
if Utils.match_content_type(content_type, 'application/json')
|
204
|
-
|
205
|
-
|
247
|
+
http_response = @sdk_configuration.hooks.after_success(
|
248
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
249
|
+
hook_ctx: hook_ctx
|
250
|
+
),
|
251
|
+
response: http_response
|
252
|
+
)
|
253
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetRecentlyAddedLibraryBadRequest)
|
254
|
+
obj.raw_response = http_response
|
255
|
+
throw obj
|
256
|
+
else
|
257
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
206
258
|
end
|
207
|
-
elsif
|
259
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
208
260
|
if Utils.match_content_type(content_type, 'application/json')
|
209
|
-
|
210
|
-
|
261
|
+
http_response = @sdk_configuration.hooks.after_success(
|
262
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
263
|
+
hook_ctx: hook_ctx
|
264
|
+
),
|
265
|
+
response: http_response
|
266
|
+
)
|
267
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetRecentlyAddedLibraryUnauthorized)
|
268
|
+
obj.raw_response = http_response
|
269
|
+
throw obj
|
270
|
+
else
|
271
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
211
272
|
end
|
212
|
-
|
273
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
274
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
275
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
276
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
277
|
+
else
|
278
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
213
279
|
|
214
|
-
|
280
|
+
end
|
215
281
|
end
|
216
282
|
|
217
283
|
|
218
|
-
sig { params(timeout_ms: T.nilable(Integer)).returns(::
|
284
|
+
sig { params(timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAllLibrariesResponse) }
|
219
285
|
def get_all_libraries(timeout_ms = nil)
|
220
286
|
# get_all_libraries - Get All Libraries
|
221
287
|
# A library section (commonly referred to as just a library) is a collection of media.
|
@@ -241,16 +307,17 @@ module PlexRubySDK
|
|
241
307
|
|
242
308
|
hook_ctx = SDKHooks::HookContext.new(
|
243
309
|
base_url: base_url,
|
244
|
-
oauth2_scopes:
|
310
|
+
oauth2_scopes: [],
|
245
311
|
operation_id: 'get-all-libraries',
|
246
312
|
security_source: @sdk_configuration.security_source
|
247
313
|
)
|
248
314
|
|
249
315
|
error = T.let(nil, T.nilable(StandardError))
|
250
|
-
|
316
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
317
|
+
|
251
318
|
|
252
319
|
begin
|
253
|
-
|
320
|
+
http_response = connection.get(url) do |req|
|
254
321
|
req.headers.merge!(headers)
|
255
322
|
req.options.timeout = timeout unless timeout.nil?
|
256
323
|
Utils.configure_request_security(req, security)
|
@@ -265,56 +332,90 @@ module PlexRubySDK
|
|
265
332
|
rescue StandardError => e
|
266
333
|
error = e
|
267
334
|
ensure
|
268
|
-
if
|
269
|
-
|
335
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
336
|
+
http_response = @sdk_configuration.hooks.after_error(
|
270
337
|
error: error,
|
271
338
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
272
339
|
hook_ctx: hook_ctx
|
273
340
|
),
|
274
|
-
response:
|
341
|
+
response: http_response
|
275
342
|
)
|
276
343
|
else
|
277
|
-
|
344
|
+
http_response = @sdk_configuration.hooks.after_success(
|
278
345
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
279
346
|
hook_ctx: hook_ctx
|
280
347
|
),
|
281
|
-
response:
|
348
|
+
response: http_response
|
282
349
|
)
|
283
350
|
end
|
284
351
|
|
285
|
-
if
|
352
|
+
if http_response.nil?
|
286
353
|
raise error if !error.nil?
|
287
354
|
raise 'no response'
|
288
355
|
end
|
289
356
|
end
|
290
|
-
|
291
|
-
content_type =
|
292
|
-
|
293
|
-
res = ::PlexRubySDK::Operations::GetAllLibrariesResponse.new(
|
294
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
295
|
-
)
|
296
|
-
if r.status == 200
|
357
|
+
|
358
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
359
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
297
360
|
if Utils.match_content_type(content_type, 'application/json')
|
298
|
-
|
299
|
-
|
361
|
+
http_response = @sdk_configuration.hooks.after_success(
|
362
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
363
|
+
hook_ctx: hook_ctx
|
364
|
+
),
|
365
|
+
response: http_response
|
366
|
+
)
|
367
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetAllLibrariesResponseBody)
|
368
|
+
response = Models::Operations::GetAllLibrariesResponse.new(
|
369
|
+
status_code: http_response.status,
|
370
|
+
content_type: content_type,
|
371
|
+
raw_response: http_response,
|
372
|
+
object: obj
|
373
|
+
)
|
374
|
+
|
375
|
+
return response
|
376
|
+
else
|
377
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
300
378
|
end
|
301
|
-
elsif
|
379
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
302
380
|
if Utils.match_content_type(content_type, 'application/json')
|
303
|
-
|
304
|
-
|
381
|
+
http_response = @sdk_configuration.hooks.after_success(
|
382
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
383
|
+
hook_ctx: hook_ctx
|
384
|
+
),
|
385
|
+
response: http_response
|
386
|
+
)
|
387
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetAllLibrariesBadRequest)
|
388
|
+
obj.raw_response = http_response
|
389
|
+
throw obj
|
390
|
+
else
|
391
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
305
392
|
end
|
306
|
-
elsif
|
393
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
307
394
|
if Utils.match_content_type(content_type, 'application/json')
|
308
|
-
|
309
|
-
|
395
|
+
http_response = @sdk_configuration.hooks.after_success(
|
396
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
397
|
+
hook_ctx: hook_ctx
|
398
|
+
),
|
399
|
+
response: http_response
|
400
|
+
)
|
401
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetAllLibrariesUnauthorized)
|
402
|
+
obj.raw_response = http_response
|
403
|
+
throw obj
|
404
|
+
else
|
405
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
310
406
|
end
|
311
|
-
|
407
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
408
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
409
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
410
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
411
|
+
else
|
412
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
312
413
|
|
313
|
-
|
414
|
+
end
|
314
415
|
end
|
315
416
|
|
316
417
|
|
317
|
-
sig { params(section_key: ::Integer, include_details: T.nilable(::
|
418
|
+
sig { params(section_key: ::Integer, include_details: T.nilable(Models::Operations::IncludeDetails), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetLibraryDetailsResponse) }
|
318
419
|
def get_library_details(section_key, include_details = nil, timeout_ms = nil)
|
319
420
|
# get_library_details - Get Library Details
|
320
421
|
# ## Library Details Endpoint
|
@@ -357,7 +458,7 @@ module PlexRubySDK
|
|
357
458
|
#
|
358
459
|
# > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered.
|
359
460
|
#
|
360
|
-
request = ::
|
461
|
+
request = Models::Operations::GetLibraryDetailsRequest.new(
|
361
462
|
|
362
463
|
section_key: section_key,
|
363
464
|
include_details: include_details
|
@@ -365,13 +466,13 @@ module PlexRubySDK
|
|
365
466
|
url, params = @sdk_configuration.get_server_details
|
366
467
|
base_url = Utils.template_url(url, params)
|
367
468
|
url = Utils.generate_url(
|
368
|
-
::
|
469
|
+
Models::Operations::GetLibraryDetailsRequest,
|
369
470
|
base_url,
|
370
471
|
'/library/sections/{sectionKey}',
|
371
472
|
request
|
372
473
|
)
|
373
474
|
headers = {}
|
374
|
-
query_params = Utils.get_query_params(::
|
475
|
+
query_params = Utils.get_query_params(Models::Operations::GetLibraryDetailsRequest, request)
|
375
476
|
headers['Accept'] = 'application/json'
|
376
477
|
headers['user-agent'] = @sdk_configuration.user_agent
|
377
478
|
|
@@ -384,16 +485,17 @@ module PlexRubySDK
|
|
384
485
|
|
385
486
|
hook_ctx = SDKHooks::HookContext.new(
|
386
487
|
base_url: base_url,
|
387
|
-
oauth2_scopes:
|
488
|
+
oauth2_scopes: [],
|
388
489
|
operation_id: 'get-library-details',
|
389
490
|
security_source: @sdk_configuration.security_source
|
390
491
|
)
|
391
492
|
|
392
493
|
error = T.let(nil, T.nilable(StandardError))
|
393
|
-
|
494
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
495
|
+
|
394
496
|
|
395
497
|
begin
|
396
|
-
|
498
|
+
http_response = connection.get(url) do |req|
|
397
499
|
req.headers.merge!(headers)
|
398
500
|
req.options.timeout = timeout unless timeout.nil?
|
399
501
|
req.params = query_params
|
@@ -409,67 +511,101 @@ module PlexRubySDK
|
|
409
511
|
rescue StandardError => e
|
410
512
|
error = e
|
411
513
|
ensure
|
412
|
-
if
|
413
|
-
|
514
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
515
|
+
http_response = @sdk_configuration.hooks.after_error(
|
414
516
|
error: error,
|
415
517
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
416
518
|
hook_ctx: hook_ctx
|
417
519
|
),
|
418
|
-
response:
|
520
|
+
response: http_response
|
419
521
|
)
|
420
522
|
else
|
421
|
-
|
523
|
+
http_response = @sdk_configuration.hooks.after_success(
|
422
524
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
423
525
|
hook_ctx: hook_ctx
|
424
526
|
),
|
425
|
-
response:
|
527
|
+
response: http_response
|
426
528
|
)
|
427
529
|
end
|
428
530
|
|
429
|
-
if
|
531
|
+
if http_response.nil?
|
430
532
|
raise error if !error.nil?
|
431
533
|
raise 'no response'
|
432
534
|
end
|
433
535
|
end
|
434
|
-
|
435
|
-
content_type =
|
436
|
-
|
437
|
-
res = ::PlexRubySDK::Operations::GetLibraryDetailsResponse.new(
|
438
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
439
|
-
)
|
440
|
-
if r.status == 200
|
536
|
+
|
537
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
538
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
441
539
|
if Utils.match_content_type(content_type, 'application/json')
|
442
|
-
|
443
|
-
|
540
|
+
http_response = @sdk_configuration.hooks.after_success(
|
541
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
542
|
+
hook_ctx: hook_ctx
|
543
|
+
),
|
544
|
+
response: http_response
|
545
|
+
)
|
546
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetLibraryDetailsResponseBody)
|
547
|
+
response = Models::Operations::GetLibraryDetailsResponse.new(
|
548
|
+
status_code: http_response.status,
|
549
|
+
content_type: content_type,
|
550
|
+
raw_response: http_response,
|
551
|
+
object: obj
|
552
|
+
)
|
553
|
+
|
554
|
+
return response
|
555
|
+
else
|
556
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
444
557
|
end
|
445
|
-
elsif
|
558
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
446
559
|
if Utils.match_content_type(content_type, 'application/json')
|
447
|
-
|
448
|
-
|
560
|
+
http_response = @sdk_configuration.hooks.after_success(
|
561
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
562
|
+
hook_ctx: hook_ctx
|
563
|
+
),
|
564
|
+
response: http_response
|
565
|
+
)
|
566
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetLibraryDetailsBadRequest)
|
567
|
+
obj.raw_response = http_response
|
568
|
+
throw obj
|
569
|
+
else
|
570
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
449
571
|
end
|
450
|
-
elsif
|
572
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
451
573
|
if Utils.match_content_type(content_type, 'application/json')
|
452
|
-
|
453
|
-
|
574
|
+
http_response = @sdk_configuration.hooks.after_success(
|
575
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
576
|
+
hook_ctx: hook_ctx
|
577
|
+
),
|
578
|
+
response: http_response
|
579
|
+
)
|
580
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetLibraryDetailsUnauthorized)
|
581
|
+
obj.raw_response = http_response
|
582
|
+
throw obj
|
583
|
+
else
|
584
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
454
585
|
end
|
455
|
-
|
586
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
587
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
588
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
589
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
590
|
+
else
|
591
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
456
592
|
|
457
|
-
|
593
|
+
end
|
458
594
|
end
|
459
595
|
|
460
596
|
|
461
|
-
sig { params(section_key: ::Integer, timeout_ms: T.nilable(Integer)).returns(::
|
597
|
+
sig { params(section_key: ::Integer, timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteLibraryResponse) }
|
462
598
|
def delete_library(section_key, timeout_ms = nil)
|
463
599
|
# delete_library - Delete Library Section
|
464
600
|
# Delete a library using a specific section id
|
465
|
-
request = ::
|
601
|
+
request = Models::Operations::DeleteLibraryRequest.new(
|
466
602
|
|
467
603
|
section_key: section_key
|
468
604
|
)
|
469
605
|
url, params = @sdk_configuration.get_server_details
|
470
606
|
base_url = Utils.template_url(url, params)
|
471
607
|
url = Utils.generate_url(
|
472
|
-
::
|
608
|
+
Models::Operations::DeleteLibraryRequest,
|
473
609
|
base_url,
|
474
610
|
'/library/sections/{sectionKey}',
|
475
611
|
request
|
@@ -487,16 +623,17 @@ module PlexRubySDK
|
|
487
623
|
|
488
624
|
hook_ctx = SDKHooks::HookContext.new(
|
489
625
|
base_url: base_url,
|
490
|
-
oauth2_scopes:
|
626
|
+
oauth2_scopes: [],
|
491
627
|
operation_id: 'deleteLibrary',
|
492
628
|
security_source: @sdk_configuration.security_source
|
493
629
|
)
|
494
630
|
|
495
631
|
error = T.let(nil, T.nilable(StandardError))
|
496
|
-
|
632
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
633
|
+
|
497
634
|
|
498
635
|
begin
|
499
|
-
|
636
|
+
http_response = connection.delete(url) do |req|
|
500
637
|
req.headers.merge!(headers)
|
501
638
|
req.options.timeout = timeout unless timeout.nil?
|
502
639
|
Utils.configure_request_security(req, security)
|
@@ -511,52 +648,82 @@ module PlexRubySDK
|
|
511
648
|
rescue StandardError => e
|
512
649
|
error = e
|
513
650
|
ensure
|
514
|
-
if
|
515
|
-
|
651
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
652
|
+
http_response = @sdk_configuration.hooks.after_error(
|
516
653
|
error: error,
|
517
654
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
518
655
|
hook_ctx: hook_ctx
|
519
656
|
),
|
520
|
-
response:
|
657
|
+
response: http_response
|
521
658
|
)
|
522
659
|
else
|
523
|
-
|
660
|
+
http_response = @sdk_configuration.hooks.after_success(
|
524
661
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
525
662
|
hook_ctx: hook_ctx
|
526
663
|
),
|
527
|
-
response:
|
664
|
+
response: http_response
|
528
665
|
)
|
529
666
|
end
|
530
667
|
|
531
|
-
if
|
668
|
+
if http_response.nil?
|
532
669
|
raise error if !error.nil?
|
533
670
|
raise 'no response'
|
534
671
|
end
|
535
672
|
end
|
536
|
-
|
537
|
-
content_type =
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
673
|
+
|
674
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
675
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
676
|
+
http_response = @sdk_configuration.hooks.after_success(
|
677
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
678
|
+
hook_ctx: hook_ctx
|
679
|
+
),
|
680
|
+
response: http_response
|
681
|
+
)
|
682
|
+
return Models::Operations::DeleteLibraryResponse.new(
|
683
|
+
status_code: http_response.status,
|
684
|
+
content_type: content_type,
|
685
|
+
raw_response: http_response
|
686
|
+
)
|
687
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
544
688
|
if Utils.match_content_type(content_type, 'application/json')
|
545
|
-
|
546
|
-
|
689
|
+
http_response = @sdk_configuration.hooks.after_success(
|
690
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
691
|
+
hook_ctx: hook_ctx
|
692
|
+
),
|
693
|
+
response: http_response
|
694
|
+
)
|
695
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::DeleteLibraryBadRequest)
|
696
|
+
obj.raw_response = http_response
|
697
|
+
throw obj
|
698
|
+
else
|
699
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
547
700
|
end
|
548
|
-
elsif
|
701
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
549
702
|
if Utils.match_content_type(content_type, 'application/json')
|
550
|
-
|
551
|
-
|
703
|
+
http_response = @sdk_configuration.hooks.after_success(
|
704
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
705
|
+
hook_ctx: hook_ctx
|
706
|
+
),
|
707
|
+
response: http_response
|
708
|
+
)
|
709
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::DeleteLibraryUnauthorized)
|
710
|
+
obj.raw_response = http_response
|
711
|
+
throw obj
|
712
|
+
else
|
713
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
552
714
|
end
|
553
|
-
|
715
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
716
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
717
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
718
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
719
|
+
else
|
720
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
554
721
|
|
555
|
-
|
722
|
+
end
|
556
723
|
end
|
557
724
|
|
558
725
|
|
559
|
-
sig { params(request: T.nilable(::
|
726
|
+
sig { params(request: T.nilable(Models::Operations::GetLibraryItemsRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetLibraryItemsResponse) }
|
560
727
|
def get_library_items(request, timeout_ms = nil)
|
561
728
|
# get_library_items - Get Library Items
|
562
729
|
# Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values:
|
@@ -584,13 +751,13 @@ module PlexRubySDK
|
|
584
751
|
url, params = @sdk_configuration.get_server_details
|
585
752
|
base_url = Utils.template_url(url, params)
|
586
753
|
url = Utils.generate_url(
|
587
|
-
::
|
754
|
+
Models::Operations::GetLibraryItemsRequest,
|
588
755
|
base_url,
|
589
756
|
'/library/sections/{sectionKey}/{tag}',
|
590
757
|
request
|
591
758
|
)
|
592
759
|
headers = {}
|
593
|
-
query_params = Utils.get_query_params(::
|
760
|
+
query_params = Utils.get_query_params(Models::Operations::GetLibraryItemsRequest, request)
|
594
761
|
headers['Accept'] = 'application/json'
|
595
762
|
headers['user-agent'] = @sdk_configuration.user_agent
|
596
763
|
|
@@ -603,16 +770,17 @@ module PlexRubySDK
|
|
603
770
|
|
604
771
|
hook_ctx = SDKHooks::HookContext.new(
|
605
772
|
base_url: base_url,
|
606
|
-
oauth2_scopes:
|
773
|
+
oauth2_scopes: [],
|
607
774
|
operation_id: 'get-library-items',
|
608
775
|
security_source: @sdk_configuration.security_source
|
609
776
|
)
|
610
777
|
|
611
778
|
error = T.let(nil, T.nilable(StandardError))
|
612
|
-
|
779
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
780
|
+
|
613
781
|
|
614
782
|
begin
|
615
|
-
|
783
|
+
http_response = connection.get(url) do |req|
|
616
784
|
req.headers.merge!(headers)
|
617
785
|
req.options.timeout = timeout unless timeout.nil?
|
618
786
|
req.params = query_params
|
@@ -628,56 +796,90 @@ module PlexRubySDK
|
|
628
796
|
rescue StandardError => e
|
629
797
|
error = e
|
630
798
|
ensure
|
631
|
-
if
|
632
|
-
|
799
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
800
|
+
http_response = @sdk_configuration.hooks.after_error(
|
633
801
|
error: error,
|
634
802
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
635
803
|
hook_ctx: hook_ctx
|
636
804
|
),
|
637
|
-
response:
|
805
|
+
response: http_response
|
638
806
|
)
|
639
807
|
else
|
640
|
-
|
808
|
+
http_response = @sdk_configuration.hooks.after_success(
|
641
809
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
642
810
|
hook_ctx: hook_ctx
|
643
811
|
),
|
644
|
-
response:
|
812
|
+
response: http_response
|
645
813
|
)
|
646
814
|
end
|
647
815
|
|
648
|
-
if
|
816
|
+
if http_response.nil?
|
649
817
|
raise error if !error.nil?
|
650
818
|
raise 'no response'
|
651
819
|
end
|
652
820
|
end
|
653
|
-
|
654
|
-
content_type =
|
655
|
-
|
656
|
-
res = ::PlexRubySDK::Operations::GetLibraryItemsResponse.new(
|
657
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
658
|
-
)
|
659
|
-
if r.status == 200
|
821
|
+
|
822
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
823
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
660
824
|
if Utils.match_content_type(content_type, 'application/json')
|
661
|
-
|
662
|
-
|
825
|
+
http_response = @sdk_configuration.hooks.after_success(
|
826
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
827
|
+
hook_ctx: hook_ctx
|
828
|
+
),
|
829
|
+
response: http_response
|
830
|
+
)
|
831
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetLibraryItemsResponseBody)
|
832
|
+
response = Models::Operations::GetLibraryItemsResponse.new(
|
833
|
+
status_code: http_response.status,
|
834
|
+
content_type: content_type,
|
835
|
+
raw_response: http_response,
|
836
|
+
object: obj
|
837
|
+
)
|
838
|
+
|
839
|
+
return response
|
840
|
+
else
|
841
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
663
842
|
end
|
664
|
-
elsif
|
843
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
665
844
|
if Utils.match_content_type(content_type, 'application/json')
|
666
|
-
|
667
|
-
|
845
|
+
http_response = @sdk_configuration.hooks.after_success(
|
846
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
847
|
+
hook_ctx: hook_ctx
|
848
|
+
),
|
849
|
+
response: http_response
|
850
|
+
)
|
851
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetLibraryItemsBadRequest)
|
852
|
+
obj.raw_response = http_response
|
853
|
+
throw obj
|
854
|
+
else
|
855
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
668
856
|
end
|
669
|
-
elsif
|
857
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
670
858
|
if Utils.match_content_type(content_type, 'application/json')
|
671
|
-
|
672
|
-
|
859
|
+
http_response = @sdk_configuration.hooks.after_success(
|
860
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
861
|
+
hook_ctx: hook_ctx
|
862
|
+
),
|
863
|
+
response: http_response
|
864
|
+
)
|
865
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetLibraryItemsUnauthorized)
|
866
|
+
obj.raw_response = http_response
|
867
|
+
throw obj
|
868
|
+
else
|
869
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
673
870
|
end
|
674
|
-
|
871
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
872
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
873
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
874
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
875
|
+
else
|
876
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
675
877
|
|
676
|
-
|
878
|
+
end
|
677
879
|
end
|
678
880
|
|
679
881
|
|
680
|
-
sig { params(request: T.nilable(::
|
882
|
+
sig { params(request: T.nilable(Models::Operations::GetAllMediaLibraryRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAllMediaLibraryResponse) }
|
681
883
|
def get_all_media_library(request, timeout_ms = nil)
|
682
884
|
# get_all_media_library - Get all media of library
|
683
885
|
# Retrieves a list of all general media data for this library.
|
@@ -685,13 +887,13 @@ module PlexRubySDK
|
|
685
887
|
url, params = @sdk_configuration.get_server_details
|
686
888
|
base_url = Utils.template_url(url, params)
|
687
889
|
url = Utils.generate_url(
|
688
|
-
::
|
890
|
+
Models::Operations::GetAllMediaLibraryRequest,
|
689
891
|
base_url,
|
690
892
|
'/library/sections/{sectionKey}/all',
|
691
893
|
request
|
692
894
|
)
|
693
895
|
headers = {}
|
694
|
-
query_params = Utils.get_query_params(::
|
896
|
+
query_params = Utils.get_query_params(Models::Operations::GetAllMediaLibraryRequest, request)
|
695
897
|
headers['Accept'] = 'application/json'
|
696
898
|
headers['user-agent'] = @sdk_configuration.user_agent
|
697
899
|
|
@@ -704,16 +906,17 @@ module PlexRubySDK
|
|
704
906
|
|
705
907
|
hook_ctx = SDKHooks::HookContext.new(
|
706
908
|
base_url: base_url,
|
707
|
-
oauth2_scopes:
|
909
|
+
oauth2_scopes: [],
|
708
910
|
operation_id: 'get-all-media-library',
|
709
911
|
security_source: @sdk_configuration.security_source
|
710
912
|
)
|
711
913
|
|
712
914
|
error = T.let(nil, T.nilable(StandardError))
|
713
|
-
|
915
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
916
|
+
|
714
917
|
|
715
918
|
begin
|
716
|
-
|
919
|
+
http_response = connection.get(url) do |req|
|
717
920
|
req.headers.merge!(headers)
|
718
921
|
req.options.timeout = timeout unless timeout.nil?
|
719
922
|
req.params = query_params
|
@@ -729,62 +932,95 @@ module PlexRubySDK
|
|
729
932
|
rescue StandardError => e
|
730
933
|
error = e
|
731
934
|
ensure
|
732
|
-
if
|
733
|
-
|
935
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
936
|
+
http_response = @sdk_configuration.hooks.after_error(
|
734
937
|
error: error,
|
735
938
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
736
939
|
hook_ctx: hook_ctx
|
737
940
|
),
|
738
|
-
response:
|
941
|
+
response: http_response
|
739
942
|
)
|
740
943
|
else
|
741
|
-
|
944
|
+
http_response = @sdk_configuration.hooks.after_success(
|
742
945
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
743
946
|
hook_ctx: hook_ctx
|
744
947
|
),
|
745
|
-
response:
|
948
|
+
response: http_response
|
746
949
|
)
|
747
950
|
end
|
748
951
|
|
749
|
-
if
|
952
|
+
if http_response.nil?
|
750
953
|
raise error if !error.nil?
|
751
954
|
raise 'no response'
|
752
955
|
end
|
753
956
|
end
|
754
|
-
|
755
|
-
content_type =
|
756
|
-
|
757
|
-
res = ::PlexRubySDK::Operations::GetAllMediaLibraryResponse.new(
|
758
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
759
|
-
)
|
760
|
-
if r.status == 200
|
957
|
+
|
958
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
959
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
761
960
|
if Utils.match_content_type(content_type, 'application/json')
|
762
|
-
|
763
|
-
|
961
|
+
http_response = @sdk_configuration.hooks.after_success(
|
962
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
963
|
+
hook_ctx: hook_ctx
|
964
|
+
),
|
965
|
+
response: http_response
|
966
|
+
)
|
967
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetAllMediaLibraryResponseBody)
|
968
|
+
response = Models::Operations::GetAllMediaLibraryResponse.new(
|
969
|
+
status_code: http_response.status,
|
970
|
+
content_type: content_type,
|
971
|
+
raw_response: http_response,
|
972
|
+
object: obj
|
973
|
+
)
|
974
|
+
|
975
|
+
return response
|
976
|
+
else
|
977
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
764
978
|
end
|
765
|
-
elsif
|
979
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
766
980
|
if Utils.match_content_type(content_type, 'application/json')
|
767
|
-
|
768
|
-
|
981
|
+
http_response = @sdk_configuration.hooks.after_success(
|
982
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
983
|
+
hook_ctx: hook_ctx
|
984
|
+
),
|
985
|
+
response: http_response
|
986
|
+
)
|
987
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetAllMediaLibraryBadRequest)
|
988
|
+
obj.raw_response = http_response
|
989
|
+
throw obj
|
990
|
+
else
|
991
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
769
992
|
end
|
770
|
-
elsif
|
993
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
771
994
|
if Utils.match_content_type(content_type, 'application/json')
|
772
|
-
|
773
|
-
|
995
|
+
http_response = @sdk_configuration.hooks.after_success(
|
996
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
997
|
+
hook_ctx: hook_ctx
|
998
|
+
),
|
999
|
+
response: http_response
|
1000
|
+
)
|
1001
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetAllMediaLibraryUnauthorized)
|
1002
|
+
obj.raw_response = http_response
|
1003
|
+
throw obj
|
1004
|
+
else
|
1005
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
774
1006
|
end
|
775
|
-
elsif
|
776
|
-
|
1007
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
1008
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1009
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1010
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1011
|
+
else
|
1012
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
777
1013
|
|
778
|
-
|
1014
|
+
end
|
779
1015
|
end
|
780
1016
|
|
781
1017
|
|
782
|
-
sig { params(section_key: ::Integer, force: T.nilable(::
|
1018
|
+
sig { params(section_key: ::Integer, force: T.nilable(Models::Operations::Force), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetRefreshLibraryMetadataResponse) }
|
783
1019
|
def get_refresh_library_metadata(section_key, force = nil, timeout_ms = nil)
|
784
1020
|
# get_refresh_library_metadata - Refresh Metadata Of The Library
|
785
1021
|
# This endpoint Refreshes all the Metadata of the library.
|
786
1022
|
#
|
787
|
-
request = ::
|
1023
|
+
request = Models::Operations::GetRefreshLibraryMetadataRequest.new(
|
788
1024
|
|
789
1025
|
section_key: section_key,
|
790
1026
|
force: force
|
@@ -792,13 +1028,13 @@ module PlexRubySDK
|
|
792
1028
|
url, params = @sdk_configuration.get_server_details
|
793
1029
|
base_url = Utils.template_url(url, params)
|
794
1030
|
url = Utils.generate_url(
|
795
|
-
::
|
1031
|
+
Models::Operations::GetRefreshLibraryMetadataRequest,
|
796
1032
|
base_url,
|
797
1033
|
'/library/sections/{sectionKey}/refresh',
|
798
1034
|
request
|
799
1035
|
)
|
800
1036
|
headers = {}
|
801
|
-
query_params = Utils.get_query_params(::
|
1037
|
+
query_params = Utils.get_query_params(Models::Operations::GetRefreshLibraryMetadataRequest, request)
|
802
1038
|
headers['Accept'] = 'application/json'
|
803
1039
|
headers['user-agent'] = @sdk_configuration.user_agent
|
804
1040
|
|
@@ -811,16 +1047,17 @@ module PlexRubySDK
|
|
811
1047
|
|
812
1048
|
hook_ctx = SDKHooks::HookContext.new(
|
813
1049
|
base_url: base_url,
|
814
|
-
oauth2_scopes:
|
1050
|
+
oauth2_scopes: [],
|
815
1051
|
operation_id: 'get-refresh-library-metadata',
|
816
1052
|
security_source: @sdk_configuration.security_source
|
817
1053
|
)
|
818
1054
|
|
819
1055
|
error = T.let(nil, T.nilable(StandardError))
|
820
|
-
|
1056
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1057
|
+
|
821
1058
|
|
822
1059
|
begin
|
823
|
-
|
1060
|
+
http_response = connection.get(url) do |req|
|
824
1061
|
req.headers.merge!(headers)
|
825
1062
|
req.options.timeout = timeout unless timeout.nil?
|
826
1063
|
req.params = query_params
|
@@ -836,52 +1073,82 @@ module PlexRubySDK
|
|
836
1073
|
rescue StandardError => e
|
837
1074
|
error = e
|
838
1075
|
ensure
|
839
|
-
if
|
840
|
-
|
1076
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1077
|
+
http_response = @sdk_configuration.hooks.after_error(
|
841
1078
|
error: error,
|
842
1079
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
843
1080
|
hook_ctx: hook_ctx
|
844
1081
|
),
|
845
|
-
response:
|
1082
|
+
response: http_response
|
846
1083
|
)
|
847
1084
|
else
|
848
|
-
|
1085
|
+
http_response = @sdk_configuration.hooks.after_success(
|
849
1086
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
850
1087
|
hook_ctx: hook_ctx
|
851
1088
|
),
|
852
|
-
response:
|
1089
|
+
response: http_response
|
853
1090
|
)
|
854
1091
|
end
|
855
1092
|
|
856
|
-
if
|
1093
|
+
if http_response.nil?
|
857
1094
|
raise error if !error.nil?
|
858
1095
|
raise 'no response'
|
859
1096
|
end
|
860
1097
|
end
|
861
|
-
|
862
|
-
content_type =
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
1098
|
+
|
1099
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1100
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1101
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1102
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1103
|
+
hook_ctx: hook_ctx
|
1104
|
+
),
|
1105
|
+
response: http_response
|
1106
|
+
)
|
1107
|
+
return Models::Operations::GetRefreshLibraryMetadataResponse.new(
|
1108
|
+
status_code: http_response.status,
|
1109
|
+
content_type: content_type,
|
1110
|
+
raw_response: http_response
|
1111
|
+
)
|
1112
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
869
1113
|
if Utils.match_content_type(content_type, 'application/json')
|
870
|
-
|
871
|
-
|
1114
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1115
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1116
|
+
hook_ctx: hook_ctx
|
1117
|
+
),
|
1118
|
+
response: http_response
|
1119
|
+
)
|
1120
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetRefreshLibraryMetadataBadRequest)
|
1121
|
+
obj.raw_response = http_response
|
1122
|
+
throw obj
|
1123
|
+
else
|
1124
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
872
1125
|
end
|
873
|
-
elsif
|
1126
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
874
1127
|
if Utils.match_content_type(content_type, 'application/json')
|
875
|
-
|
876
|
-
|
1128
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1129
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1130
|
+
hook_ctx: hook_ctx
|
1131
|
+
),
|
1132
|
+
response: http_response
|
1133
|
+
)
|
1134
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetRefreshLibraryMetadataUnauthorized)
|
1135
|
+
obj.raw_response = http_response
|
1136
|
+
throw obj
|
1137
|
+
else
|
1138
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
877
1139
|
end
|
878
|
-
|
1140
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
1141
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1142
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1143
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1144
|
+
else
|
1145
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
879
1146
|
|
880
|
-
|
1147
|
+
end
|
881
1148
|
end
|
882
1149
|
|
883
1150
|
|
884
|
-
sig { params(section_key: ::Integer, type: ::
|
1151
|
+
sig { params(section_key: ::Integer, type: Models::Operations::GetSearchLibraryQueryParamType, timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSearchLibraryResponse) }
|
885
1152
|
def get_search_library(section_key, type, timeout_ms = nil)
|
886
1153
|
# get_search_library - Search Library
|
887
1154
|
# Search for content within a specific section of the library.
|
@@ -903,7 +1170,7 @@ module PlexRubySDK
|
|
903
1170
|
#
|
904
1171
|
# > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered.
|
905
1172
|
#
|
906
|
-
request = ::
|
1173
|
+
request = Models::Operations::GetSearchLibraryRequest.new(
|
907
1174
|
|
908
1175
|
section_key: section_key,
|
909
1176
|
type: type
|
@@ -911,13 +1178,13 @@ module PlexRubySDK
|
|
911
1178
|
url, params = @sdk_configuration.get_server_details
|
912
1179
|
base_url = Utils.template_url(url, params)
|
913
1180
|
url = Utils.generate_url(
|
914
|
-
::
|
1181
|
+
Models::Operations::GetSearchLibraryRequest,
|
915
1182
|
base_url,
|
916
1183
|
'/library/sections/{sectionKey}/search',
|
917
1184
|
request
|
918
1185
|
)
|
919
1186
|
headers = {}
|
920
|
-
query_params = Utils.get_query_params(::
|
1187
|
+
query_params = Utils.get_query_params(Models::Operations::GetSearchLibraryRequest, request)
|
921
1188
|
headers['Accept'] = 'application/json'
|
922
1189
|
headers['user-agent'] = @sdk_configuration.user_agent
|
923
1190
|
|
@@ -930,16 +1197,17 @@ module PlexRubySDK
|
|
930
1197
|
|
931
1198
|
hook_ctx = SDKHooks::HookContext.new(
|
932
1199
|
base_url: base_url,
|
933
|
-
oauth2_scopes:
|
1200
|
+
oauth2_scopes: [],
|
934
1201
|
operation_id: 'get-search-library',
|
935
1202
|
security_source: @sdk_configuration.security_source
|
936
1203
|
)
|
937
1204
|
|
938
1205
|
error = T.let(nil, T.nilable(StandardError))
|
939
|
-
|
1206
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1207
|
+
|
940
1208
|
|
941
1209
|
begin
|
942
|
-
|
1210
|
+
http_response = connection.get(url) do |req|
|
943
1211
|
req.headers.merge!(headers)
|
944
1212
|
req.options.timeout = timeout unless timeout.nil?
|
945
1213
|
req.params = query_params
|
@@ -955,61 +1223,95 @@ module PlexRubySDK
|
|
955
1223
|
rescue StandardError => e
|
956
1224
|
error = e
|
957
1225
|
ensure
|
958
|
-
if
|
959
|
-
|
1226
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1227
|
+
http_response = @sdk_configuration.hooks.after_error(
|
960
1228
|
error: error,
|
961
1229
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
962
1230
|
hook_ctx: hook_ctx
|
963
1231
|
),
|
964
|
-
response:
|
1232
|
+
response: http_response
|
965
1233
|
)
|
966
1234
|
else
|
967
|
-
|
1235
|
+
http_response = @sdk_configuration.hooks.after_success(
|
968
1236
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
969
1237
|
hook_ctx: hook_ctx
|
970
1238
|
),
|
971
|
-
response:
|
1239
|
+
response: http_response
|
972
1240
|
)
|
973
1241
|
end
|
974
1242
|
|
975
|
-
if
|
1243
|
+
if http_response.nil?
|
976
1244
|
raise error if !error.nil?
|
977
1245
|
raise 'no response'
|
978
1246
|
end
|
979
1247
|
end
|
980
|
-
|
981
|
-
content_type =
|
982
|
-
|
983
|
-
res = ::PlexRubySDK::Operations::GetSearchLibraryResponse.new(
|
984
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
985
|
-
)
|
986
|
-
if r.status == 200
|
1248
|
+
|
1249
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1250
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
987
1251
|
if Utils.match_content_type(content_type, 'application/json')
|
988
|
-
|
989
|
-
|
1252
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1253
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1254
|
+
hook_ctx: hook_ctx
|
1255
|
+
),
|
1256
|
+
response: http_response
|
1257
|
+
)
|
1258
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetSearchLibraryResponseBody)
|
1259
|
+
response = Models::Operations::GetSearchLibraryResponse.new(
|
1260
|
+
status_code: http_response.status,
|
1261
|
+
content_type: content_type,
|
1262
|
+
raw_response: http_response,
|
1263
|
+
object: obj
|
1264
|
+
)
|
1265
|
+
|
1266
|
+
return response
|
1267
|
+
else
|
1268
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
990
1269
|
end
|
991
|
-
elsif
|
1270
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
992
1271
|
if Utils.match_content_type(content_type, 'application/json')
|
993
|
-
|
994
|
-
|
1272
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1273
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1274
|
+
hook_ctx: hook_ctx
|
1275
|
+
),
|
1276
|
+
response: http_response
|
1277
|
+
)
|
1278
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetSearchLibraryBadRequest)
|
1279
|
+
obj.raw_response = http_response
|
1280
|
+
throw obj
|
1281
|
+
else
|
1282
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
995
1283
|
end
|
996
|
-
elsif
|
1284
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
997
1285
|
if Utils.match_content_type(content_type, 'application/json')
|
998
|
-
|
999
|
-
|
1286
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1287
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1288
|
+
hook_ctx: hook_ctx
|
1289
|
+
),
|
1290
|
+
response: http_response
|
1291
|
+
)
|
1292
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetSearchLibraryUnauthorized)
|
1293
|
+
obj.raw_response = http_response
|
1294
|
+
throw obj
|
1295
|
+
else
|
1296
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1000
1297
|
end
|
1001
|
-
|
1298
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
1299
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1300
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1301
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1302
|
+
else
|
1303
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1002
1304
|
|
1003
|
-
|
1305
|
+
end
|
1004
1306
|
end
|
1005
1307
|
|
1006
1308
|
|
1007
|
-
sig { params(section_key: ::Integer, type: ::
|
1309
|
+
sig { params(section_key: ::Integer, type: Models::Operations::GetGenresLibraryQueryParamType, timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetGenresLibraryResponse) }
|
1008
1310
|
def get_genres_library(section_key, type, timeout_ms = nil)
|
1009
1311
|
# get_genres_library - Get Genres of library media
|
1010
1312
|
# Retrieves a list of all the genres that are found for the media in this library.
|
1011
1313
|
#
|
1012
|
-
request = ::
|
1314
|
+
request = Models::Operations::GetGenresLibraryRequest.new(
|
1013
1315
|
|
1014
1316
|
section_key: section_key,
|
1015
1317
|
type: type
|
@@ -1017,13 +1319,13 @@ module PlexRubySDK
|
|
1017
1319
|
url, params = @sdk_configuration.get_server_details
|
1018
1320
|
base_url = Utils.template_url(url, params)
|
1019
1321
|
url = Utils.generate_url(
|
1020
|
-
::
|
1322
|
+
Models::Operations::GetGenresLibraryRequest,
|
1021
1323
|
base_url,
|
1022
1324
|
'/library/sections/{sectionKey}/genre',
|
1023
1325
|
request
|
1024
1326
|
)
|
1025
1327
|
headers = {}
|
1026
|
-
query_params = Utils.get_query_params(::
|
1328
|
+
query_params = Utils.get_query_params(Models::Operations::GetGenresLibraryRequest, request)
|
1027
1329
|
headers['Accept'] = 'application/json'
|
1028
1330
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1029
1331
|
|
@@ -1036,16 +1338,17 @@ module PlexRubySDK
|
|
1036
1338
|
|
1037
1339
|
hook_ctx = SDKHooks::HookContext.new(
|
1038
1340
|
base_url: base_url,
|
1039
|
-
oauth2_scopes:
|
1341
|
+
oauth2_scopes: [],
|
1040
1342
|
operation_id: 'get-genres-library',
|
1041
1343
|
security_source: @sdk_configuration.security_source
|
1042
1344
|
)
|
1043
1345
|
|
1044
1346
|
error = T.let(nil, T.nilable(StandardError))
|
1045
|
-
|
1347
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1348
|
+
|
1046
1349
|
|
1047
1350
|
begin
|
1048
|
-
|
1351
|
+
http_response = connection.get(url) do |req|
|
1049
1352
|
req.headers.merge!(headers)
|
1050
1353
|
req.options.timeout = timeout unless timeout.nil?
|
1051
1354
|
req.params = query_params
|
@@ -1061,62 +1364,95 @@ module PlexRubySDK
|
|
1061
1364
|
rescue StandardError => e
|
1062
1365
|
error = e
|
1063
1366
|
ensure
|
1064
|
-
if
|
1065
|
-
|
1367
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1368
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1066
1369
|
error: error,
|
1067
1370
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1068
1371
|
hook_ctx: hook_ctx
|
1069
1372
|
),
|
1070
|
-
response:
|
1373
|
+
response: http_response
|
1071
1374
|
)
|
1072
1375
|
else
|
1073
|
-
|
1376
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1074
1377
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1075
1378
|
hook_ctx: hook_ctx
|
1076
1379
|
),
|
1077
|
-
response:
|
1380
|
+
response: http_response
|
1078
1381
|
)
|
1079
1382
|
end
|
1080
1383
|
|
1081
|
-
if
|
1384
|
+
if http_response.nil?
|
1082
1385
|
raise error if !error.nil?
|
1083
1386
|
raise 'no response'
|
1084
1387
|
end
|
1085
1388
|
end
|
1086
|
-
|
1087
|
-
content_type =
|
1088
|
-
|
1089
|
-
res = ::PlexRubySDK::Operations::GetGenresLibraryResponse.new(
|
1090
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1091
|
-
)
|
1092
|
-
if r.status == 200
|
1389
|
+
|
1390
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1391
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1093
1392
|
if Utils.match_content_type(content_type, 'application/json')
|
1094
|
-
|
1095
|
-
|
1393
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1394
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1395
|
+
hook_ctx: hook_ctx
|
1396
|
+
),
|
1397
|
+
response: http_response
|
1398
|
+
)
|
1399
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetGenresLibraryResponseBody)
|
1400
|
+
response = Models::Operations::GetGenresLibraryResponse.new(
|
1401
|
+
status_code: http_response.status,
|
1402
|
+
content_type: content_type,
|
1403
|
+
raw_response: http_response,
|
1404
|
+
object: obj
|
1405
|
+
)
|
1406
|
+
|
1407
|
+
return response
|
1408
|
+
else
|
1409
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1096
1410
|
end
|
1097
|
-
elsif
|
1411
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
1098
1412
|
if Utils.match_content_type(content_type, 'application/json')
|
1099
|
-
|
1100
|
-
|
1413
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1414
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1415
|
+
hook_ctx: hook_ctx
|
1416
|
+
),
|
1417
|
+
response: http_response
|
1418
|
+
)
|
1419
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetGenresLibraryBadRequest)
|
1420
|
+
obj.raw_response = http_response
|
1421
|
+
throw obj
|
1422
|
+
else
|
1423
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1101
1424
|
end
|
1102
|
-
elsif
|
1425
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
1103
1426
|
if Utils.match_content_type(content_type, 'application/json')
|
1104
|
-
|
1105
|
-
|
1427
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1428
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1429
|
+
hook_ctx: hook_ctx
|
1430
|
+
),
|
1431
|
+
response: http_response
|
1432
|
+
)
|
1433
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetGenresLibraryUnauthorized)
|
1434
|
+
obj.raw_response = http_response
|
1435
|
+
throw obj
|
1436
|
+
else
|
1437
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1106
1438
|
end
|
1107
|
-
elsif
|
1108
|
-
|
1439
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
1440
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1441
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1442
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1443
|
+
else
|
1444
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1109
1445
|
|
1110
|
-
|
1446
|
+
end
|
1111
1447
|
end
|
1112
1448
|
|
1113
1449
|
|
1114
|
-
sig { params(section_key: ::Integer, type: ::
|
1450
|
+
sig { params(section_key: ::Integer, type: Models::Operations::GetCountriesLibraryQueryParamType, timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetCountriesLibraryResponse) }
|
1115
1451
|
def get_countries_library(section_key, type, timeout_ms = nil)
|
1116
1452
|
# get_countries_library - Get Countries of library media
|
1117
1453
|
# Retrieves a list of all the countries that are found for the media in this library.
|
1118
1454
|
#
|
1119
|
-
request = ::
|
1455
|
+
request = Models::Operations::GetCountriesLibraryRequest.new(
|
1120
1456
|
|
1121
1457
|
section_key: section_key,
|
1122
1458
|
type: type
|
@@ -1124,13 +1460,13 @@ module PlexRubySDK
|
|
1124
1460
|
url, params = @sdk_configuration.get_server_details
|
1125
1461
|
base_url = Utils.template_url(url, params)
|
1126
1462
|
url = Utils.generate_url(
|
1127
|
-
::
|
1463
|
+
Models::Operations::GetCountriesLibraryRequest,
|
1128
1464
|
base_url,
|
1129
1465
|
'/library/sections/{sectionKey}/country',
|
1130
1466
|
request
|
1131
1467
|
)
|
1132
1468
|
headers = {}
|
1133
|
-
query_params = Utils.get_query_params(::
|
1469
|
+
query_params = Utils.get_query_params(Models::Operations::GetCountriesLibraryRequest, request)
|
1134
1470
|
headers['Accept'] = 'application/json'
|
1135
1471
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1136
1472
|
|
@@ -1143,16 +1479,17 @@ module PlexRubySDK
|
|
1143
1479
|
|
1144
1480
|
hook_ctx = SDKHooks::HookContext.new(
|
1145
1481
|
base_url: base_url,
|
1146
|
-
oauth2_scopes:
|
1482
|
+
oauth2_scopes: [],
|
1147
1483
|
operation_id: 'get-countries-library',
|
1148
1484
|
security_source: @sdk_configuration.security_source
|
1149
1485
|
)
|
1150
1486
|
|
1151
1487
|
error = T.let(nil, T.nilable(StandardError))
|
1152
|
-
|
1488
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1489
|
+
|
1153
1490
|
|
1154
1491
|
begin
|
1155
|
-
|
1492
|
+
http_response = connection.get(url) do |req|
|
1156
1493
|
req.headers.merge!(headers)
|
1157
1494
|
req.options.timeout = timeout unless timeout.nil?
|
1158
1495
|
req.params = query_params
|
@@ -1168,62 +1505,95 @@ module PlexRubySDK
|
|
1168
1505
|
rescue StandardError => e
|
1169
1506
|
error = e
|
1170
1507
|
ensure
|
1171
|
-
if
|
1172
|
-
|
1508
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1509
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1173
1510
|
error: error,
|
1174
1511
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1175
1512
|
hook_ctx: hook_ctx
|
1176
1513
|
),
|
1177
|
-
response:
|
1514
|
+
response: http_response
|
1178
1515
|
)
|
1179
1516
|
else
|
1180
|
-
|
1517
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1181
1518
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1182
1519
|
hook_ctx: hook_ctx
|
1183
1520
|
),
|
1184
|
-
response:
|
1521
|
+
response: http_response
|
1185
1522
|
)
|
1186
1523
|
end
|
1187
1524
|
|
1188
|
-
if
|
1525
|
+
if http_response.nil?
|
1189
1526
|
raise error if !error.nil?
|
1190
1527
|
raise 'no response'
|
1191
1528
|
end
|
1192
1529
|
end
|
1193
|
-
|
1194
|
-
content_type =
|
1195
|
-
|
1196
|
-
res = ::PlexRubySDK::Operations::GetCountriesLibraryResponse.new(
|
1197
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1198
|
-
)
|
1199
|
-
if r.status == 200
|
1530
|
+
|
1531
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1532
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1200
1533
|
if Utils.match_content_type(content_type, 'application/json')
|
1201
|
-
|
1202
|
-
|
1534
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1535
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1536
|
+
hook_ctx: hook_ctx
|
1537
|
+
),
|
1538
|
+
response: http_response
|
1539
|
+
)
|
1540
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetCountriesLibraryResponseBody)
|
1541
|
+
response = Models::Operations::GetCountriesLibraryResponse.new(
|
1542
|
+
status_code: http_response.status,
|
1543
|
+
content_type: content_type,
|
1544
|
+
raw_response: http_response,
|
1545
|
+
object: obj
|
1546
|
+
)
|
1547
|
+
|
1548
|
+
return response
|
1549
|
+
else
|
1550
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1203
1551
|
end
|
1204
|
-
elsif
|
1552
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
1205
1553
|
if Utils.match_content_type(content_type, 'application/json')
|
1206
|
-
|
1207
|
-
|
1554
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1555
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1556
|
+
hook_ctx: hook_ctx
|
1557
|
+
),
|
1558
|
+
response: http_response
|
1559
|
+
)
|
1560
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetCountriesLibraryBadRequest)
|
1561
|
+
obj.raw_response = http_response
|
1562
|
+
throw obj
|
1563
|
+
else
|
1564
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1208
1565
|
end
|
1209
|
-
elsif
|
1566
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
1210
1567
|
if Utils.match_content_type(content_type, 'application/json')
|
1211
|
-
|
1212
|
-
|
1568
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1569
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1570
|
+
hook_ctx: hook_ctx
|
1571
|
+
),
|
1572
|
+
response: http_response
|
1573
|
+
)
|
1574
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetCountriesLibraryUnauthorized)
|
1575
|
+
obj.raw_response = http_response
|
1576
|
+
throw obj
|
1577
|
+
else
|
1578
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1213
1579
|
end
|
1214
|
-
elsif
|
1215
|
-
|
1580
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
1581
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1582
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1583
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1584
|
+
else
|
1585
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1216
1586
|
|
1217
|
-
|
1587
|
+
end
|
1218
1588
|
end
|
1219
1589
|
|
1220
1590
|
|
1221
|
-
sig { params(section_key: ::Integer, type: ::
|
1591
|
+
sig { params(section_key: ::Integer, type: Models::Operations::GetActorsLibraryQueryParamType, timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetActorsLibraryResponse) }
|
1222
1592
|
def get_actors_library(section_key, type, timeout_ms = nil)
|
1223
1593
|
# get_actors_library - Get Actors of library media
|
1224
1594
|
# Retrieves a list of all the actors that are found for the media in this library.
|
1225
1595
|
#
|
1226
|
-
request = ::
|
1596
|
+
request = Models::Operations::GetActorsLibraryRequest.new(
|
1227
1597
|
|
1228
1598
|
section_key: section_key,
|
1229
1599
|
type: type
|
@@ -1231,13 +1601,13 @@ module PlexRubySDK
|
|
1231
1601
|
url, params = @sdk_configuration.get_server_details
|
1232
1602
|
base_url = Utils.template_url(url, params)
|
1233
1603
|
url = Utils.generate_url(
|
1234
|
-
::
|
1604
|
+
Models::Operations::GetActorsLibraryRequest,
|
1235
1605
|
base_url,
|
1236
1606
|
'/library/sections/{sectionKey}/actor',
|
1237
1607
|
request
|
1238
1608
|
)
|
1239
1609
|
headers = {}
|
1240
|
-
query_params = Utils.get_query_params(::
|
1610
|
+
query_params = Utils.get_query_params(Models::Operations::GetActorsLibraryRequest, request)
|
1241
1611
|
headers['Accept'] = 'application/json'
|
1242
1612
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1243
1613
|
|
@@ -1250,16 +1620,17 @@ module PlexRubySDK
|
|
1250
1620
|
|
1251
1621
|
hook_ctx = SDKHooks::HookContext.new(
|
1252
1622
|
base_url: base_url,
|
1253
|
-
oauth2_scopes:
|
1623
|
+
oauth2_scopes: [],
|
1254
1624
|
operation_id: 'get-actors-library',
|
1255
1625
|
security_source: @sdk_configuration.security_source
|
1256
1626
|
)
|
1257
1627
|
|
1258
1628
|
error = T.let(nil, T.nilable(StandardError))
|
1259
|
-
|
1629
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1630
|
+
|
1260
1631
|
|
1261
1632
|
begin
|
1262
|
-
|
1633
|
+
http_response = connection.get(url) do |req|
|
1263
1634
|
req.headers.merge!(headers)
|
1264
1635
|
req.options.timeout = timeout unless timeout.nil?
|
1265
1636
|
req.params = query_params
|
@@ -1275,57 +1646,90 @@ module PlexRubySDK
|
|
1275
1646
|
rescue StandardError => e
|
1276
1647
|
error = e
|
1277
1648
|
ensure
|
1278
|
-
if
|
1279
|
-
|
1649
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1650
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1280
1651
|
error: error,
|
1281
1652
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1282
1653
|
hook_ctx: hook_ctx
|
1283
1654
|
),
|
1284
|
-
response:
|
1655
|
+
response: http_response
|
1285
1656
|
)
|
1286
1657
|
else
|
1287
|
-
|
1658
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1288
1659
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1289
1660
|
hook_ctx: hook_ctx
|
1290
1661
|
),
|
1291
|
-
response:
|
1662
|
+
response: http_response
|
1292
1663
|
)
|
1293
1664
|
end
|
1294
1665
|
|
1295
|
-
if
|
1666
|
+
if http_response.nil?
|
1296
1667
|
raise error if !error.nil?
|
1297
1668
|
raise 'no response'
|
1298
1669
|
end
|
1299
1670
|
end
|
1300
|
-
|
1301
|
-
content_type =
|
1302
|
-
|
1303
|
-
res = ::PlexRubySDK::Operations::GetActorsLibraryResponse.new(
|
1304
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1305
|
-
)
|
1306
|
-
if r.status == 200
|
1671
|
+
|
1672
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1673
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1307
1674
|
if Utils.match_content_type(content_type, 'application/json')
|
1308
|
-
|
1309
|
-
|
1675
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1676
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1677
|
+
hook_ctx: hook_ctx
|
1678
|
+
),
|
1679
|
+
response: http_response
|
1680
|
+
)
|
1681
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetActorsLibraryResponseBody)
|
1682
|
+
response = Models::Operations::GetActorsLibraryResponse.new(
|
1683
|
+
status_code: http_response.status,
|
1684
|
+
content_type: content_type,
|
1685
|
+
raw_response: http_response,
|
1686
|
+
object: obj
|
1687
|
+
)
|
1688
|
+
|
1689
|
+
return response
|
1690
|
+
else
|
1691
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1310
1692
|
end
|
1311
|
-
elsif
|
1693
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
1312
1694
|
if Utils.match_content_type(content_type, 'application/json')
|
1313
|
-
|
1314
|
-
|
1695
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1696
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1697
|
+
hook_ctx: hook_ctx
|
1698
|
+
),
|
1699
|
+
response: http_response
|
1700
|
+
)
|
1701
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetActorsLibraryBadRequest)
|
1702
|
+
obj.raw_response = http_response
|
1703
|
+
throw obj
|
1704
|
+
else
|
1705
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1315
1706
|
end
|
1316
|
-
elsif
|
1707
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
1317
1708
|
if Utils.match_content_type(content_type, 'application/json')
|
1318
|
-
|
1319
|
-
|
1709
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1710
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1711
|
+
hook_ctx: hook_ctx
|
1712
|
+
),
|
1713
|
+
response: http_response
|
1714
|
+
)
|
1715
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetActorsLibraryUnauthorized)
|
1716
|
+
obj.raw_response = http_response
|
1717
|
+
throw obj
|
1718
|
+
else
|
1719
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1320
1720
|
end
|
1321
|
-
elsif
|
1322
|
-
|
1721
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
1722
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1723
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1724
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1725
|
+
else
|
1726
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1323
1727
|
|
1324
|
-
|
1728
|
+
end
|
1325
1729
|
end
|
1326
1730
|
|
1327
1731
|
|
1328
|
-
sig { params(request: T.nilable(::
|
1732
|
+
sig { params(request: T.nilable(Models::Operations::GetSearchAllLibrariesRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSearchAllLibrariesResponse) }
|
1329
1733
|
def get_search_all_libraries(request, timeout_ms = nil)
|
1330
1734
|
# get_search_all_libraries - Search All Libraries
|
1331
1735
|
# Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.
|
@@ -1334,7 +1738,7 @@ module PlexRubySDK
|
|
1334
1738
|
base_url = Utils.template_url(url, params)
|
1335
1739
|
url = "#{base_url}/library/search"
|
1336
1740
|
headers = Utils.get_headers(request)
|
1337
|
-
query_params = Utils.get_query_params(::
|
1741
|
+
query_params = Utils.get_query_params(Models::Operations::GetSearchAllLibrariesRequest, request)
|
1338
1742
|
headers['Accept'] = 'application/json'
|
1339
1743
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1340
1744
|
|
@@ -1347,16 +1751,17 @@ module PlexRubySDK
|
|
1347
1751
|
|
1348
1752
|
hook_ctx = SDKHooks::HookContext.new(
|
1349
1753
|
base_url: base_url,
|
1350
|
-
oauth2_scopes:
|
1754
|
+
oauth2_scopes: [],
|
1351
1755
|
operation_id: 'get-search-all-libraries',
|
1352
1756
|
security_source: @sdk_configuration.security_source
|
1353
1757
|
)
|
1354
1758
|
|
1355
1759
|
error = T.let(nil, T.nilable(StandardError))
|
1356
|
-
|
1760
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1761
|
+
|
1357
1762
|
|
1358
1763
|
begin
|
1359
|
-
|
1764
|
+
http_response = connection.get(url) do |req|
|
1360
1765
|
req.headers.merge!(headers)
|
1361
1766
|
req.options.timeout = timeout unless timeout.nil?
|
1362
1767
|
req.params = query_params
|
@@ -1372,56 +1777,90 @@ module PlexRubySDK
|
|
1372
1777
|
rescue StandardError => e
|
1373
1778
|
error = e
|
1374
1779
|
ensure
|
1375
|
-
if
|
1376
|
-
|
1780
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1781
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1377
1782
|
error: error,
|
1378
1783
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1379
1784
|
hook_ctx: hook_ctx
|
1380
1785
|
),
|
1381
|
-
response:
|
1786
|
+
response: http_response
|
1382
1787
|
)
|
1383
1788
|
else
|
1384
|
-
|
1789
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1385
1790
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1386
1791
|
hook_ctx: hook_ctx
|
1387
1792
|
),
|
1388
|
-
response:
|
1793
|
+
response: http_response
|
1389
1794
|
)
|
1390
1795
|
end
|
1391
1796
|
|
1392
|
-
if
|
1797
|
+
if http_response.nil?
|
1393
1798
|
raise error if !error.nil?
|
1394
1799
|
raise 'no response'
|
1395
1800
|
end
|
1396
1801
|
end
|
1397
|
-
|
1398
|
-
content_type =
|
1399
|
-
|
1400
|
-
res = ::PlexRubySDK::Operations::GetSearchAllLibrariesResponse.new(
|
1401
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1402
|
-
)
|
1403
|
-
if r.status == 200
|
1802
|
+
|
1803
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1804
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1404
1805
|
if Utils.match_content_type(content_type, 'application/json')
|
1405
|
-
|
1406
|
-
|
1806
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1807
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1808
|
+
hook_ctx: hook_ctx
|
1809
|
+
),
|
1810
|
+
response: http_response
|
1811
|
+
)
|
1812
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetSearchAllLibrariesResponseBody)
|
1813
|
+
response = Models::Operations::GetSearchAllLibrariesResponse.new(
|
1814
|
+
status_code: http_response.status,
|
1815
|
+
content_type: content_type,
|
1816
|
+
raw_response: http_response,
|
1817
|
+
object: obj
|
1818
|
+
)
|
1819
|
+
|
1820
|
+
return response
|
1821
|
+
else
|
1822
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1407
1823
|
end
|
1408
|
-
elsif
|
1824
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
1409
1825
|
if Utils.match_content_type(content_type, 'application/json')
|
1410
|
-
|
1411
|
-
|
1826
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1827
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1828
|
+
hook_ctx: hook_ctx
|
1829
|
+
),
|
1830
|
+
response: http_response
|
1831
|
+
)
|
1832
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetSearchAllLibrariesBadRequest)
|
1833
|
+
obj.raw_response = http_response
|
1834
|
+
throw obj
|
1835
|
+
else
|
1836
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1412
1837
|
end
|
1413
|
-
elsif
|
1838
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
1414
1839
|
if Utils.match_content_type(content_type, 'application/json')
|
1415
|
-
|
1416
|
-
|
1840
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1841
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1842
|
+
hook_ctx: hook_ctx
|
1843
|
+
),
|
1844
|
+
response: http_response
|
1845
|
+
)
|
1846
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetSearchAllLibrariesUnauthorized)
|
1847
|
+
obj.raw_response = http_response
|
1848
|
+
throw obj
|
1849
|
+
else
|
1850
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1417
1851
|
end
|
1418
|
-
|
1852
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
1853
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1854
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1855
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1856
|
+
else
|
1857
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1419
1858
|
|
1420
|
-
|
1859
|
+
end
|
1421
1860
|
end
|
1422
1861
|
|
1423
1862
|
|
1424
|
-
sig { params(request: T.nilable(::
|
1863
|
+
sig { params(request: T.nilable(Models::Operations::GetMediaMetaDataRequest), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMediaMetaDataResponse) }
|
1425
1864
|
def get_media_meta_data(request, timeout_ms = nil)
|
1426
1865
|
# get_media_meta_data - Get Media Metadata
|
1427
1866
|
# This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
|
@@ -1429,13 +1868,13 @@ module PlexRubySDK
|
|
1429
1868
|
url, params = @sdk_configuration.get_server_details
|
1430
1869
|
base_url = Utils.template_url(url, params)
|
1431
1870
|
url = Utils.generate_url(
|
1432
|
-
::
|
1871
|
+
Models::Operations::GetMediaMetaDataRequest,
|
1433
1872
|
base_url,
|
1434
1873
|
'/library/metadata/{ratingKey}',
|
1435
1874
|
request
|
1436
1875
|
)
|
1437
1876
|
headers = {}
|
1438
|
-
query_params = Utils.get_query_params(::
|
1877
|
+
query_params = Utils.get_query_params(Models::Operations::GetMediaMetaDataRequest, request)
|
1439
1878
|
headers['Accept'] = 'application/json'
|
1440
1879
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1441
1880
|
|
@@ -1448,16 +1887,17 @@ module PlexRubySDK
|
|
1448
1887
|
|
1449
1888
|
hook_ctx = SDKHooks::HookContext.new(
|
1450
1889
|
base_url: base_url,
|
1451
|
-
oauth2_scopes:
|
1890
|
+
oauth2_scopes: [],
|
1452
1891
|
operation_id: 'get-media-meta-data',
|
1453
1892
|
security_source: @sdk_configuration.security_source
|
1454
1893
|
)
|
1455
1894
|
|
1456
1895
|
error = T.let(nil, T.nilable(StandardError))
|
1457
|
-
|
1896
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
1897
|
+
|
1458
1898
|
|
1459
1899
|
begin
|
1460
|
-
|
1900
|
+
http_response = connection.get(url) do |req|
|
1461
1901
|
req.headers.merge!(headers)
|
1462
1902
|
req.options.timeout = timeout unless timeout.nil?
|
1463
1903
|
req.params = query_params
|
@@ -1473,68 +1913,101 @@ module PlexRubySDK
|
|
1473
1913
|
rescue StandardError => e
|
1474
1914
|
error = e
|
1475
1915
|
ensure
|
1476
|
-
if
|
1477
|
-
|
1916
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
1917
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1478
1918
|
error: error,
|
1479
1919
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1480
1920
|
hook_ctx: hook_ctx
|
1481
1921
|
),
|
1482
|
-
response:
|
1922
|
+
response: http_response
|
1483
1923
|
)
|
1484
1924
|
else
|
1485
|
-
|
1925
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1486
1926
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1487
1927
|
hook_ctx: hook_ctx
|
1488
1928
|
),
|
1489
|
-
response:
|
1929
|
+
response: http_response
|
1490
1930
|
)
|
1491
1931
|
end
|
1492
1932
|
|
1493
|
-
if
|
1933
|
+
if http_response.nil?
|
1494
1934
|
raise error if !error.nil?
|
1495
1935
|
raise 'no response'
|
1496
1936
|
end
|
1497
1937
|
end
|
1498
|
-
|
1499
|
-
content_type =
|
1500
|
-
|
1501
|
-
res = ::PlexRubySDK::Operations::GetMediaMetaDataResponse.new(
|
1502
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1503
|
-
)
|
1504
|
-
if r.status == 200
|
1938
|
+
|
1939
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1940
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1505
1941
|
if Utils.match_content_type(content_type, 'application/json')
|
1506
|
-
|
1507
|
-
|
1942
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1943
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1944
|
+
hook_ctx: hook_ctx
|
1945
|
+
),
|
1946
|
+
response: http_response
|
1947
|
+
)
|
1948
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetMediaMetaDataResponseBody)
|
1949
|
+
response = Models::Operations::GetMediaMetaDataResponse.new(
|
1950
|
+
status_code: http_response.status,
|
1951
|
+
content_type: content_type,
|
1952
|
+
raw_response: http_response,
|
1953
|
+
object: obj
|
1954
|
+
)
|
1955
|
+
|
1956
|
+
return response
|
1957
|
+
else
|
1958
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1508
1959
|
end
|
1509
|
-
elsif
|
1960
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
1510
1961
|
if Utils.match_content_type(content_type, 'application/json')
|
1511
|
-
|
1512
|
-
|
1962
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1963
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1964
|
+
hook_ctx: hook_ctx
|
1965
|
+
),
|
1966
|
+
response: http_response
|
1967
|
+
)
|
1968
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetMediaMetaDataBadRequest)
|
1969
|
+
obj.raw_response = http_response
|
1970
|
+
throw obj
|
1971
|
+
else
|
1972
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1513
1973
|
end
|
1514
|
-
elsif
|
1974
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
1515
1975
|
if Utils.match_content_type(content_type, 'application/json')
|
1516
|
-
|
1517
|
-
|
1976
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1977
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1978
|
+
hook_ctx: hook_ctx
|
1979
|
+
),
|
1980
|
+
response: http_response
|
1981
|
+
)
|
1982
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetMediaMetaDataUnauthorized)
|
1983
|
+
obj.raw_response = http_response
|
1984
|
+
throw obj
|
1985
|
+
else
|
1986
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1518
1987
|
end
|
1519
|
-
elsif
|
1520
|
-
|
1988
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
1989
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1990
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
1991
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
1992
|
+
else
|
1993
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1521
1994
|
|
1522
|
-
|
1995
|
+
end
|
1523
1996
|
end
|
1524
1997
|
|
1525
1998
|
|
1526
|
-
sig { params(rating_key: ::Integer, timeout_ms: T.nilable(Integer)).returns(::
|
1999
|
+
sig { params(rating_key: ::Integer, timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMediaArtsResponse) }
|
1527
2000
|
def get_media_arts(rating_key, timeout_ms = nil)
|
1528
2001
|
# get_media_arts - Get Media Background Artwork
|
1529
2002
|
# Returns the background artwork for a library item.
|
1530
|
-
request = ::
|
2003
|
+
request = Models::Operations::GetMediaArtsRequest.new(
|
1531
2004
|
|
1532
2005
|
rating_key: rating_key
|
1533
2006
|
)
|
1534
2007
|
url, params = @sdk_configuration.get_server_details
|
1535
2008
|
base_url = Utils.template_url(url, params)
|
1536
2009
|
url = Utils.generate_url(
|
1537
|
-
::
|
2010
|
+
Models::Operations::GetMediaArtsRequest,
|
1538
2011
|
base_url,
|
1539
2012
|
'/library/metadata/{ratingKey}/arts',
|
1540
2013
|
request
|
@@ -1552,16 +2025,17 @@ module PlexRubySDK
|
|
1552
2025
|
|
1553
2026
|
hook_ctx = SDKHooks::HookContext.new(
|
1554
2027
|
base_url: base_url,
|
1555
|
-
oauth2_scopes:
|
2028
|
+
oauth2_scopes: [],
|
1556
2029
|
operation_id: 'get-media-arts',
|
1557
2030
|
security_source: @sdk_configuration.security_source
|
1558
2031
|
)
|
1559
2032
|
|
1560
2033
|
error = T.let(nil, T.nilable(StandardError))
|
1561
|
-
|
2034
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
2035
|
+
|
1562
2036
|
|
1563
2037
|
begin
|
1564
|
-
|
2038
|
+
http_response = connection.get(url) do |req|
|
1565
2039
|
req.headers.merge!(headers)
|
1566
2040
|
req.options.timeout = timeout unless timeout.nil?
|
1567
2041
|
Utils.configure_request_security(req, security)
|
@@ -1576,51 +2050,66 @@ module PlexRubySDK
|
|
1576
2050
|
rescue StandardError => e
|
1577
2051
|
error = e
|
1578
2052
|
ensure
|
1579
|
-
if
|
1580
|
-
|
2053
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
2054
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1581
2055
|
error: error,
|
1582
2056
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1583
2057
|
hook_ctx: hook_ctx
|
1584
2058
|
),
|
1585
|
-
response:
|
2059
|
+
response: http_response
|
1586
2060
|
)
|
1587
2061
|
else
|
1588
|
-
|
2062
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1589
2063
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1590
2064
|
hook_ctx: hook_ctx
|
1591
2065
|
),
|
1592
|
-
response:
|
2066
|
+
response: http_response
|
1593
2067
|
)
|
1594
2068
|
end
|
1595
2069
|
|
1596
|
-
if
|
2070
|
+
if http_response.nil?
|
1597
2071
|
raise error if !error.nil?
|
1598
2072
|
raise 'no response'
|
1599
2073
|
end
|
1600
2074
|
end
|
1601
|
-
|
1602
|
-
content_type =
|
1603
|
-
|
1604
|
-
res = ::PlexRubySDK::Operations::GetMediaArtsResponse.new(
|
1605
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1606
|
-
)
|
1607
|
-
if r.status == 200
|
2075
|
+
|
2076
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2077
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1608
2078
|
if Utils.match_content_type(content_type, 'application/json')
|
1609
|
-
|
1610
|
-
|
2079
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2080
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2081
|
+
hook_ctx: hook_ctx
|
2082
|
+
),
|
2083
|
+
response: http_response
|
2084
|
+
)
|
2085
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetMediaArtsResponseBody)
|
2086
|
+
response = Models::Operations::GetMediaArtsResponse.new(
|
2087
|
+
status_code: http_response.status,
|
2088
|
+
content_type: content_type,
|
2089
|
+
raw_response: http_response,
|
2090
|
+
object: obj
|
2091
|
+
)
|
2092
|
+
|
2093
|
+
return response
|
2094
|
+
else
|
2095
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1611
2096
|
end
|
1612
|
-
elsif
|
1613
|
-
|
2097
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
2098
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2099
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
2100
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2101
|
+
else
|
2102
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1614
2103
|
|
1615
|
-
|
2104
|
+
end
|
1616
2105
|
end
|
1617
2106
|
|
1618
2107
|
|
1619
|
-
sig { params(rating_key: ::Integer, url: T.nilable(::String), request_body: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(::
|
2108
|
+
sig { params(rating_key: ::Integer, url: T.nilable(::String), request_body: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::PostMediaArtsResponse) }
|
1620
2109
|
def post_media_arts(rating_key, url = nil, request_body = nil, timeout_ms = nil)
|
1621
2110
|
# post_media_arts - Upload Media Background Artwork
|
1622
2111
|
# Uploads an image to use as the background artwork for a library item, either from a local file or a remote URL
|
1623
|
-
request = ::
|
2112
|
+
request = Models::Operations::PostMediaArtsRequest.new(
|
1624
2113
|
|
1625
2114
|
rating_key: rating_key,
|
1626
2115
|
url: url,
|
@@ -1629,7 +2118,7 @@ module PlexRubySDK
|
|
1629
2118
|
url, params = @sdk_configuration.get_server_details
|
1630
2119
|
base_url = Utils.template_url(url, params)
|
1631
2120
|
url = Utils.generate_url(
|
1632
|
-
::
|
2121
|
+
Models::Operations::PostMediaArtsRequest,
|
1633
2122
|
base_url,
|
1634
2123
|
'/library/metadata/{ratingKey}/arts',
|
1635
2124
|
request
|
@@ -1645,7 +2134,7 @@ module PlexRubySDK
|
|
1645
2134
|
else
|
1646
2135
|
body = data
|
1647
2136
|
end
|
1648
|
-
query_params = Utils.get_query_params(::
|
2137
|
+
query_params = Utils.get_query_params(Models::Operations::PostMediaArtsRequest, request)
|
1649
2138
|
headers['Accept'] = '*/*'
|
1650
2139
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1651
2140
|
|
@@ -1658,16 +2147,17 @@ module PlexRubySDK
|
|
1658
2147
|
|
1659
2148
|
hook_ctx = SDKHooks::HookContext.new(
|
1660
2149
|
base_url: base_url,
|
1661
|
-
oauth2_scopes:
|
2150
|
+
oauth2_scopes: [],
|
1662
2151
|
operation_id: 'post-media-arts',
|
1663
2152
|
security_source: @sdk_configuration.security_source
|
1664
2153
|
)
|
1665
2154
|
|
1666
2155
|
error = T.let(nil, T.nilable(StandardError))
|
1667
|
-
|
2156
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
2157
|
+
|
1668
2158
|
|
1669
2159
|
begin
|
1670
|
-
|
2160
|
+
http_response = connection.post(url) do |req|
|
1671
2161
|
req.body = body
|
1672
2162
|
req.headers.merge!(headers)
|
1673
2163
|
req.options.timeout = timeout unless timeout.nil?
|
@@ -1684,54 +2174,65 @@ module PlexRubySDK
|
|
1684
2174
|
rescue StandardError => e
|
1685
2175
|
error = e
|
1686
2176
|
ensure
|
1687
|
-
if
|
1688
|
-
|
2177
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
2178
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1689
2179
|
error: error,
|
1690
2180
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1691
2181
|
hook_ctx: hook_ctx
|
1692
2182
|
),
|
1693
|
-
response:
|
2183
|
+
response: http_response
|
1694
2184
|
)
|
1695
2185
|
else
|
1696
|
-
|
2186
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1697
2187
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1698
2188
|
hook_ctx: hook_ctx
|
1699
2189
|
),
|
1700
|
-
response:
|
2190
|
+
response: http_response
|
1701
2191
|
)
|
1702
2192
|
end
|
1703
2193
|
|
1704
|
-
if
|
2194
|
+
if http_response.nil?
|
1705
2195
|
raise error if !error.nil?
|
1706
2196
|
raise 'no response'
|
1707
2197
|
end
|
1708
2198
|
end
|
2199
|
+
|
2200
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2201
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
2202
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2203
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2204
|
+
hook_ctx: hook_ctx
|
2205
|
+
),
|
2206
|
+
response: http_response
|
2207
|
+
)
|
2208
|
+
return Models::Operations::PostMediaArtsResponse.new(
|
2209
|
+
status_code: http_response.status,
|
2210
|
+
content_type: content_type,
|
2211
|
+
raw_response: http_response
|
2212
|
+
)
|
2213
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
2214
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2215
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
2216
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2217
|
+
else
|
2218
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1709
2219
|
|
1710
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1711
|
-
|
1712
|
-
res = ::PlexRubySDK::Operations::PostMediaArtsResponse.new(
|
1713
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1714
|
-
)
|
1715
|
-
if r.status == 200
|
1716
|
-
elsif r.status == 404
|
1717
2220
|
end
|
1718
|
-
|
1719
|
-
res
|
1720
2221
|
end
|
1721
2222
|
|
1722
2223
|
|
1723
|
-
sig { params(rating_key: ::Integer, timeout_ms: T.nilable(Integer)).returns(::
|
2224
|
+
sig { params(rating_key: ::Integer, timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMediaPostersResponse) }
|
1724
2225
|
def get_media_posters(rating_key, timeout_ms = nil)
|
1725
2226
|
# get_media_posters - Get Media Posters
|
1726
2227
|
# Returns the available posters for a library item.
|
1727
|
-
request = ::
|
2228
|
+
request = Models::Operations::GetMediaPostersRequest.new(
|
1728
2229
|
|
1729
2230
|
rating_key: rating_key
|
1730
2231
|
)
|
1731
2232
|
url, params = @sdk_configuration.get_server_details
|
1732
2233
|
base_url = Utils.template_url(url, params)
|
1733
2234
|
url = Utils.generate_url(
|
1734
|
-
::
|
2235
|
+
Models::Operations::GetMediaPostersRequest,
|
1735
2236
|
base_url,
|
1736
2237
|
'/library/metadata/{ratingKey}/posters',
|
1737
2238
|
request
|
@@ -1749,16 +2250,17 @@ module PlexRubySDK
|
|
1749
2250
|
|
1750
2251
|
hook_ctx = SDKHooks::HookContext.new(
|
1751
2252
|
base_url: base_url,
|
1752
|
-
oauth2_scopes:
|
2253
|
+
oauth2_scopes: [],
|
1753
2254
|
operation_id: 'get-media-posters',
|
1754
2255
|
security_source: @sdk_configuration.security_source
|
1755
2256
|
)
|
1756
2257
|
|
1757
2258
|
error = T.let(nil, T.nilable(StandardError))
|
1758
|
-
|
2259
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
2260
|
+
|
1759
2261
|
|
1760
2262
|
begin
|
1761
|
-
|
2263
|
+
http_response = connection.get(url) do |req|
|
1762
2264
|
req.headers.merge!(headers)
|
1763
2265
|
req.options.timeout = timeout unless timeout.nil?
|
1764
2266
|
Utils.configure_request_security(req, security)
|
@@ -1773,51 +2275,66 @@ module PlexRubySDK
|
|
1773
2275
|
rescue StandardError => e
|
1774
2276
|
error = e
|
1775
2277
|
ensure
|
1776
|
-
if
|
1777
|
-
|
2278
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
2279
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1778
2280
|
error: error,
|
1779
2281
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1780
2282
|
hook_ctx: hook_ctx
|
1781
2283
|
),
|
1782
|
-
response:
|
2284
|
+
response: http_response
|
1783
2285
|
)
|
1784
2286
|
else
|
1785
|
-
|
2287
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1786
2288
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1787
2289
|
hook_ctx: hook_ctx
|
1788
2290
|
),
|
1789
|
-
response:
|
2291
|
+
response: http_response
|
1790
2292
|
)
|
1791
2293
|
end
|
1792
2294
|
|
1793
|
-
if
|
2295
|
+
if http_response.nil?
|
1794
2296
|
raise error if !error.nil?
|
1795
2297
|
raise 'no response'
|
1796
2298
|
end
|
1797
2299
|
end
|
1798
|
-
|
1799
|
-
content_type =
|
1800
|
-
|
1801
|
-
res = ::PlexRubySDK::Operations::GetMediaPostersResponse.new(
|
1802
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1803
|
-
)
|
1804
|
-
if r.status == 200
|
2300
|
+
|
2301
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2302
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
1805
2303
|
if Utils.match_content_type(content_type, 'application/json')
|
1806
|
-
|
1807
|
-
|
2304
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2305
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2306
|
+
hook_ctx: hook_ctx
|
2307
|
+
),
|
2308
|
+
response: http_response
|
2309
|
+
)
|
2310
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetMediaPostersResponseBody)
|
2311
|
+
response = Models::Operations::GetMediaPostersResponse.new(
|
2312
|
+
status_code: http_response.status,
|
2313
|
+
content_type: content_type,
|
2314
|
+
raw_response: http_response,
|
2315
|
+
object: obj
|
2316
|
+
)
|
2317
|
+
|
2318
|
+
return response
|
2319
|
+
else
|
2320
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
1808
2321
|
end
|
1809
|
-
elsif
|
1810
|
-
|
2322
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
2323
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2324
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
2325
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2326
|
+
else
|
2327
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1811
2328
|
|
1812
|
-
|
2329
|
+
end
|
1813
2330
|
end
|
1814
2331
|
|
1815
2332
|
|
1816
|
-
sig { params(rating_key: ::Integer, url: T.nilable(::String), request_body: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(::
|
2333
|
+
sig { params(rating_key: ::Integer, url: T.nilable(::String), request_body: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::PostMediaPosterResponse) }
|
1817
2334
|
def post_media_poster(rating_key, url = nil, request_body = nil, timeout_ms = nil)
|
1818
2335
|
# post_media_poster - Upload Media Poster
|
1819
2336
|
# Uploads a poster to a library item, either from a local file or a remote URL
|
1820
|
-
request = ::
|
2337
|
+
request = Models::Operations::PostMediaPosterRequest.new(
|
1821
2338
|
|
1822
2339
|
rating_key: rating_key,
|
1823
2340
|
url: url,
|
@@ -1826,7 +2343,7 @@ module PlexRubySDK
|
|
1826
2343
|
url, params = @sdk_configuration.get_server_details
|
1827
2344
|
base_url = Utils.template_url(url, params)
|
1828
2345
|
url = Utils.generate_url(
|
1829
|
-
::
|
2346
|
+
Models::Operations::PostMediaPosterRequest,
|
1830
2347
|
base_url,
|
1831
2348
|
'/library/metadata/{ratingKey}/posters',
|
1832
2349
|
request
|
@@ -1842,7 +2359,7 @@ module PlexRubySDK
|
|
1842
2359
|
else
|
1843
2360
|
body = data
|
1844
2361
|
end
|
1845
|
-
query_params = Utils.get_query_params(::
|
2362
|
+
query_params = Utils.get_query_params(Models::Operations::PostMediaPosterRequest, request)
|
1846
2363
|
headers['Accept'] = '*/*'
|
1847
2364
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1848
2365
|
|
@@ -1855,16 +2372,17 @@ module PlexRubySDK
|
|
1855
2372
|
|
1856
2373
|
hook_ctx = SDKHooks::HookContext.new(
|
1857
2374
|
base_url: base_url,
|
1858
|
-
oauth2_scopes:
|
2375
|
+
oauth2_scopes: [],
|
1859
2376
|
operation_id: 'post-media-poster',
|
1860
2377
|
security_source: @sdk_configuration.security_source
|
1861
2378
|
)
|
1862
2379
|
|
1863
2380
|
error = T.let(nil, T.nilable(StandardError))
|
1864
|
-
|
2381
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
2382
|
+
|
1865
2383
|
|
1866
2384
|
begin
|
1867
|
-
|
2385
|
+
http_response = connection.post(url) do |req|
|
1868
2386
|
req.body = body
|
1869
2387
|
req.headers.merge!(headers)
|
1870
2388
|
req.options.timeout = timeout unless timeout.nil?
|
@@ -1881,48 +2399,59 @@ module PlexRubySDK
|
|
1881
2399
|
rescue StandardError => e
|
1882
2400
|
error = e
|
1883
2401
|
ensure
|
1884
|
-
if
|
1885
|
-
|
2402
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
2403
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1886
2404
|
error: error,
|
1887
2405
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1888
2406
|
hook_ctx: hook_ctx
|
1889
2407
|
),
|
1890
|
-
response:
|
2408
|
+
response: http_response
|
1891
2409
|
)
|
1892
2410
|
else
|
1893
|
-
|
2411
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1894
2412
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1895
2413
|
hook_ctx: hook_ctx
|
1896
2414
|
),
|
1897
|
-
response:
|
2415
|
+
response: http_response
|
1898
2416
|
)
|
1899
2417
|
end
|
1900
2418
|
|
1901
|
-
if
|
2419
|
+
if http_response.nil?
|
1902
2420
|
raise error if !error.nil?
|
1903
2421
|
raise 'no response'
|
1904
2422
|
end
|
1905
2423
|
end
|
2424
|
+
|
2425
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2426
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
2427
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2428
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2429
|
+
hook_ctx: hook_ctx
|
2430
|
+
),
|
2431
|
+
response: http_response
|
2432
|
+
)
|
2433
|
+
return Models::Operations::PostMediaPosterResponse.new(
|
2434
|
+
status_code: http_response.status,
|
2435
|
+
content_type: content_type,
|
2436
|
+
raw_response: http_response
|
2437
|
+
)
|
2438
|
+
elsif Utils.match_status_code(http_response.status, ['404', '4XX'])
|
2439
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2440
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
2441
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2442
|
+
else
|
2443
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
1906
2444
|
|
1907
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1908
|
-
|
1909
|
-
res = ::PlexRubySDK::Operations::PostMediaPosterResponse.new(
|
1910
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1911
|
-
)
|
1912
|
-
if r.status == 200
|
1913
|
-
elsif r.status == 404
|
1914
2445
|
end
|
1915
|
-
|
1916
|
-
res
|
1917
2446
|
end
|
1918
2447
|
|
1919
2448
|
|
1920
|
-
sig { params(rating_key: ::Float, include_elements: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(::
|
2449
|
+
sig { params(rating_key: ::Float, include_elements: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMetadataChildrenResponse) }
|
1921
2450
|
def get_metadata_children(rating_key, include_elements = nil, timeout_ms = nil)
|
1922
2451
|
# get_metadata_children - Get Items Children
|
1923
2452
|
# This endpoint will return the children of of a library item specified with the ratingKey.
|
1924
2453
|
#
|
1925
|
-
request = ::
|
2454
|
+
request = Models::Operations::GetMetadataChildrenRequest.new(
|
1926
2455
|
|
1927
2456
|
rating_key: rating_key,
|
1928
2457
|
include_elements: include_elements
|
@@ -1930,13 +2459,13 @@ module PlexRubySDK
|
|
1930
2459
|
url, params = @sdk_configuration.get_server_details
|
1931
2460
|
base_url = Utils.template_url(url, params)
|
1932
2461
|
url = Utils.generate_url(
|
1933
|
-
::
|
2462
|
+
Models::Operations::GetMetadataChildrenRequest,
|
1934
2463
|
base_url,
|
1935
2464
|
'/library/metadata/{ratingKey}/children',
|
1936
2465
|
request
|
1937
2466
|
)
|
1938
2467
|
headers = {}
|
1939
|
-
query_params = Utils.get_query_params(::
|
2468
|
+
query_params = Utils.get_query_params(Models::Operations::GetMetadataChildrenRequest, request)
|
1940
2469
|
headers['Accept'] = 'application/json'
|
1941
2470
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1942
2471
|
|
@@ -1949,16 +2478,17 @@ module PlexRubySDK
|
|
1949
2478
|
|
1950
2479
|
hook_ctx = SDKHooks::HookContext.new(
|
1951
2480
|
base_url: base_url,
|
1952
|
-
oauth2_scopes:
|
2481
|
+
oauth2_scopes: [],
|
1953
2482
|
operation_id: 'getMetadataChildren',
|
1954
2483
|
security_source: @sdk_configuration.security_source
|
1955
2484
|
)
|
1956
2485
|
|
1957
2486
|
error = T.let(nil, T.nilable(StandardError))
|
1958
|
-
|
2487
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
2488
|
+
|
1959
2489
|
|
1960
2490
|
begin
|
1961
|
-
|
2491
|
+
http_response = connection.get(url) do |req|
|
1962
2492
|
req.headers.merge!(headers)
|
1963
2493
|
req.options.timeout = timeout unless timeout.nil?
|
1964
2494
|
req.params = query_params
|
@@ -1974,61 +2504,95 @@ module PlexRubySDK
|
|
1974
2504
|
rescue StandardError => e
|
1975
2505
|
error = e
|
1976
2506
|
ensure
|
1977
|
-
if
|
1978
|
-
|
2507
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
2508
|
+
http_response = @sdk_configuration.hooks.after_error(
|
1979
2509
|
error: error,
|
1980
2510
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1981
2511
|
hook_ctx: hook_ctx
|
1982
2512
|
),
|
1983
|
-
response:
|
2513
|
+
response: http_response
|
1984
2514
|
)
|
1985
2515
|
else
|
1986
|
-
|
2516
|
+
http_response = @sdk_configuration.hooks.after_success(
|
1987
2517
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1988
2518
|
hook_ctx: hook_ctx
|
1989
2519
|
),
|
1990
|
-
response:
|
2520
|
+
response: http_response
|
1991
2521
|
)
|
1992
2522
|
end
|
1993
2523
|
|
1994
|
-
if
|
2524
|
+
if http_response.nil?
|
1995
2525
|
raise error if !error.nil?
|
1996
2526
|
raise 'no response'
|
1997
2527
|
end
|
1998
2528
|
end
|
1999
|
-
|
2000
|
-
content_type =
|
2001
|
-
|
2002
|
-
res = ::PlexRubySDK::Operations::GetMetadataChildrenResponse.new(
|
2003
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
2004
|
-
)
|
2005
|
-
if r.status == 200
|
2529
|
+
|
2530
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2531
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
2006
2532
|
if Utils.match_content_type(content_type, 'application/json')
|
2007
|
-
|
2008
|
-
|
2533
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2534
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2535
|
+
hook_ctx: hook_ctx
|
2536
|
+
),
|
2537
|
+
response: http_response
|
2538
|
+
)
|
2539
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetMetadataChildrenResponseBody)
|
2540
|
+
response = Models::Operations::GetMetadataChildrenResponse.new(
|
2541
|
+
status_code: http_response.status,
|
2542
|
+
content_type: content_type,
|
2543
|
+
raw_response: http_response,
|
2544
|
+
object: obj
|
2545
|
+
)
|
2546
|
+
|
2547
|
+
return response
|
2548
|
+
else
|
2549
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
2009
2550
|
end
|
2010
|
-
elsif
|
2551
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
2011
2552
|
if Utils.match_content_type(content_type, 'application/json')
|
2012
|
-
|
2013
|
-
|
2553
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2554
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2555
|
+
hook_ctx: hook_ctx
|
2556
|
+
),
|
2557
|
+
response: http_response
|
2558
|
+
)
|
2559
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetMetadataChildrenBadRequest)
|
2560
|
+
obj.raw_response = http_response
|
2561
|
+
throw obj
|
2562
|
+
else
|
2563
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
2014
2564
|
end
|
2015
|
-
elsif
|
2565
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
2016
2566
|
if Utils.match_content_type(content_type, 'application/json')
|
2017
|
-
|
2018
|
-
|
2567
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2568
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2569
|
+
hook_ctx: hook_ctx
|
2570
|
+
),
|
2571
|
+
response: http_response
|
2572
|
+
)
|
2573
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetMetadataChildrenUnauthorized)
|
2574
|
+
obj.raw_response = http_response
|
2575
|
+
throw obj
|
2576
|
+
else
|
2577
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
2019
2578
|
end
|
2020
|
-
|
2579
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
2580
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2581
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
2582
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2583
|
+
else
|
2584
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
2021
2585
|
|
2022
|
-
|
2586
|
+
end
|
2023
2587
|
end
|
2024
2588
|
|
2025
2589
|
|
2026
|
-
sig { params(type: ::
|
2590
|
+
sig { params(type: Models::Operations::GetTopWatchedContentQueryParamType, include_guids: T.nilable(::Integer), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTopWatchedContentResponse) }
|
2027
2591
|
def get_top_watched_content(type, include_guids = nil, timeout_ms = nil)
|
2028
2592
|
# get_top_watched_content - Get Top Watched Content
|
2029
2593
|
# This endpoint will return the top watched content from libraries of a certain type
|
2030
2594
|
#
|
2031
|
-
request = ::
|
2595
|
+
request = Models::Operations::GetTopWatchedContentRequest.new(
|
2032
2596
|
|
2033
2597
|
type: type,
|
2034
2598
|
include_guids: include_guids
|
@@ -2037,7 +2601,7 @@ module PlexRubySDK
|
|
2037
2601
|
base_url = Utils.template_url(url, params)
|
2038
2602
|
url = "#{base_url}/library/all/top"
|
2039
2603
|
headers = {}
|
2040
|
-
query_params = Utils.get_query_params(::
|
2604
|
+
query_params = Utils.get_query_params(Models::Operations::GetTopWatchedContentRequest, request)
|
2041
2605
|
headers['Accept'] = 'application/json'
|
2042
2606
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2043
2607
|
|
@@ -2050,16 +2614,17 @@ module PlexRubySDK
|
|
2050
2614
|
|
2051
2615
|
hook_ctx = SDKHooks::HookContext.new(
|
2052
2616
|
base_url: base_url,
|
2053
|
-
oauth2_scopes:
|
2617
|
+
oauth2_scopes: [],
|
2054
2618
|
operation_id: 'getTopWatchedContent',
|
2055
2619
|
security_source: @sdk_configuration.security_source
|
2056
2620
|
)
|
2057
2621
|
|
2058
2622
|
error = T.let(nil, T.nilable(StandardError))
|
2059
|
-
|
2623
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
2624
|
+
|
2060
2625
|
|
2061
2626
|
begin
|
2062
|
-
|
2627
|
+
http_response = connection.get(url) do |req|
|
2063
2628
|
req.headers.merge!(headers)
|
2064
2629
|
req.options.timeout = timeout unless timeout.nil?
|
2065
2630
|
req.params = query_params
|
@@ -2075,52 +2640,86 @@ module PlexRubySDK
|
|
2075
2640
|
rescue StandardError => e
|
2076
2641
|
error = e
|
2077
2642
|
ensure
|
2078
|
-
if
|
2079
|
-
|
2643
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
2644
|
+
http_response = @sdk_configuration.hooks.after_error(
|
2080
2645
|
error: error,
|
2081
2646
|
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2082
2647
|
hook_ctx: hook_ctx
|
2083
2648
|
),
|
2084
|
-
response:
|
2649
|
+
response: http_response
|
2085
2650
|
)
|
2086
2651
|
else
|
2087
|
-
|
2652
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2088
2653
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2089
2654
|
hook_ctx: hook_ctx
|
2090
2655
|
),
|
2091
|
-
response:
|
2656
|
+
response: http_response
|
2092
2657
|
)
|
2093
2658
|
end
|
2094
2659
|
|
2095
|
-
if
|
2660
|
+
if http_response.nil?
|
2096
2661
|
raise error if !error.nil?
|
2097
2662
|
raise 'no response'
|
2098
2663
|
end
|
2099
2664
|
end
|
2100
|
-
|
2101
|
-
content_type =
|
2102
|
-
|
2103
|
-
res = ::PlexRubySDK::Operations::GetTopWatchedContentResponse.new(
|
2104
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
2105
|
-
)
|
2106
|
-
if r.status == 200
|
2665
|
+
|
2666
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2667
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
2107
2668
|
if Utils.match_content_type(content_type, 'application/json')
|
2108
|
-
|
2109
|
-
|
2669
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2670
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2671
|
+
hook_ctx: hook_ctx
|
2672
|
+
),
|
2673
|
+
response: http_response
|
2674
|
+
)
|
2675
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Operations::GetTopWatchedContentResponseBody)
|
2676
|
+
response = Models::Operations::GetTopWatchedContentResponse.new(
|
2677
|
+
status_code: http_response.status,
|
2678
|
+
content_type: content_type,
|
2679
|
+
raw_response: http_response,
|
2680
|
+
object: obj
|
2681
|
+
)
|
2682
|
+
|
2683
|
+
return response
|
2684
|
+
else
|
2685
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
2110
2686
|
end
|
2111
|
-
elsif
|
2687
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
2112
2688
|
if Utils.match_content_type(content_type, 'application/json')
|
2113
|
-
|
2114
|
-
|
2689
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2690
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2691
|
+
hook_ctx: hook_ctx
|
2692
|
+
),
|
2693
|
+
response: http_response
|
2694
|
+
)
|
2695
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetTopWatchedContentBadRequest)
|
2696
|
+
obj.raw_response = http_response
|
2697
|
+
throw obj
|
2698
|
+
else
|
2699
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
2115
2700
|
end
|
2116
|
-
elsif
|
2701
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
2117
2702
|
if Utils.match_content_type(content_type, 'application/json')
|
2118
|
-
|
2119
|
-
|
2703
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2704
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2705
|
+
hook_ctx: hook_ctx
|
2706
|
+
),
|
2707
|
+
response: http_response
|
2708
|
+
)
|
2709
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::GetTopWatchedContentUnauthorized)
|
2710
|
+
obj.raw_response = http_response
|
2711
|
+
throw obj
|
2712
|
+
else
|
2713
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
2120
2714
|
end
|
2121
|
-
|
2715
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
2716
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2717
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
2718
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
2719
|
+
else
|
2720
|
+
raise ::PlexRubySDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
2122
2721
|
|
2123
|
-
|
2722
|
+
end
|
2124
2723
|
end
|
2125
2724
|
end
|
2126
2725
|
end
|