diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 20f0737..cc5c743 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 0.0.3 speakeasyVersion: 1.397.2 generationVersion: 2.415.8 - releaseVersion: 0.3.3 - configChecksum: bbc41306a25086aeae9fd27706f2e334 + releaseVersion: 0.3.4 + configChecksum: 2725162a230db6ada6065be692444dc2 repoURL: https://github.com/LukeHagar/plexruby.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexruby @@ -732,7 +732,7 @@ generatedFiles: - docs/sdks/updater/README.md - docs/sdks/video/README.md - docs/sdks/watchlist/README.md - - lib/plex-ruby-sdk.rb + - lib/plex_ruby_sdk.rb - lib/plex_ruby_sdk/activities.rb - lib/plex_ruby_sdk/authentication.rb - lib/plex_ruby_sdk/butler.rb @@ -1444,7 +1444,7 @@ generatedFiles: - lib/plex_ruby_sdk/utils/utils.rb - lib/plex_ruby_sdk/video.rb - lib/plex_ruby_sdk/watchlist.rb - - plex-ruby-sdk.gemspec + - plex_ruby_sdk.gemspec - sorbet/config - sorbet/rbi/annotations/.gitattributes - sorbet/rbi/annotations/faraday.rbi diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 90eac0c..de40302 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false ruby: - version: 0.3.3 + version: 0.3.4 author: LukeHagar description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d7ceeb5..6121714 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -14,7 +14,7 @@ targets: sourceRevisionDigest: sha256:90da815184f89206abe4694aca05802c71d19c10d572a0a1f84d89883e5fce45 sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9 codeSamplesNamespace: code-samples-ruby-plexruby - codeSamplesRevisionDigest: sha256:5c9b307937e0e65a45c54e2cbfb4cb50f212de3ac417858a551f574beb4cf0d4 + codeSamplesRevisionDigest: sha256:f7325622cd3daf766e0c56ebe8390fe313bbfeb35a0a013f4cd6cfcc1700f5b3 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index c8f83a7..3acc62a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - plex-ruby-sdk (0.3.3) + plex_ruby_sdk (0.3.4) faraday faraday-multipart rack @@ -93,7 +93,7 @@ PLATFORMS DEPENDENCIES minitest - plex-ruby-sdk! + plex_ruby_sdk! rubocop sorbet-runtime tapioca diff --git a/README.md b/README.md index 551684b..f1134a7 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server The SDK can be installed using [RubyGems](https://rubygems.org/): ```bash -gem install plex-ruby-sdk +gem install plex_ruby_sdk ``` diff --git a/RELEASES.md b/RELEASES.md index 4072230..376f734 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -506,4 +506,14 @@ Based on: ### Generated - [ruby v0.3.3] . ### Releases -- [Ruby Gems v0.3.3] https://rubygems.org/gems/plex-ruby-sdk/versions/0.3.3 - . \ No newline at end of file +- [Ruby Gems v0.3.3] https://rubygems.org/gems/plex-ruby-sdk/versions/0.3.3 - . + +## 2024-09-16 16:03:22 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.397.2 (2.415.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.3.4] . +### Releases +- [Ruby Gems v0.3.4] https://rubygems.org/gems/plex_ruby_sdk/versions/0.3.4 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index b131d9c..7927210 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -8,442 +8,442 @@ actions: x-codeSamples: - lang: ruby label: getServerCapabilities - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_server_capabilities()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_server_capabilities()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/:/prefs"]["get"] update: x-codeSamples: - lang: ruby label: getServerPreferences - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_server_preferences()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_server_preferences()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/:/progress"]["post"] update: x-codeSamples: - lang: ruby label: updatePlayProgress - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.media.update_play_progress(key=\"\", time=90000.0, state=\"played\")\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.media.update_play_progress(key=\"\", time=90000.0, state=\"played\")\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/:/scrobble"]["get"] update: x-codeSamples: - lang: ruby label: markPlayed - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.media.mark_played(key=59398.0)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.media.mark_played(key=59398.0)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/:/timeline"]["get"] update: x-codeSamples: - lang: ruby label: getTimeline - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetTimelineRequest.new(\n rating_key: 23409.0,\n key: \"/library/metadata/23409\",\n state: ::PlexRubySDK::Operations::State::PLAYING,\n has_mde: 1.0,\n time: 2000.0,\n duration: 10000.0,\n context: \"home:hub.continueWatching\",\n play_queue_item_id: 1.0,\n play_back_time: 2000.0,\n row: 1.0,\n)\n \nres = s.video.get_timeline(req)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetTimelineRequest.new(\n rating_key: 23409.0,\n key: \"/library/metadata/23409\",\n state: ::PlexRubySDK::Operations::State::PLAYING,\n has_mde: 1.0,\n time: 2000.0,\n duration: 10000.0,\n context: \"home:hub.continueWatching\",\n play_queue_item_id: 1.0,\n play_back_time: 2000.0,\n row: 1.0,\n)\n \nres = s.video.get_timeline(req)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/:/unscrobble"]["get"] update: x-codeSamples: - lang: ruby label: markUnplayed - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.media.mark_unplayed(key=59398.0)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.media.mark_unplayed(key=59398.0)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/activities"]["get"] update: x-codeSamples: - lang: ruby label: getServerActivities - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.activities.get_server_activities()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.activities.get_server_activities()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/activities/{activityUUID}"]["delete"] update: x-codeSamples: - lang: ruby label: cancelServerActivities - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.activities.cancel_server_activities(activity_uuid=\"25b71ed5-0f9d-461c-baa7-d404e9e10d3e\")\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.activities.cancel_server_activities(activity_uuid=\"25b71ed5-0f9d-461c-baa7-d404e9e10d3e\")\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/butler"]["delete"] update: x-codeSamples: - lang: ruby label: stopAllTasks - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.stop_all_tasks()\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.stop_all_tasks()\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/butler"]["get"] update: x-codeSamples: - lang: ruby label: getButlerTasks - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.get_butler_tasks()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.get_butler_tasks()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/butler"]["post"] update: x-codeSamples: - lang: ruby label: startAllTasks - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.start_all_tasks()\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.start_all_tasks()\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/butler/{taskName}"]["delete"] update: x-codeSamples: - lang: ruby label: stopTask - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.stop_task(task_name=::PlexRubySDK::Operations::PathParamTaskName::BACKUP_DATABASE)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.stop_task(task_name=::PlexRubySDK::Operations::PathParamTaskName::BACKUP_DATABASE)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/butler/{taskName}"]["post"] update: x-codeSamples: - lang: ruby label: startTask - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.start_task(task_name=::PlexRubySDK::Operations::TaskName::CLEAN_OLD_BUNDLES)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.butler.start_task(task_name=::PlexRubySDK::Operations::TaskName::CLEAN_OLD_BUNDLES)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/clients"]["get"] update: x-codeSamples: - lang: ruby label: getAvailableClients - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_available_clients()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_available_clients()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/companions"]["get"] update: x-codeSamples: - lang: ruby label: getCompanionsData - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_companions_data()\n\nif ! res.response_bodies.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_companions_data()\n\nif ! res.response_bodies.nil?\n # handle response\nend" - target: $["paths"]["/devices"]["get"] update: x-codeSamples: - lang: ruby label: getDevices - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_devices()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_devices()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/friends"]["get"] update: x-codeSamples: - lang: ruby label: getUserFriends - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_user_friends()\n\nif ! res.friends.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_user_friends()\n\nif ! res.friends.nil?\n # handle response\nend" - target: $["paths"]["/geoip"]["get"] update: x-codeSamples: - lang: ruby label: getGeoData - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.plex.get_geo_data()\n\nif ! res.geo_data.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.plex.get_geo_data()\n\nif ! res.geo_data.nil?\n # handle response\nend" - target: $["paths"]["/home"]["get"] update: x-codeSamples: - lang: ruby label: getHomeData - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_home_data()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_home_data()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/hubs"]["get"] update: x-codeSamples: - lang: ruby label: getGlobalHubs - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.hubs.get_global_hubs(count=1262.49, only_transient=::PlexRubySDK::Operations::OnlyTransient::ONE)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.hubs.get_global_hubs(count=1262.49, only_transient=::PlexRubySDK::Operations::OnlyTransient::ONE)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/hubs/search"]["get"] update: x-codeSamples: - lang: ruby label: performSearch - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.search.perform_search(query=\"arnold\", section_id=9372.7, limit=5.0)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.search.perform_search(query=\"arnold\", section_id=9372.7, limit=5.0)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/hubs/search/voice"]["get"] update: x-codeSamples: - lang: ruby label: performVoiceSearch - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.search.perform_voice_search(query=\"dead+poop\", section_id=4094.8, limit=5.0)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.search.perform_voice_search(query=\"dead+poop\", section_id=4094.8, limit=5.0)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] update: x-codeSamples: - lang: ruby label: getLibraryHubs - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.hubs.get_library_hubs(section_id=6728.76, count=9010.22, only_transient=::PlexRubySDK::Operations::QueryParamOnlyTransient::ZERO)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.hubs.get_library_hubs(section_id=6728.76, count=9010.22, only_transient=::PlexRubySDK::Operations::QueryParamOnlyTransient::ZERO)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/identity"]["get"] update: x-codeSamples: - lang: ruby label: identity - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.server.get_server_identity()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.server.get_server_identity()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/all/top"]["get"] update: x-codeSamples: - lang: ruby label: getTopWatchedContent - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_top_watched_content(type=::PlexRubySDK::Operations::GetTopWatchedContentQueryParamType::TWO, include_guids=1)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_top_watched_content(type=::PlexRubySDK::Operations::GetTopWatchedContentQueryParamType::TWO, include_guids=1)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/hashes"]["get"] update: x-codeSamples: - lang: ruby label: getFileHash - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_file_hash(url=\"file://C:\\Image.png&type=13\", type=4462.17)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_file_hash(url=\"file://C:\\Image.png&type=13\", type=4462.17)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] update: x-codeSamples: - lang: ruby label: key - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_meta_data_by_rating_key(rating_key=9518)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_meta_data_by_rating_key(rating_key=9518)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/metadata/{ratingKey}/banner"]["get"] update: x-codeSamples: - lang: ruby label: image - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetBannerImageRequest.new(\n rating_key: 9518,\n width: 396,\n height: 396,\n min_size: 1,\n upscale: 1,\n x_plex_token: \"CV5xoxjTpFKUzBTShsaf\",\n)\n \nres = s.media.get_banner_image(req)\n\nif ! res.bytes.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetBannerImageRequest.new(\n rating_key: 9518,\n width: 396,\n height: 396,\n min_size: 1,\n upscale: 1,\n x_plex_token: \"CV5xoxjTpFKUzBTShsaf\",\n)\n \nres = s.media.get_banner_image(req)\n\nif ! res.bytes.nil?\n # handle response\nend" - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] update: x-codeSamples: - lang: ruby label: getMetadataChildren - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_metadata_children(rating_key=1539.14, include_elements=\"\")\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_metadata_children(rating_key=1539.14, include_elements=\"\")\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/metadata/{ratingKey}/thumb"]["get"] update: x-codeSamples: - lang: ruby label: image - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetThumbImageRequest.new(\n rating_key: 9518,\n width: 396,\n height: 396,\n min_size: 1,\n upscale: 1,\n x_plex_token: \"CV5xoxjTpFKUzBTShsaf\",\n)\n \nres = s.media.get_thumb_image(req)\n\nif ! res.bytes.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetThumbImageRequest.new(\n rating_key: 9518,\n width: 396,\n height: 396,\n min_size: 1,\n upscale: 1,\n x_plex_token: \"CV5xoxjTpFKUzBTShsaf\",\n)\n \nres = s.media.get_thumb_image(req)\n\nif ! res.bytes.nil?\n # handle response\nend" - target: $["paths"]["/library/onDeck"]["get"] update: x-codeSamples: - lang: ruby label: getOnDeck - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_on_deck()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_on_deck()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/recentlyAdded"]["get"] update: x-codeSamples: - lang: ruby label: getRecentlyAdded - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_recently_added(x_plex_container_start=0, x_plex_container_size=50)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_recently_added(x_plex_container_start=0, x_plex_container_size=50)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/sections"]["get"] update: x-codeSamples: - lang: ruby label: libraries - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_all_libraries()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_all_libraries()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] update: x-codeSamples: - lang: ruby label: list - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetWatchListRequest.new(\n filter: ::PlexRubySDK::Operations::Filter::AVAILABLE,\n x_plex_container_start: 0,\n x_plex_container_size: 50,\n x_plex_token: \"CV5xoxjTpFKUzBTShsaf\",\n)\n \nres = s.watchlist.get_watch_list(req)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetWatchListRequest.new(\n filter: ::PlexRubySDK::Operations::Filter::AVAILABLE,\n x_plex_container_start: 0,\n x_plex_container_size: 50,\n x_plex_token: \"CV5xoxjTpFKUzBTShsaf\",\n)\n \nres = s.watchlist.get_watch_list(req)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/sections/{sectionKey}"]["delete"] update: x-codeSamples: - lang: ruby label: deleteLibrary - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.delete_library(section_key=9518)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.delete_library(section_key=9518)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/library/sections/{sectionKey}"]["get"] update: x-codeSamples: - lang: ruby label: details - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"] update: x-codeSamples: - lang: ruby label: metadata - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_refresh_library_metadata(section_key=9518, force=::PlexRubySDK::Operations::Force::ONE)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_refresh_library_metadata(section_key=9518, force=::PlexRubySDK::Operations::Force::ONE)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/library/sections/{sectionKey}/search"]["get"] update: x-codeSamples: - lang: ruby label: library - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::QueryParamType::TWO)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::QueryParamType::TWO)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/library/sections/{sectionKey}/{tag}"]["get"] update: x-codeSamples: - lang: ruby label: items - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(\n section_key: 9518,\n tag: ::PlexRubySDK::Operations::Tag::EDITION,\n include_guids: ::PlexRubySDK::Operations::IncludeGuids::ONE,\n include_meta: ::PlexRubySDK::Operations::IncludeMeta::ONE,\n type: ::PlexRubySDK::Operations::Type::TWO,\n x_plex_container_start: 0,\n x_plex_container_size: 50,\n)\n \nres = s.library.get_library_items(req)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(\n section_key: 9518,\n tag: ::PlexRubySDK::Operations::Tag::EDITION,\n include_guids: ::PlexRubySDK::Operations::IncludeGuids::ONE,\n include_meta: ::PlexRubySDK::Operations::IncludeMeta::ONE,\n type: ::PlexRubySDK::Operations::Type::TWO,\n x_plex_container_start: 0,\n x_plex_container_size: 50,\n)\n \nres = s.library.get_library_items(req)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/log"]["get"] update: x-codeSamples: - lang: ruby label: logLine - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.log.log_line(level=::PlexRubySDK::Operations::Level::THREE, message=\"Test log message\", source=\"Postman\")\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.log.log_line(level=::PlexRubySDK::Operations::Level::THREE, message=\"Test log message\", source=\"Postman\")\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/log"]["post"] update: x-codeSamples: - lang: ruby label: logMultiLine - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = \"level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman\"\n \nres = s.log.log_multi_line(req)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = \"level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman\"\n \nres = s.log.log_multi_line(req)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/log/networked"]["get"] update: x-codeSamples: - lang: ruby label: enablePaperTrail - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.log.enable_paper_trail()\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.log.enable_paper_trail()\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/media/providers"]["get"] update: x-codeSamples: - lang: ruby label: providers - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_media_providers(x_plex_token=\"CV5xoxjTpFKUzBTShsaf\")\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_media_providers(x_plex_token=\"CV5xoxjTpFKUzBTShsaf\")\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/myplex/account"]["get"] update: x-codeSamples: - lang: ruby label: getMyPlexAccount - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_my_plex_account()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_my_plex_account()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/photo/:/transcode"]["get"] update: x-codeSamples: - lang: ruby label: getResizedPhoto - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(\n width: 110.0,\n height: 165.0,\n opacity: 643869,\n blur: 0.0,\n min_size: ::PlexRubySDK::Operations::MinSize::ZERO,\n upscale: ::PlexRubySDK::Operations::Upscale::ONE,\n url: \"/library/metadata/49564/thumb/1654258204\",\n)\n \nres = s.server.get_resized_photo(req)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(\n width: 110.0,\n height: 165.0,\n opacity: 643869,\n blur: 0.0,\n min_size: ::PlexRubySDK::Operations::MinSize::ZERO,\n upscale: ::PlexRubySDK::Operations::Upscale::ONE,\n url: \"/library/metadata/49564/thumb/1654258204\",\n)\n \nres = s.server.get_resized_photo(req)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/pins"]["post"] update: x-codeSamples: - lang: ruby label: getPin - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.plex.get_pin(strong=false, x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\", x_plex_product=\"Plex Web\")\n\nif ! res.auth_pin_container.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.plex.get_pin(strong=false, x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\", x_plex_product=\"Plex Web\")\n\nif ! res.auth_pin_container.nil?\n # handle response\nend" - target: $["paths"]["/pins/{pinID}"]["get"] update: x-codeSamples: - lang: ruby label: getTokenByPinId - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.plex.get_token_by_pin_id(pin_id=408895, x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\")\n\nif ! res.auth_pin_container.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.plex.get_token_by_pin_id(pin_id=408895, x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\")\n\nif ! res.auth_pin_container.nil?\n # handle response\nend" - target: $["paths"]["/playlists"]["get"] update: x-codeSamples: - lang: ruby label: getPlaylists - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.get_playlists(playlist_type=::PlexRubySDK::Operations::PlaylistType::AUDIO, smart=::PlexRubySDK::Operations::QueryParamSmart::ZERO)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.get_playlists(playlist_type=::PlexRubySDK::Operations::PlaylistType::AUDIO, smart=::PlexRubySDK::Operations::QueryParamSmart::ZERO)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/playlists"]["post"] update: x-codeSamples: - lang: ruby label: createPlaylist - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::CreatePlaylistRequest.new(\n title: \"\",\n type: ::PlexRubySDK::Operations::CreatePlaylistQueryParamType::PHOTO,\n smart: ::PlexRubySDK::Operations::Smart::ONE,\n uri: \"https://inborn-brochure.biz\",\n)\n \nres = s.playlists.create_playlist(req)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::CreatePlaylistRequest.new(\n title: \"\",\n type: ::PlexRubySDK::Operations::CreatePlaylistQueryParamType::PHOTO,\n smart: ::PlexRubySDK::Operations::Smart::ONE,\n uri: \"https://inborn-brochure.biz\",\n)\n \nres = s.playlists.create_playlist(req)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/playlists/upload"]["post"] update: x-codeSamples: - lang: ruby label: uploadPlaylist - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.upload_playlist(path=\"/home/barkley/playlist.m3u\", force=::PlexRubySDK::Operations::QueryParamForce::ZERO)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.upload_playlist(path=\"/home/barkley/playlist.m3u\", force=::PlexRubySDK::Operations::QueryParamForce::ZERO)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/playlists/{playlistID}"]["delete"] update: x-codeSamples: - lang: ruby label: deletePlaylist - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.delete_playlist(playlist_id=216.22)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.delete_playlist(playlist_id=216.22)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/playlists/{playlistID}"]["get"] update: x-codeSamples: - lang: ruby label: getPlaylist - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.get_playlist(playlist_id=4109.48)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.get_playlist(playlist_id=4109.48)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/playlists/{playlistID}"]["put"] update: x-codeSamples: - lang: ruby label: updatePlaylist - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.update_playlist(playlist_id=3915, title=\"\", summary=\"\")\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.update_playlist(playlist_id=3915, title=\"\", summary=\"\")\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] update: x-codeSamples: - lang: ruby label: clearPlaylistContents - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.clear_playlist_contents(playlist_id=1893.18)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.clear_playlist_contents(playlist_id=1893.18)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/playlists/{playlistID}/items"]["get"] update: x-codeSamples: - lang: ruby label: getPlaylistContents - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.get_playlist_contents(playlist_id=5004.46, type=::PlexRubySDK::Operations::GetPlaylistContentsQueryParamType::TWO)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.get_playlist_contents(playlist_id=5004.46, type=::PlexRubySDK::Operations::GetPlaylistContentsQueryParamType::TWO)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/playlists/{playlistID}/items"]["put"] update: x-codeSamples: - lang: ruby label: addPlaylistContents - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.add_playlist_contents(playlist_id=8502.01, uri=\"server://12345/com.plexapp.plugins.library/library/metadata/1\", play_queue_id=123.0)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.playlists.add_playlist_contents(playlist_id=8502.01, uri=\"server://12345/com.plexapp.plugins.library/library/metadata/1\", play_queue_id=123.0)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/resources"]["get"] update: x-codeSamples: - lang: ruby label: resources - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_server_resources(x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\", include_https=::PlexRubySDK::Operations::IncludeHttps::ONE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ONE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ONE)\n\nif ! res.plex_devices.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_server_resources(x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\", include_https=::PlexRubySDK::Operations::IncludeHttps::ONE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ONE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ONE)\n\nif ! res.plex_devices.nil?\n # handle response\nend" - target: $["paths"]["/search"]["get"] update: x-codeSamples: - lang: ruby label: getSearchResults - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.search.get_search_results(query=\"110\")\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.search.get_search_results(query=\"110\")\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/security/resources"]["get"] update: x-codeSamples: - lang: ruby label: getSourceConnectionInformation - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.authentication.get_source_connection_information(source=\"server://client-identifier\")\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.authentication.get_source_connection_information(source=\"server://client-identifier\")\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/security/token"]["get"] update: x-codeSamples: - lang: ruby label: getTransientToken - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.authentication.get_transient_token(type=::PlexRubySDK::Operations::GetTransientTokenQueryParamType::DELEGATION, scope=::PlexRubySDK::Operations::Scope::ALL)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.authentication.get_transient_token(type=::PlexRubySDK::Operations::GetTransientTokenQueryParamType::DELEGATION, scope=::PlexRubySDK::Operations::Scope::ALL)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/servers"]["get"] update: x-codeSamples: - lang: ruby label: getServerList - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_server_list()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.server.get_server_list()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/statistics/bandwidth"]["get"] update: x-codeSamples: - lang: ruby label: getBandwidthStatistics - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.statistics.get_bandwidth_statistics(timespan=4)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.statistics.get_bandwidth_statistics(timespan=4)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/statistics/media"]["get"] update: x-codeSamples: - lang: ruby label: getStatistics - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.statistics.get_statistics(timespan=4)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.statistics.get_statistics(timespan=4)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/statistics/resources"]["get"] update: x-codeSamples: - lang: ruby label: getResourcesStatistics - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.statistics.get_resources_statistics(timespan=4)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.statistics.get_resources_statistics(timespan=4)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/status/sessions"]["get"] update: x-codeSamples: - lang: ruby label: getSessions - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.get_sessions()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.get_sessions()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/status/sessions/history/all"]["get"] update: x-codeSamples: - lang: ruby label: getSessionHistory - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.get_session_history(sort=\"\", account_id=1, filter=::PlexRubySDK::Operations::QueryParamFilter.new(), library_section_id=12)\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.get_session_history(sort=\"\", account_id=1, filter=::PlexRubySDK::Operations::QueryParamFilter.new(), library_section_id=12)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/transcode/sessions"]["get"] update: x-codeSamples: - lang: ruby label: getTranscodeSessions - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.get_transcode_sessions()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.get_transcode_sessions()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] update: x-codeSamples: - lang: ruby label: stopTranscodeSession - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.stop_transcode_session(session_key=\"zz7llzqlx8w9vnrsbnwhbmep\")\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.sessions.stop_transcode_session(session_key=\"zz7llzqlx8w9vnrsbnwhbmep\")\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/updater/apply"]["put"] update: x-codeSamples: - lang: ruby label: applyUpdates - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.updater.apply_updates(tonight=::PlexRubySDK::Operations::Tonight::ONE, skip=::PlexRubySDK::Operations::Skip::ONE)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.updater.apply_updates(tonight=::PlexRubySDK::Operations::Tonight::ONE, skip=::PlexRubySDK::Operations::Skip::ONE)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/updater/check"]["put"] update: x-codeSamples: - lang: ruby label: checkForUpdates - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.updater.check_for_updates(download=::PlexRubySDK::Operations::Download::ONE)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.updater.check_for_updates(download=::PlexRubySDK::Operations::Download::ONE)\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/updater/status"]["get"] update: x-codeSamples: - lang: ruby label: getUpdateStatus - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.updater.get_update_status()\n\nif ! res.object.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.updater.get_update_status()\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/user"]["get"] update: x-codeSamples: - lang: ruby label: getTokenDetails - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.authentication.get_token_details()\n\nif ! res.user_plex_account.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.authentication.get_token_details()\n\nif ! res.user_plex_account.nil?\n # handle response\nend" - target: $["paths"]["/users/signin"]["post"] update: x-codeSamples: - lang: ruby label: data - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.authentication.post_users_sign_in_data(x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\", request_body=::PlexRubySDK::Operations::PostUsersSignInDataRequestBody.new(\n login: \"username@email.com\",\n password: \"password123\",\n verification_code: \"123456\",\n))\n\nif ! res.user_plex_account.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\n\n \nres = s.authentication.post_users_sign_in_data(x_plex_client_identifier=\"gcgzw5rz2xovp84b4vha3a40\", request_body=::PlexRubySDK::Operations::PostUsersSignInDataRequestBody.new(\n login: \"username@email.com\",\n password: \"password123\",\n verification_code: \"123456\",\n))\n\nif ! res.user_plex_account.nil?\n # handle response\nend" - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] update: x-codeSamples: - lang: ruby label: startUniversalTranscode - source: "require 'plexruby'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::StartUniversalTranscodeRequest.new(\n has_mde: 1.0,\n path: \"/library/metadata/23409\",\n media_index: 0.0,\n part_index: 0.0,\n protocol: \"hls\",\n fast_seek: 0.0,\n direct_play: 0.0,\n direct_stream: 0.0,\n subtitle_size: 100.0,\n subtites: \"burn\",\n audio_boost: 100.0,\n location: \"lan\",\n media_buffer_size: 102400.0,\n session: \"zvcage8b7rkioqcm8f4uns4c\",\n add_debug_overlay: 0.0,\n auto_adjust_quality: 0.0,\n)\n \nres = s.video.start_universal_transcode(req)\n\nif res.status_code == 200\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n x_plex_client_identifier: \"gcgzw5rz2xovp84b4vha3a40\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n\nreq = ::PlexRubySDK::Operations::StartUniversalTranscodeRequest.new(\n has_mde: 1.0,\n path: \"/library/metadata/23409\",\n media_index: 0.0,\n part_index: 0.0,\n protocol: \"hls\",\n fast_seek: 0.0,\n direct_play: 0.0,\n direct_stream: 0.0,\n subtitle_size: 100.0,\n subtites: \"burn\",\n audio_boost: 100.0,\n location: \"lan\",\n media_buffer_size: 102400.0,\n session: \"zvcage8b7rkioqcm8f4uns4c\",\n add_debug_overlay: 0.0,\n auto_adjust_quality: 0.0,\n)\n \nres = s.video.start_universal_transcode(req)\n\nif res.status_code == 200\n # handle response\nend" diff --git a/lib/plex-ruby-sdk.rb b/lib/plex_ruby_sdk.rb similarity index 100% rename from lib/plex-ruby-sdk.rb rename to lib/plex_ruby_sdk.rb diff --git a/lib/plex_ruby_sdk/sdkconfiguration.rb b/lib/plex_ruby_sdk/sdkconfiguration.rb index a905fd8..5940882 100644 --- a/lib/plex_ruby_sdk/sdkconfiguration.rb +++ b/lib/plex_ruby_sdk/sdkconfiguration.rb @@ -42,9 +42,9 @@ def initialize(client, security, server_url, server_idx, server_params, globals) @globals = globals.nil? ? {} : globals @language = 'ruby' @openapi_doc_version = '0.0.3' - @sdk_version = '0.3.3' + @sdk_version = '0.3.4' @gen_version = '2.415.8' - @user_agent = 'speakeasy-sdk/ruby 0.3.3 2.415.8 0.0.3 plex-ruby-sdk' + @user_agent = 'speakeasy-sdk/ruby 0.3.4 2.415.8 0.0.3 plex_ruby_sdk' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/plex-ruby-sdk.gemspec b/plex_ruby_sdk.gemspec similarity index 94% rename from plex-ruby-sdk.gemspec rename to plex_ruby_sdk.gemspec index 927fbe5..6f542c0 100644 --- a/plex-ruby-sdk.gemspec +++ b/plex_ruby_sdk.gemspec @@ -3,8 +3,8 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| - s.name = 'plex-ruby-sdk' - s.version = '0.3.3' + s.name = 'plex_ruby_sdk' + s.version = '0.3.4' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = ''