plex_ruby_sdk 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/plex_ruby_sdk/activities.rb +116 -0
- data/lib/plex_ruby_sdk/authentication.rb +221 -0
- data/lib/plex_ruby_sdk/butler.rb +243 -0
- data/lib/plex_ruby_sdk/hubs.rb +126 -0
- data/lib/plex_ruby_sdk/library.rb +692 -0
- data/lib/plex_ruby_sdk/log.rb +174 -0
- data/lib/plex_ruby_sdk/media.rb +250 -0
- data/lib/plex_ruby_sdk/models/operations/account.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/activity.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_mediacontainer.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_metadata.rb +60 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_request.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/addplaylistcontents_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/applyupdates_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/applyupdates_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/applyupdates_request.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/applyupdates_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/applyupdates_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/applyupdates_updater_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/autoselectsubtitle.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/billing.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/butlertask.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/butlertasks.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_activities_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/cancelserveractivities_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/checkforupdates_updater_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/clearplaylistcontents_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/connections.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/context.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/country.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_metadata.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_queryparam_type.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_request.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/createplaylist_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/defaultsubtitleaccessibility.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/defaultsubtitleforced.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_request.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/deletelibrary_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/deleteplaylist_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/device.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/director.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/directory.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/download.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_log_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/enablepapertrail_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/feature.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/features.rb +78 -0
- data/lib/plex_ruby_sdk/models/operations/field.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/fieldtype.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/filter.rb +22 -0
- data/lib/plex_ruby_sdk/models/operations/force.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/friend.rb +60 -0
- data/lib/plex_ruby_sdk/models/operations/genre.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/geodata.rb +57 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_directory.rb +84 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_mediacontainer.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_media_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_request.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_banner_image_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_directory.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_filter.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_mediacontainer.rb +66 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_request.rb +31 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_type.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_details_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_country.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_director.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_genre.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_media.rb +63 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +192 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_part.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_request.rb +58 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_role.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_writer.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_directory.rb +63 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_mediacontainer.rb +153 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_media_providers_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_country.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_director.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_genre.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_media.rb +72 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_mediacontainer.rb +48 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_metadata.rb +120 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_part.rb +54 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_role.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_writer.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_request.rb +29 -0
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_refresh_library_metadata_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_mediacontainer.rb +60 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_metadata.rb +81 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_request.rb +35 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_search_library_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_mediacontainer.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_requesttimeout.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_identity_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_plex_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb +41 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_media_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_request.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_thumb_image_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_request.rb +65 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_responsebody.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_watch_list_watchlist_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getavailableclients_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_account.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_device.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_mediacontainer.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_request.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_statistics_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getbandwidthstatistics_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_butler_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getbutlertasks_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_plex_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getcompanionsdata_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_mediacontainer.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getdevices_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getfilehash_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getfilehash_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getfilehash_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getfilehash_request.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getfilehash_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/getfilehash_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getgeodata_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getgeodata_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getgeodata_geodata.rb +57 -0
- data/lib/plex_ruby_sdk/models/operations/getgeodata_plex_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getgeodata_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getgeodata_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_hubs_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_mediacontainer.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_metadata.rb +72 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_request.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getglobalhubs_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gethomedata_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gethomedata_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gethomedata_plex_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gethomedata_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/gethomedata_responsebody.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/gethomedata_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_country.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_director.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_genre.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_hub.rb +57 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_hubs_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_media.rb +72 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_mediacontainer.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_metadata.rb +123 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_part.rb +51 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_request.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_role.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getlibraryhubs_writer.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_directory.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_mediacontainer.rb +90 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_metadata.rb +102 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_request.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getmetadatachildren_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getmyplexaccount_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_guids.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_media.rb +66 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_mediacontainer.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_metadata.rb +129 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_part.rb +48 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_stream.rb +90 -0
- data/lib/plex_ruby_sdk/models/operations/getondeck_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getpin_authpincontainer.rb +60 -0
- data/lib/plex_ruby_sdk/models/operations/getpin_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getpin_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getpin_request.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getpin_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_metadata.rb +66 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylist_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_country.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_director.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_genre.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_media.rb +72 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_mediacontainer.rb +48 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_metadata.rb +117 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_part.rb +51 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_request.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_role.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_writer.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_metadata.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_request.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getplaylists_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_mediacontainer.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_metadata.rb +117 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_request.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_request.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getresizedphoto_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_request.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_statistics_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getresourcesstatistics_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_country.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_director.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_genre.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_media.rb +66 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_mediacontainer.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_metadata.rb +123 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_part.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_role.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_search_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsearchresults_writer.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_activities_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserveractivities_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getservercapabilities_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_server.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getserverlist_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_server_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getserverpreferences_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_metadata.rb +78 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_request.rb +38 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_sessions_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsessionhistory_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_media.rb +45 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_metadata.rb +132 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_part.rb +51 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_sessions_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_stream.rb +81 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsessions_user.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_authentication_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/getsourceconnectioninformation_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_device.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_mediacontainer.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_request.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_statistics_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getstatistics_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettimeline_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettimeline_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettimeline_request.rb +51 -0
- data/lib/plex_ruby_sdk/models/operations/gettimeline_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/gettimeline_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettimeline_video_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_authpincontainer.rb +60 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_geodata.rb +57 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_plex_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_request.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_responsebody.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_response_status.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_authentication_status.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_features.rb +78 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_status.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_subscription.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb +146 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_country.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_genre.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_guids.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_library_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_mediacontainer.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_metadata.rb +117 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_request.rb +34 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_role.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_mediacontainer.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_sessions_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettranscodesessions_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_authentication_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_queryparam_type.rb +17 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_request.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/gettransienttoken_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_mediacontainer.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_response.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_responsebody.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/getupdatestatus_updater_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_plex_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/getuserfriends_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/guids.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/hub.rb +54 -0
- data/lib/plex_ruby_sdk/models/operations/image.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/includecollections.rb +22 -0
- data/lib/plex_ruby_sdk/models/operations/includedetails.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/includeexternalmedia.rb +22 -0
- data/lib/plex_ruby_sdk/models/operations/includeguids.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/includehttps.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/includeipv6.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/includemeta.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/includerelay.rb +23 -0
- data/lib/plex_ruby_sdk/models/operations/internalpaymentmethod.rb +23 -0
- data/lib/plex_ruby_sdk/models/operations/level.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/libtype.rb +22 -0
- data/lib/plex_ruby_sdk/models/operations/location.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/logline_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/logline_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/logline_log_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/logline_request.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/logline_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/logline_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/logmultiline_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/logmultiline_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/logmultiline_log_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/logmultiline_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/logmultiline_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/mailingliststatus.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/markplayed_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/markplayed_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/markplayed_media_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/markplayed_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/markplayed_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/markplayed_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/markunplayed_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/markunplayed_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/markunplayed_media_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/markunplayed_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/markunplayed_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/markunplayed_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/media.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/mediacontainer.rb +174 -0
- data/lib/plex_ruby_sdk/models/operations/mediaprovider.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/mediareviewsvisibility.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/metadata.rb +129 -0
- data/lib/plex_ruby_sdk/models/operations/minsize.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/myplex.rb +57 -0
- data/lib/plex_ruby_sdk/models/operations/onlytransient.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/operator.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/part.rb +51 -0
- data/lib/plex_ruby_sdk/models/operations/pastsubscription.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/pathparam_taskname.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performsearch_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/performsearch_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performsearch_request.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performsearch_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/performsearch_search_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performsearch_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_request.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_search_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/performvoicesearch_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/pivot.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/player.rb +66 -0
- data/lib/plex_ruby_sdk/models/operations/playlisttype.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/plexdevice.rb +96 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_features.rb +78 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_response_status.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_status.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_subscription.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_autoselectsubtitle.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_badrequest.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_defaultsubtitleaccessibility.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_defaultsubtitleforced.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_errors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb +78 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mailingliststatus.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mediareviewsvisibility.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_requestbody.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_response.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_services.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_state.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_status.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_subscription.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_unauthorized.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userplexaccount.rb +152 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userprofile.rb +48 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_watchedindicator.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/producer.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/provider.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_filter.rb +22 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_force.rb +22 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_onlytransient.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_smart.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/ratings.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/release.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/responsebody.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/role.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/scope.rb +17 -0
- data/lib/plex_ruby_sdk/models/operations/server.rb +54 -0
- data/lib/plex_ruby_sdk/models/operations/services.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/session.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/setting.rb +51 -0
- data/lib/plex_ruby_sdk/models/operations/sharedservers.rb +23 -0
- data/lib/plex_ruby_sdk/models/operations/sharedsources.rb +23 -0
- data/lib/plex_ruby_sdk/models/operations/skip.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/smart.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/sort.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/startalltasks_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/startalltasks_butler_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/startalltasks_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/startalltasks_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/startalltasks_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/starttask_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/starttask_butler_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/starttask_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/starttask_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/starttask_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/starttask_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_request.rb +69 -0
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/startuniversaltranscode_video_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/state.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/statisticsbandwidth.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/statisticsmedia.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/statisticsresources.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/status.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_butler_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/stopalltasks_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stoptask_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stoptask_butler_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/stoptask_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/stoptask_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stoptask_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/stoptask_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_request.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_sessions_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/stoptranscodesession_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/stream.rb +117 -0
- data/lib/plex_ruby_sdk/models/operations/subscription.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/tag.rb +35 -0
- data/lib/plex_ruby_sdk/models/operations/taskname.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/tonight.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/transcodesession.rb +93 -0
- data/lib/plex_ruby_sdk/models/operations/trials.rb +23 -0
- data/lib/plex_ruby_sdk/models/operations/type.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_request.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/updateplaylist_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_media_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_request.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/updateplayprogress_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_badrequest.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_playlists_errors.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_request.rb +37 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_response.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_unauthorized.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/upscale.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/user.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/userprofile.rb +48 -0
- data/lib/plex_ruby_sdk/models/operations/watchedindicator.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/writer.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations.rb +694 -0
- data/lib/plex_ruby_sdk/models/shared/security.rb +24 -0
- data/lib/plex_ruby_sdk/models/shared.rb +10 -0
- data/lib/plex_ruby_sdk/playlists.rb +480 -0
- data/lib/plex_ruby_sdk/plex.rb +367 -0
- data/lib/plex_ruby_sdk/plex_api.rb +134 -0
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +56 -0
- data/lib/plex_ruby_sdk/search.rb +175 -0
- data/lib/plex_ruby_sdk/server.rb +390 -0
- data/lib/plex_ruby_sdk/server_variables/server_protocol.rb +18 -0
- data/lib/plex_ruby_sdk/server_variables.rb +10 -0
- data/lib/plex_ruby_sdk/sessions.rb +201 -0
- data/lib/plex_ruby_sdk/statistics.rb +163 -0
- data/lib/plex_ruby_sdk/updater.rb +152 -0
- data/lib/plex_ruby_sdk/utils/metadata_fields.rb +150 -0
- data/lib/plex_ruby_sdk/utils/t.rb +59 -0
- data/lib/plex_ruby_sdk/utils/utils.rb +772 -0
- data/lib/plex_ruby_sdk/video.rb +100 -0
- data/lib/plex_ruby_sdk/watchlist.rb +77 -0
- data/lib/plex_ruby_sdk.rb +32 -0
- metadata +883 -0
@@ -0,0 +1,175 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday/multipart'
|
8
|
+
require 'sorbet-runtime'
|
9
|
+
|
10
|
+
module PlexRubySDK
|
11
|
+
extend T::Sig
|
12
|
+
class Search
|
13
|
+
extend T::Sig
|
14
|
+
# API Calls that perform search operations with Plex Media Server
|
15
|
+
#
|
16
|
+
|
17
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
18
|
+
def initialize(sdk_config)
|
19
|
+
@sdk_configuration = sdk_config
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
sig { params(query: ::String, section_id: T.nilable(::Float), limit: T.nilable(::Float)).returns(::PlexRubySDK::Operations::PerformSearchResponse) }
|
24
|
+
def perform_search(query, section_id = nil, limit = nil)
|
25
|
+
# perform_search - Perform a search
|
26
|
+
# This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
27
|
+
#
|
28
|
+
# In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
29
|
+
#
|
30
|
+
# - `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
31
|
+
# - `section`: There are multiple identical results from different sections.
|
32
|
+
# - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language).
|
33
|
+
# - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor`
|
34
|
+
# - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold").
|
35
|
+
# - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID.
|
36
|
+
#
|
37
|
+
# This request is intended to be very fast, and called as the user types.
|
38
|
+
#
|
39
|
+
request = ::PlexRubySDK::Operations::PerformSearchRequest.new(
|
40
|
+
|
41
|
+
query: query,
|
42
|
+
section_id: section_id,
|
43
|
+
limit: limit
|
44
|
+
)
|
45
|
+
url, params = @sdk_configuration.get_server_details
|
46
|
+
base_url = Utils.template_url(url, params)
|
47
|
+
url = "#{base_url}/hubs/search"
|
48
|
+
headers = {}
|
49
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::PerformSearchRequest, request, @sdk_configuration.globals)
|
50
|
+
headers['Accept'] = 'application/json'
|
51
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
52
|
+
|
53
|
+
r = @sdk_configuration.client.get(url) do |req|
|
54
|
+
req.headers = headers
|
55
|
+
req.params = query_params
|
56
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
57
|
+
end
|
58
|
+
|
59
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
60
|
+
|
61
|
+
res = ::PlexRubySDK::Operations::PerformSearchResponse.new(
|
62
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
63
|
+
)
|
64
|
+
if r.status == 200
|
65
|
+
elsif r.status == 400
|
66
|
+
if Utils.match_content_type(content_type, 'application/json')
|
67
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PerformSearchBadRequest)
|
68
|
+
res.bad_request = out
|
69
|
+
end
|
70
|
+
elsif r.status == 401
|
71
|
+
if Utils.match_content_type(content_type, 'application/json')
|
72
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PerformSearchUnauthorized)
|
73
|
+
res.unauthorized = out
|
74
|
+
end
|
75
|
+
end
|
76
|
+
res
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
sig { params(query: ::String, section_id: T.nilable(::Float), limit: T.nilable(::Float)).returns(::PlexRubySDK::Operations::PerformVoiceSearchResponse) }
|
81
|
+
def perform_voice_search(query, section_id = nil, limit = nil)
|
82
|
+
# perform_voice_search - Perform a voice search
|
83
|
+
# This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
84
|
+
# It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint.
|
85
|
+
# Whenever possible, clients should limit the search to the appropriate type.
|
86
|
+
# Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality.
|
87
|
+
#
|
88
|
+
request = ::PlexRubySDK::Operations::PerformVoiceSearchRequest.new(
|
89
|
+
|
90
|
+
query: query,
|
91
|
+
section_id: section_id,
|
92
|
+
limit: limit
|
93
|
+
)
|
94
|
+
url, params = @sdk_configuration.get_server_details
|
95
|
+
base_url = Utils.template_url(url, params)
|
96
|
+
url = "#{base_url}/hubs/search/voice"
|
97
|
+
headers = {}
|
98
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::PerformVoiceSearchRequest, request, @sdk_configuration.globals)
|
99
|
+
headers['Accept'] = 'application/json'
|
100
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
101
|
+
|
102
|
+
r = @sdk_configuration.client.get(url) do |req|
|
103
|
+
req.headers = headers
|
104
|
+
req.params = query_params
|
105
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
106
|
+
end
|
107
|
+
|
108
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
109
|
+
|
110
|
+
res = ::PlexRubySDK::Operations::PerformVoiceSearchResponse.new(
|
111
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
112
|
+
)
|
113
|
+
if r.status == 200
|
114
|
+
elsif r.status == 400
|
115
|
+
if Utils.match_content_type(content_type, 'application/json')
|
116
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PerformVoiceSearchBadRequest)
|
117
|
+
res.bad_request = out
|
118
|
+
end
|
119
|
+
elsif r.status == 401
|
120
|
+
if Utils.match_content_type(content_type, 'application/json')
|
121
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PerformVoiceSearchUnauthorized)
|
122
|
+
res.unauthorized = out
|
123
|
+
end
|
124
|
+
end
|
125
|
+
res
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
sig { params(query: ::String).returns(::PlexRubySDK::Operations::GetSearchResultsResponse) }
|
130
|
+
def get_search_results(query)
|
131
|
+
# get_search_results - Get Search Results
|
132
|
+
# This will search the database for the string provided.
|
133
|
+
request = ::PlexRubySDK::Operations::GetSearchResultsRequest.new(
|
134
|
+
|
135
|
+
query: query
|
136
|
+
)
|
137
|
+
url, params = @sdk_configuration.get_server_details
|
138
|
+
base_url = Utils.template_url(url, params)
|
139
|
+
url = "#{base_url}/search"
|
140
|
+
headers = {}
|
141
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetSearchResultsRequest, request, @sdk_configuration.globals)
|
142
|
+
headers['Accept'] = 'application/json'
|
143
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
144
|
+
|
145
|
+
r = @sdk_configuration.client.get(url) do |req|
|
146
|
+
req.headers = headers
|
147
|
+
req.params = query_params
|
148
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
149
|
+
end
|
150
|
+
|
151
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
152
|
+
|
153
|
+
res = ::PlexRubySDK::Operations::GetSearchResultsResponse.new(
|
154
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
155
|
+
)
|
156
|
+
if r.status == 200
|
157
|
+
if Utils.match_content_type(content_type, 'application/json')
|
158
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchResultsResponseBody)
|
159
|
+
res.object = out
|
160
|
+
end
|
161
|
+
elsif r.status == 400
|
162
|
+
if Utils.match_content_type(content_type, 'application/json')
|
163
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchResultsBadRequest)
|
164
|
+
res.bad_request = out
|
165
|
+
end
|
166
|
+
elsif r.status == 401
|
167
|
+
if Utils.match_content_type(content_type, 'application/json')
|
168
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchResultsUnauthorized)
|
169
|
+
res.unauthorized = out
|
170
|
+
end
|
171
|
+
end
|
172
|
+
res
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
@@ -0,0 +1,390 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday/multipart'
|
8
|
+
require 'sorbet-runtime'
|
9
|
+
|
10
|
+
module PlexRubySDK
|
11
|
+
extend T::Sig
|
12
|
+
class Server
|
13
|
+
extend T::Sig
|
14
|
+
# Operations against the Plex Media Server System.
|
15
|
+
#
|
16
|
+
|
17
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
18
|
+
def initialize(sdk_config)
|
19
|
+
@sdk_configuration = sdk_config
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
sig { returns(::PlexRubySDK::Operations::GetServerCapabilitiesResponse) }
|
24
|
+
def get_server_capabilities
|
25
|
+
# get_server_capabilities - Get Server Capabilities
|
26
|
+
# Get Server Capabilities
|
27
|
+
url, params = @sdk_configuration.get_server_details
|
28
|
+
base_url = Utils.template_url(url, params)
|
29
|
+
url = "#{base_url}/"
|
30
|
+
headers = {}
|
31
|
+
headers['Accept'] = 'application/json'
|
32
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
33
|
+
|
34
|
+
r = @sdk_configuration.client.get(url) do |req|
|
35
|
+
req.headers = headers
|
36
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
40
|
+
|
41
|
+
res = ::PlexRubySDK::Operations::GetServerCapabilitiesResponse.new(
|
42
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
43
|
+
)
|
44
|
+
if r.status == 200
|
45
|
+
if Utils.match_content_type(content_type, 'application/json')
|
46
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerCapabilitiesResponseBody)
|
47
|
+
res.object = out
|
48
|
+
end
|
49
|
+
elsif r.status == 400
|
50
|
+
if Utils.match_content_type(content_type, 'application/json')
|
51
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerCapabilitiesBadRequest)
|
52
|
+
res.bad_request = out
|
53
|
+
end
|
54
|
+
elsif r.status == 401
|
55
|
+
if Utils.match_content_type(content_type, 'application/json')
|
56
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerCapabilitiesUnauthorized)
|
57
|
+
res.unauthorized = out
|
58
|
+
end
|
59
|
+
end
|
60
|
+
res
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
sig { returns(::PlexRubySDK::Operations::GetServerPreferencesResponse) }
|
65
|
+
def get_server_preferences
|
66
|
+
# get_server_preferences - Get Server Preferences
|
67
|
+
# Get Server Preferences
|
68
|
+
url, params = @sdk_configuration.get_server_details
|
69
|
+
base_url = Utils.template_url(url, params)
|
70
|
+
url = "#{base_url}/:/prefs"
|
71
|
+
headers = {}
|
72
|
+
headers['Accept'] = 'application/json'
|
73
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
74
|
+
|
75
|
+
r = @sdk_configuration.client.get(url) do |req|
|
76
|
+
req.headers = headers
|
77
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
78
|
+
end
|
79
|
+
|
80
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
81
|
+
|
82
|
+
res = ::PlexRubySDK::Operations::GetServerPreferencesResponse.new(
|
83
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
84
|
+
)
|
85
|
+
if r.status == 200
|
86
|
+
if Utils.match_content_type(content_type, 'application/json')
|
87
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerPreferencesResponseBody)
|
88
|
+
res.object = out
|
89
|
+
end
|
90
|
+
elsif r.status == 400
|
91
|
+
if Utils.match_content_type(content_type, 'application/json')
|
92
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerPreferencesBadRequest)
|
93
|
+
res.bad_request = out
|
94
|
+
end
|
95
|
+
elsif r.status == 401
|
96
|
+
if Utils.match_content_type(content_type, 'application/json')
|
97
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerPreferencesUnauthorized)
|
98
|
+
res.unauthorized = out
|
99
|
+
end
|
100
|
+
end
|
101
|
+
res
|
102
|
+
end
|
103
|
+
|
104
|
+
|
105
|
+
sig { returns(::PlexRubySDK::Operations::GetAvailableClientsResponse) }
|
106
|
+
def get_available_clients
|
107
|
+
# get_available_clients - Get Available Clients
|
108
|
+
# Get Available Clients
|
109
|
+
url, params = @sdk_configuration.get_server_details
|
110
|
+
base_url = Utils.template_url(url, params)
|
111
|
+
url = "#{base_url}/clients"
|
112
|
+
headers = {}
|
113
|
+
headers['Accept'] = 'application/json'
|
114
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
115
|
+
|
116
|
+
r = @sdk_configuration.client.get(url) do |req|
|
117
|
+
req.headers = headers
|
118
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
119
|
+
end
|
120
|
+
|
121
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
122
|
+
|
123
|
+
res = ::PlexRubySDK::Operations::GetAvailableClientsResponse.new(
|
124
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
125
|
+
)
|
126
|
+
if r.status == 200
|
127
|
+
if Utils.match_content_type(content_type, 'application/json')
|
128
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAvailableClientsResponseBody)
|
129
|
+
res.object = out
|
130
|
+
end
|
131
|
+
elsif r.status == 400
|
132
|
+
if Utils.match_content_type(content_type, 'application/json')
|
133
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAvailableClientsBadRequest)
|
134
|
+
res.bad_request = out
|
135
|
+
end
|
136
|
+
elsif r.status == 401
|
137
|
+
if Utils.match_content_type(content_type, 'application/json')
|
138
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAvailableClientsUnauthorized)
|
139
|
+
res.unauthorized = out
|
140
|
+
end
|
141
|
+
end
|
142
|
+
res
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
sig { returns(::PlexRubySDK::Operations::GetDevicesResponse) }
|
147
|
+
def get_devices
|
148
|
+
# get_devices - Get Devices
|
149
|
+
# Get Devices
|
150
|
+
url, params = @sdk_configuration.get_server_details
|
151
|
+
base_url = Utils.template_url(url, params)
|
152
|
+
url = "#{base_url}/devices"
|
153
|
+
headers = {}
|
154
|
+
headers['Accept'] = 'application/json'
|
155
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
156
|
+
|
157
|
+
r = @sdk_configuration.client.get(url) do |req|
|
158
|
+
req.headers = headers
|
159
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
160
|
+
end
|
161
|
+
|
162
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
163
|
+
|
164
|
+
res = ::PlexRubySDK::Operations::GetDevicesResponse.new(
|
165
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
166
|
+
)
|
167
|
+
if r.status == 200
|
168
|
+
if Utils.match_content_type(content_type, 'application/json')
|
169
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetDevicesResponseBody)
|
170
|
+
res.object = out
|
171
|
+
end
|
172
|
+
elsif r.status == 400
|
173
|
+
if Utils.match_content_type(content_type, 'application/json')
|
174
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetDevicesBadRequest)
|
175
|
+
res.bad_request = out
|
176
|
+
end
|
177
|
+
elsif r.status == 401
|
178
|
+
if Utils.match_content_type(content_type, 'application/json')
|
179
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetDevicesUnauthorized)
|
180
|
+
res.unauthorized = out
|
181
|
+
end
|
182
|
+
end
|
183
|
+
res
|
184
|
+
end
|
185
|
+
|
186
|
+
|
187
|
+
sig { returns(::PlexRubySDK::Operations::GetServerIdentityResponse) }
|
188
|
+
def get_server_identity
|
189
|
+
# get_server_identity - Get Server Identity
|
190
|
+
# This request is useful to determine if the server is online or offline
|
191
|
+
url, params = @sdk_configuration.get_server_details
|
192
|
+
base_url = Utils.template_url(url, params)
|
193
|
+
url = "#{base_url}/identity"
|
194
|
+
headers = {}
|
195
|
+
headers['Accept'] = 'application/json'
|
196
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
197
|
+
|
198
|
+
r = @sdk_configuration.client.get(url) do |req|
|
199
|
+
req.headers = headers
|
200
|
+
end
|
201
|
+
|
202
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
203
|
+
|
204
|
+
res = ::PlexRubySDK::Operations::GetServerIdentityResponse.new(
|
205
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
206
|
+
)
|
207
|
+
if r.status == 200
|
208
|
+
if Utils.match_content_type(content_type, 'application/json')
|
209
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerIdentityResponseBody)
|
210
|
+
res.object = out
|
211
|
+
end
|
212
|
+
elsif r.status == 408
|
213
|
+
if Utils.match_content_type(content_type, 'application/json')
|
214
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerIdentityRequestTimeout)
|
215
|
+
res.request_timeout = out
|
216
|
+
end
|
217
|
+
end
|
218
|
+
res
|
219
|
+
end
|
220
|
+
|
221
|
+
|
222
|
+
sig { returns(::PlexRubySDK::Operations::GetMyPlexAccountResponse) }
|
223
|
+
def get_my_plex_account
|
224
|
+
# get_my_plex_account - Get MyPlex Account
|
225
|
+
# Returns MyPlex Account Information
|
226
|
+
url, params = @sdk_configuration.get_server_details
|
227
|
+
base_url = Utils.template_url(url, params)
|
228
|
+
url = "#{base_url}/myplex/account"
|
229
|
+
headers = {}
|
230
|
+
headers['Accept'] = 'application/json'
|
231
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
232
|
+
|
233
|
+
r = @sdk_configuration.client.get(url) do |req|
|
234
|
+
req.headers = headers
|
235
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
236
|
+
end
|
237
|
+
|
238
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
239
|
+
|
240
|
+
res = ::PlexRubySDK::Operations::GetMyPlexAccountResponse.new(
|
241
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
242
|
+
)
|
243
|
+
if r.status == 200
|
244
|
+
if Utils.match_content_type(content_type, 'application/json')
|
245
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMyPlexAccountResponseBody)
|
246
|
+
res.object = out
|
247
|
+
end
|
248
|
+
elsif r.status == 400
|
249
|
+
if Utils.match_content_type(content_type, 'application/json')
|
250
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMyPlexAccountBadRequest)
|
251
|
+
res.bad_request = out
|
252
|
+
end
|
253
|
+
elsif r.status == 401
|
254
|
+
if Utils.match_content_type(content_type, 'application/json')
|
255
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMyPlexAccountUnauthorized)
|
256
|
+
res.unauthorized = out
|
257
|
+
end
|
258
|
+
end
|
259
|
+
res
|
260
|
+
end
|
261
|
+
|
262
|
+
|
263
|
+
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetResizedPhotoRequest)).returns(::PlexRubySDK::Operations::GetResizedPhotoResponse) }
|
264
|
+
def get_resized_photo(request)
|
265
|
+
# get_resized_photo - Get a Resized Photo
|
266
|
+
# Plex's Photo transcoder is used throughout the service to serve images at specified sizes.
|
267
|
+
#
|
268
|
+
url, params = @sdk_configuration.get_server_details
|
269
|
+
base_url = Utils.template_url(url, params)
|
270
|
+
url = "#{base_url}/photo/:/transcode"
|
271
|
+
headers = {}
|
272
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetResizedPhotoRequest, request, @sdk_configuration.globals)
|
273
|
+
headers['Accept'] = 'application/json'
|
274
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
275
|
+
|
276
|
+
r = @sdk_configuration.client.get(url) do |req|
|
277
|
+
req.headers = headers
|
278
|
+
req.params = query_params
|
279
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
280
|
+
end
|
281
|
+
|
282
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
283
|
+
|
284
|
+
res = ::PlexRubySDK::Operations::GetResizedPhotoResponse.new(
|
285
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
286
|
+
)
|
287
|
+
if r.status == 200
|
288
|
+
elsif r.status == 400
|
289
|
+
if Utils.match_content_type(content_type, 'application/json')
|
290
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetResizedPhotoBadRequest)
|
291
|
+
res.bad_request = out
|
292
|
+
end
|
293
|
+
elsif r.status == 401
|
294
|
+
if Utils.match_content_type(content_type, 'application/json')
|
295
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetResizedPhotoUnauthorized)
|
296
|
+
res.unauthorized = out
|
297
|
+
end
|
298
|
+
end
|
299
|
+
res
|
300
|
+
end
|
301
|
+
|
302
|
+
|
303
|
+
sig { params(x_plex_token: ::String).returns(::PlexRubySDK::Operations::GetMediaProvidersResponse) }
|
304
|
+
def get_media_providers(x_plex_token)
|
305
|
+
# get_media_providers - Get Media Providers
|
306
|
+
# Retrieves media providers and their features from the Plex server.
|
307
|
+
request = ::PlexRubySDK::Operations::GetMediaProvidersRequest.new(
|
308
|
+
|
309
|
+
x_plex_token: x_plex_token
|
310
|
+
)
|
311
|
+
url, params = @sdk_configuration.get_server_details
|
312
|
+
base_url = Utils.template_url(url, params)
|
313
|
+
url = "#{base_url}/media/providers"
|
314
|
+
headers = {}
|
315
|
+
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetMediaProvidersRequest, request, @sdk_configuration.globals)
|
316
|
+
headers['Accept'] = 'application/json'
|
317
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
318
|
+
|
319
|
+
r = @sdk_configuration.client.get(url) do |req|
|
320
|
+
req.headers = headers
|
321
|
+
req.params = query_params
|
322
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
323
|
+
end
|
324
|
+
|
325
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
326
|
+
|
327
|
+
res = ::PlexRubySDK::Operations::GetMediaProvidersResponse.new(
|
328
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
329
|
+
)
|
330
|
+
if r.status == 200
|
331
|
+
if Utils.match_content_type(content_type, 'application/json')
|
332
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaProvidersResponseBody)
|
333
|
+
res.object = out
|
334
|
+
end
|
335
|
+
elsif r.status == 400
|
336
|
+
if Utils.match_content_type(content_type, 'application/json')
|
337
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaProvidersBadRequest)
|
338
|
+
res.bad_request = out
|
339
|
+
end
|
340
|
+
elsif r.status == 401
|
341
|
+
if Utils.match_content_type(content_type, 'application/json')
|
342
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaProvidersUnauthorized)
|
343
|
+
res.unauthorized = out
|
344
|
+
end
|
345
|
+
end
|
346
|
+
res
|
347
|
+
end
|
348
|
+
|
349
|
+
|
350
|
+
sig { returns(::PlexRubySDK::Operations::GetServerListResponse) }
|
351
|
+
def get_server_list
|
352
|
+
# get_server_list - Get Server List
|
353
|
+
# Get Server List
|
354
|
+
url, params = @sdk_configuration.get_server_details
|
355
|
+
base_url = Utils.template_url(url, params)
|
356
|
+
url = "#{base_url}/servers"
|
357
|
+
headers = {}
|
358
|
+
headers['Accept'] = 'application/json'
|
359
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
360
|
+
|
361
|
+
r = @sdk_configuration.client.get(url) do |req|
|
362
|
+
req.headers = headers
|
363
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
364
|
+
end
|
365
|
+
|
366
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
367
|
+
|
368
|
+
res = ::PlexRubySDK::Operations::GetServerListResponse.new(
|
369
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
370
|
+
)
|
371
|
+
if r.status == 200
|
372
|
+
if Utils.match_content_type(content_type, 'application/json')
|
373
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerListResponseBody)
|
374
|
+
res.object = out
|
375
|
+
end
|
376
|
+
elsif r.status == 400
|
377
|
+
if Utils.match_content_type(content_type, 'application/json')
|
378
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerListBadRequest)
|
379
|
+
res.bad_request = out
|
380
|
+
end
|
381
|
+
elsif r.status == 401
|
382
|
+
if Utils.match_content_type(content_type, 'application/json')
|
383
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerListUnauthorized)
|
384
|
+
res.unauthorized = out
|
385
|
+
end
|
386
|
+
end
|
387
|
+
res
|
388
|
+
end
|
389
|
+
end
|
390
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module PlexRubySDK
|
8
|
+
module ServerVariables
|
9
|
+
|
10
|
+
# ServerProtocol - The protocol to use for the server connection
|
11
|
+
class ServerProtocol < T::Enum
|
12
|
+
enums do
|
13
|
+
HTTP = new('http')
|
14
|
+
HTTPS = new('https')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|