ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.4

This commit is contained in:
speakeasybot
2025-03-08 00:07:55 +00:00
parent 70e432702d
commit bec460dcc6
828 changed files with 3174 additions and 2001 deletions

File diff suppressed because one or more lines are too long

View File

@@ -7,15 +7,18 @@ generation:
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
nameResolutionFeb2025: false
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
ruby:
version: 0.7.5
version: 0.7.6
author: LukeHagar
description: Ruby Client SDK Generated by Speakeasy
flattenGlobalSecurity: false
imports:
option: openapi
paths:

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.488.0
speakeasyVersion: 1.513.4
sources:
my-source:
sourceNamespace: my-source
@@ -9,19 +9,19 @@ sources:
- main
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:0efb9039972533bf1190dfc1ffb377429a8e486b6299442e732f662c1ffbeca6
sourceBlobDigest: sha256:038d73166cc9db17f514d511cfe4365ea032f4ebcb247fa86b7aa1bba0e1ab46
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
tags:
- latest
- speakeasy-sdk-regen-1739232482
- speakeasy-sdk-regen-1741392402
targets:
plexruby:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:0efb9039972533bf1190dfc1ffb377429a8e486b6299442e732f662c1ffbeca6
sourceBlobDigest: sha256:038d73166cc9db17f514d511cfe4365ea032f4ebcb247fa86b7aa1bba0e1ab46
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
codeSamplesNamespace: code-samples-ruby-plexruby
codeSamplesRevisionDigest: sha256:21075555343fdaee57b8bcb81c1dc0b14ba00606b2fc9fc27e4a95c7a6ad3c80
codeSamplesRevisionDigest: sha256:4259370282112655285050483b760855bebec41a60b5528b24ef2c82431a123f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest

View File

@@ -1,7 +1,7 @@
PATH
remote: .
specs:
plex_ruby_sdk (0.7.5)
plex_ruby_sdk (0.7.6)
faraday
faraday-multipart
rack
@@ -25,6 +25,8 @@ GEM
language_server-protocol (3.17.0.3)
logger (1.6.1)
minitest (5.25.2)
minitest-focus (1.4.0)
minitest (>= 4, < 6)
multipart-post (2.4.1)
net-http (0.5.0)
uri
@@ -96,6 +98,7 @@ PLATFORMS
DEPENDENCIES
minitest
minitest-focus
plex_ruby_sdk!
rubocop (~> 1.60.2)
sorbet

100
README.md
View File

@@ -47,6 +47,7 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
* [SDKs](#sdks)
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Authentication](#authentication)
* [Available Resources and Operations](#available-resources-and-operations)
* [Server Selection](#server-selection)
* [Development](#development)
@@ -73,15 +74,12 @@ gem install plex_ruby_sdk
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_server_capabilities()
if ! res.object.nil?
@@ -91,6 +89,36 @@ end
```
<!-- End SDK Example Usage [usage] -->
<!-- Start Authentication [security] -->
## Authentication
### Per-Client Security Schemes
This SDK supports the following security scheme globally:
| Name | Type | Scheme |
| -------------- | ------ | ------- |
| `access_token` | apiKey | API key |
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
res = s.server.get_server_capabilities()
if ! res.object.nil?
# handle response
end
```
<!-- End Authentication [security] -->
<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations
@@ -239,27 +267,48 @@ end
### Server Variables
The default server `{protocol}://{ip}:{port}` contains variables and is set to `https://10.10.10.47:32400` by default. To override default values, the following parameters are available when initializing the SDK client instance:
* `protocol (::PlexRubySDK::ServerVariables::ServerProtocol)`
* `ip (::String)`
* `port (::String)`
### Override Server URL Per-Client
| Variable | Parameter | Supported Values | Default | Description |
| ---------- | ----------------------------------------------------------- | -------------------------- | --------------- | ---------------------------------------------- |
| `protocol` | `protocol (::PlexRubySDK::ServerVariables::ServerProtocol)` | - `"http"`<br/>- `"https"` | `"https"` | The protocol to use for the server connection |
| `ip` | `ip (::String)` | ::String | `"10.10.10.47"` | The IP address or hostname of your Plex Server |
| `port` | `port (::String)` | ::String | `"32400"` | The port of your Plex Server |
#### Example
The default server can also be overridden globally by passing a URL to the `server_url (String)` optional parameter when initializing the SDK client instance. For example:
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
protocol: "https",
ip: "e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9",
port: "40311",
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
res = s.server.get_server_capabilities()
if ! res.object.nil?
# handle response
end
```
### Override Server URL Per-Client
The default server can be overridden globally by passing a URL to the `server_url (String)` optional parameter when initializing the SDK client instance. For example:
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
server_url: "https://10.10.10.47:32400",
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_server_capabilities()
if ! res.object.nil?
@@ -274,15 +323,12 @@ The server URL can also be overridden on a per-operation basis, provided a serve
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2")
if ! res.response_bodies.nil?

View File

@@ -726,4 +726,14 @@ Based on:
### Generated
- [ruby v0.7.5] .
### Releases
- [Ruby Gems v0.7.5] https://rubygems.org/gems/plex_ruby_sdk/versions/0.7.5 - .
- [Ruby Gems v0.7.5] https://rubygems.org/gems/plex_ruby_sdk/versions/0.7.5 - .
## 2025-03-08 00:06:26
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.513.4 (2.545.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.7.6] .
### Releases
- [Ruby Gems v0.7.6] https://rubygems.org/gems/plex_ruby_sdk/versions/0.7.6 - .

View File

@@ -9,13 +9,15 @@ RuboCop::RakeTask.new
Minitest::TestTask.create
# So far default is working - leaving this here for reference.
# Minitest::TestTask.create(:test) do |t|
# t.libs << 'test'
# t.libs << 'lib'
# t.warning = false
# t.test_globs = ['test/**/*_test.rb']
# end
task :default => :test
# Developers can run all tests with:
#
# $ rake test
#
# Developers can run individual test files with:
#
# $ rake test test/parameter_test
#
# and run individual tests by adding `focus` to the line before the test definition.

View File

@@ -2,15 +2,12 @@
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_server_capabilities()
if ! res.object.nil?

File diff suppressed because it is too large Load Diff

View File

@@ -41,7 +41,7 @@ Logged in user details
| `services` | T::Array<[::PlexRubySDK::Operations::Services](../../models/operations/services.md)> | :heavy_check_mark: | N/A | |
| `subscription` | [::PlexRubySDK::Operations::Subscription](../../models/operations/subscription.md) | :heavy_check_mark: | If the accounts Plex Pass subscription is active | |
| `subscription_description` | *::String* | :heavy_check_mark: | Description of the Plex Pass subscription | |
| `subscriptions` | T::Array<[::PlexRubySDK::Operations::GetTokenDetailsSubscription](../../models/operations/gettokendetailssubscription.md)> | :heavy_check_mark: | N/A | |
| `subscriptions` | T::Array<[::PlexRubySDK::Operations::GetTokenDetailsSubscription](../../models/operations/gettokendetailssubscription.md)> | :heavy_minus_sign: | N/A | |
| `thumb` | *::String* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 |
| `title` | *::String* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle |
| `two_factor_enabled` | *T::Boolean* | :heavy_check_mark: | If two-factor authentication is enabled | |

View File

@@ -41,7 +41,7 @@ Returns the user account data with a valid auth token
| `services` | T::Array<[::PlexRubySDK::Operations::PostUsersSignInDataServices](../../models/operations/postuserssignindataservices.md)> | :heavy_check_mark: | N/A | |
| `subscription` | [::PlexRubySDK::Operations::PostUsersSignInDataSubscription](../../models/operations/postuserssignindatasubscription.md) | :heavy_check_mark: | If the accounts Plex Pass subscription is active | |
| `subscription_description` | *::String* | :heavy_check_mark: | Description of the Plex Pass subscription | |
| `subscriptions` | T::Array<[::PlexRubySDK::Operations::PostUsersSignInDataAuthenticationSubscription](../../models/operations/postuserssignindataauthenticationsubscription.md)> | :heavy_check_mark: | N/A | |
| `subscriptions` | T::Array<[::PlexRubySDK::Operations::PostUsersSignInDataAuthenticationSubscription](../../models/operations/postuserssignindataauthenticationsubscription.md)> | :heavy_minus_sign: | N/A | |
| `thumb` | *::String* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 |
| `title` | *::String* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle |
| `two_factor_enabled` | *T::Boolean* | :heavy_check_mark: | If two-factor authentication is enabled | |

View File

@@ -26,15 +26,12 @@ Get Server Activities
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.activities.get_server_activities()
if ! res.object.nil?
@@ -58,15 +55,12 @@ Cancel Server Activities
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.activities.cancel_server_activities(activity_uuid="25b71ed5-0f9d-461c-baa7-d404e9e10d3e")
if res.status_code == 200

View File

@@ -23,15 +23,12 @@ This endpoint provides the caller with a temporary token with the same access le
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.authentication.get_transient_token(type=::PlexRubySDK::Operations::GetTransientTokenQueryParamType::DELEGATION, scope=::PlexRubySDK::Operations::Scope::ALL)
if res.status_code == 200
@@ -64,15 +61,12 @@ Note: requires Plex Media Server >= 1.15.4.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.authentication.get_source_connection_information(source="server://client-identifier")
if res.status_code == 200
@@ -102,15 +96,12 @@ Get the User data from the provided X-Plex-Token
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.authentication.get_token_details()
if ! res.user_plex_account.nil?
@@ -140,10 +131,8 @@ Sign in user with username and password and return user data with Plex authentic
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
req = ::PlexRubySDK::Operations::PostUsersSignInDataRequest.new(
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
client_name: "Plex for Roku",
@@ -156,7 +145,7 @@ req = ::PlexRubySDK::Operations::PostUsersSignInDataRequest.new(
verification_code: "123456",
),
)
res = s.authentication.post_users_sign_in_data(req)
if ! res.user_plex_account.nil?

View File

@@ -23,15 +23,12 @@ Returns a list of butler tasks
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.butler.get_butler_tasks()
if ! res.object.nil?
@@ -60,15 +57,12 @@ This endpoint will attempt to start all Butler tasks that are enabled in the set
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.butler.start_all_tasks()
if res.status_code == 200
@@ -93,15 +87,12 @@ This endpoint will stop all currently running tasks and remove any scheduled tas
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.butler.stop_all_tasks()
if res.status_code == 200
@@ -130,15 +121,12 @@ This endpoint will attempt to start a single Butler task that is enabled in the
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.butler.start_task(task_name=::PlexRubySDK::Operations::TaskName::CLEAN_OLD_BUNDLES)
if res.status_code == 200
@@ -169,15 +157,12 @@ This endpoint will stop a currently running task by name, or remove it from the
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.butler.stop_task(task_name=::PlexRubySDK::Operations::PathParamTaskName::BACKUP_DATABASE)
if res.status_code == 200

View File

@@ -21,15 +21,12 @@ Get Global Hubs filtered by the parameters provided.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.hubs.get_global_hubs(count=1262.49, only_transient=::PlexRubySDK::Operations::OnlyTransient::ONE)
if ! res.object.nil?
@@ -61,14 +58,11 @@ This endpoint will return the recently added content.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetRecentlyAddedRequest.new(
content_directory_id: 470161,
@@ -78,7 +72,7 @@ req = ::PlexRubySDK::Operations::GetRecentlyAddedRequest.new(
x_plex_container_start: 0,
x_plex_container_size: 50,
)
res = s.hubs.get_recently_added(req)
if ! res.object.nil?
@@ -109,15 +103,12 @@ This endpoint will return a list of library specific hubs
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.hubs.get_library_hubs(section_id=6728.76, count=639.24, only_transient=::PlexRubySDK::Operations::QueryParamOnlyTransient::ONE)
if ! res.object.nil?

View File

@@ -35,15 +35,12 @@ This resource returns hash values for local files
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_file_hash(url="file://C:\Image.png&type=13", type=4462.17)
if res.status_code == 200
@@ -75,14 +72,11 @@ This endpoint will return the recently added content.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetRecentlyAddedLibraryRequest.new(
content_directory_id: 2,
@@ -106,7 +100,7 @@ req = ::PlexRubySDK::Operations::GetRecentlyAddedLibraryRequest.new(
x_plex_container_start: 0,
x_plex_container_size: 50,
)
res = s.library.get_recently_added_library(req)
if ! res.object.nil?
@@ -142,15 +136,12 @@ This allows a client to provide a rich interface around the media (e.g. allow so
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_all_libraries()
if ! res.object.nil?
@@ -213,15 +204,12 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)
if ! res.object.nil?
@@ -252,15 +240,12 @@ Delete a library using a specific section id
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.delete_library(section_key=9518)
if res.status_code == 200
@@ -311,14 +296,11 @@ Fetches details from a specific section of the library identified by a section k
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(
tag: ::PlexRubySDK::Operations::Tag::EDITION,
@@ -329,7 +311,7 @@ req = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(
x_plex_container_start: 0,
x_plex_container_size: 50,
)
res = s.library.get_library_items(req)
if ! res.object.nil?
@@ -360,14 +342,11 @@ Retrieves a list of all general media data for this library.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetAllMediaLibraryRequest.new(
section_key: 9518,
@@ -380,7 +359,7 @@ req = ::PlexRubySDK::Operations::GetAllMediaLibraryRequest.new(
x_plex_container_start: 0,
x_plex_container_size: 50,
)
res = s.library.get_all_media_library(req)
if ! res.object.nil?
@@ -411,15 +390,12 @@ This endpoint Refreshes all the Metadata of the library.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_refresh_library_metadata(section_key=9518, force=::PlexRubySDK::Operations::Force::ONE)
if res.status_code == 200
@@ -468,15 +444,12 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::GetSearchLibraryQueryParamType::TV_SHOW)
if ! res.object.nil?
@@ -508,15 +481,12 @@ Retrieves a list of all the genres that are found for the media in this library.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_genres_library(section_key=9518, type=::PlexRubySDK::Operations::GetGenresLibraryQueryParamType::TV_SHOW)
if ! res.object.nil?
@@ -548,15 +518,12 @@ Retrieves a list of all the countries that are found for the media in this libra
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_countries_library(section_key=9518, type=::PlexRubySDK::Operations::GetCountriesLibraryQueryParamType::TV_SHOW)
if ! res.object.nil?
@@ -588,15 +555,12 @@ Retrieves a list of all the actors that are found for the media in this library.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_actors_library(section_key=9518, type=::PlexRubySDK::Operations::GetActorsLibraryQueryParamType::TV_SHOW)
if ! res.object.nil?
@@ -628,14 +592,11 @@ Search the provided query across all library sections, or a single section, and
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetSearchAllLibrariesRequest.new(
query: "<value>",
@@ -646,7 +607,7 @@ req = ::PlexRubySDK::Operations::GetSearchAllLibrariesRequest.new(
include_collections: ::PlexRubySDK::Operations::GetSearchAllLibrariesQueryParamIncludeCollections::ENABLE,
include_external_media: ::PlexRubySDK::Operations::GetSearchAllLibrariesQueryParamIncludeExternalMedia::ENABLE,
)
res = s.library.get_search_all_libraries(req)
if ! res.object.nil?
@@ -677,14 +638,11 @@ This endpoint will return all the (meta)data of a library item specified with by
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetMediaMetaDataRequest.new(
rating_key: 9518,
@@ -702,7 +660,7 @@ req = ::PlexRubySDK::Operations::GetMediaMetaDataRequest.new(
async_refresh_analysis: true,
async_refresh_local_media_agent: true,
)
res = s.library.get_media_meta_data(req)
if ! res.object.nil?
@@ -733,15 +691,12 @@ This endpoint will return the children of of a library item specified with the r
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_metadata_children(rating_key=1539.14, include_elements="<value>")
if ! res.object.nil?
@@ -773,15 +728,12 @@ This endpoint will return the top watched content from libraries of a certain ty
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_top_watched_content(type=::PlexRubySDK::Operations::GetTopWatchedContentQueryParamType::TV_SHOW, include_guids=1)
if ! res.object.nil?
@@ -813,15 +765,12 @@ This endpoint will return the on deck content.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.library.get_on_deck()
if ! res.object.nil?

View File

@@ -22,15 +22,12 @@ This endpoint will write a single-line log message, including a level and source
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.log.log_line(level=::PlexRubySDK::Operations::Level::THREE, message="Test log message", source="Postman")
if res.status_code == 200
@@ -83,19 +80,16 @@ Ensure each parameter is properly URL-encoded to avoid interpretation issues.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = "level=4&message=Test%20message%201&source=postman\n" +
"level=3&message=Test%20message%202&source=postman\n" +
"level=1&message=Test%20message%203&source=postman"
res = s.log.log_multi_line(req)
if res.status_code == 200
@@ -126,15 +120,12 @@ This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.log.enable_paper_trail()
if res.status_code == 200

View File

@@ -23,15 +23,12 @@ This will mark the provided media key as Played.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.media.mark_played(key=59398.0)
if res.status_code == 200
@@ -61,15 +58,12 @@ This will mark the provided media key as Unplayed.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.media.mark_unplayed(key=59398.0)
if res.status_code == 200
@@ -100,15 +94,12 @@ This API command can be used to update the play progress of a media item.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.media.update_play_progress(key="<key>", time=90000.0, state="played")
if res.status_code == 200
@@ -140,14 +131,11 @@ Gets the banner image of the media item
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetBannerImageRequest.new(
rating_key: 9518,
@@ -157,7 +145,7 @@ req = ::PlexRubySDK::Operations::GetBannerImageRequest.new(
upscale: 1,
x_plex_token: "CV5xoxjTpFKUzBTShsaf",
)
res = s.media.get_banner_image(req)
if ! res.bytes.nil?
@@ -187,14 +175,11 @@ Gets the thumbnail image of the media item
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetThumbImageRequest.new(
rating_key: 9518,
@@ -204,7 +189,7 @@ req = ::PlexRubySDK::Operations::GetThumbImageRequest.new(
upscale: 1,
x_plex_token: "CV5xoxjTpFKUzBTShsaf",
)
res = s.media.get_thumb_image(req)
if ! res.bytes.nil?

View File

@@ -33,14 +33,11 @@ Create a new playlist. By default the playlist is blank. To create a playlist al
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::CreatePlaylistRequest.new(
title: "<value>",
@@ -48,7 +45,7 @@ req = ::PlexRubySDK::Operations::CreatePlaylistRequest.new(
smart: ::PlexRubySDK::Operations::Smart::ONE,
uri: "https://hoarse-testing.info/",
)
res = s.playlists.create_playlist(req)
if ! res.object.nil?
@@ -78,15 +75,12 @@ Get All Playlists given the specified filters.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.get_playlists(playlist_type=::PlexRubySDK::Operations::PlaylistType::AUDIO, smart=::PlexRubySDK::Operations::QueryParamSmart::ZERO)
if ! res.object.nil?
@@ -119,15 +113,12 @@ Smart playlist details contain the `content` attribute. This is the content URI
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.get_playlist(playlist_id=4109.48)
if ! res.object.nil?
@@ -158,15 +149,12 @@ This endpoint will delete a playlist
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.delete_playlist(playlist_id=216.22)
if res.status_code == 200
@@ -197,15 +185,12 @@ From PMS version 1.9.1 clients can also edit playlist metadata using this endpoi
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.update_playlist(playlist_id=3915.0, title="<value>", summary="<value>")
if res.status_code == 200
@@ -241,15 +226,12 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.get_playlist_contents(playlist_id=5004.46, type=::PlexRubySDK::Operations::GetPlaylistContentsQueryParamType::TV_SHOW)
if ! res.object.nil?
@@ -281,15 +263,12 @@ Clears a playlist, only works with dumb playlists. Returns the playlist.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.clear_playlist_contents(playlist_id=1893.18)
if res.status_code == 200
@@ -321,15 +300,12 @@ With a smart playlist, passing a new `uri` parameter replaces the rules for the
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.add_playlist_contents(playlist_id=8502.01, uri="server://12345/com.plexapp.plugins.library/library/metadata/1", play_queue_id=123.0)
if ! res.object.nil?
@@ -362,15 +338,12 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.playlists.upload_playlist(path="/home/barkley/playlist.m3u", force=::PlexRubySDK::Operations::QueryParamForce::ZERO, section_id=1)
if res.status_code == 200

View File

@@ -25,15 +25,12 @@ Get Companions Data
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.plex.get_companions_data()
if ! res.response_bodies.nil?
@@ -63,15 +60,12 @@ Get friends of provided auth token.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.plex.get_user_friends()
if ! res.friends.nil?
@@ -101,10 +95,8 @@ Returns the geolocation and locale data of the caller
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
res = s.plex.get_geo_data()
if ! res.geo_data.nil?
@@ -134,15 +126,12 @@ Retrieves the home data for the authenticated user, including details like home
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.plex.get_home_data()
if ! res.object.nil?
@@ -166,15 +155,12 @@ Get Plex server access tokens and server connections
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.plex.get_server_resources(client_id="3381b62b-9ab7-4e37-827b-203e9809eb58", include_https=::PlexRubySDK::Operations::IncludeHttps::ENABLE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ENABLE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ENABLE)
if ! res.plex_devices.nil?
@@ -208,10 +194,8 @@ Retrieve a Pin ID from Plex.tv to use for authentication flows
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
req = ::PlexRubySDK::Operations::GetPinRequest.new(
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
client_name: "Plex for Roku",
@@ -219,7 +203,7 @@ req = ::PlexRubySDK::Operations::GetPinRequest.new(
client_version: "2.4.1",
platform: "Roku",
)
res = s.plex.get_pin(req)
if ! res.auth_pin_container.nil?
@@ -250,10 +234,8 @@ Retrieve an Access Token from Plex.tv after the Pin has been authenticated
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
req = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
pin_id: 408895,
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
@@ -262,7 +244,7 @@ req = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
client_version: "2.4.1",
platform: "Roku",
)
res = s.plex.get_token_by_pin_id(req)
if ! res.auth_pin_container.nil?

View File

@@ -33,15 +33,12 @@ This request is intended to be very fast, and called as the user types.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.search.perform_search(query="dylan", section_id=9372.7, limit=5.0)
if res.status_code == 200
@@ -77,15 +74,12 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.search.perform_voice_search(query="dead+poop", section_id=4094.8, limit=5.0)
if res.status_code == 200
@@ -117,15 +111,12 @@ This will search the database for the string provided.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.search.get_search_results(query="110")
if ! res.object.nil?

View File

@@ -27,15 +27,12 @@ Get Server Capabilities
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_server_capabilities()
if ! res.object.nil?
@@ -59,15 +56,12 @@ Get Server Preferences
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_server_preferences()
if ! res.object.nil?
@@ -91,15 +85,12 @@ Get Available Clients
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_available_clients()
if ! res.object.nil?
@@ -123,15 +114,12 @@ Get Devices
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_devices()
if ! res.object.nil?
@@ -155,10 +143,8 @@ This request is useful to determine if the server is online or offline
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
res = s.server.get_server_identity()
if ! res.object.nil?
@@ -182,15 +168,12 @@ Returns MyPlex Account Information
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_my_plex_account()
if ! res.object.nil?
@@ -215,14 +198,11 @@ Plex's Photo transcoder is used throughout the service to serve images at specif
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(
width: 110.0,
@@ -233,7 +213,7 @@ req = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(
upscale: ::PlexRubySDK::Operations::Upscale::ONE,
url: "/library/metadata/49564/thumb/1654258204",
)
res = s.server.get_resized_photo(req)
if res.status_code == 200
@@ -263,15 +243,12 @@ Retrieves media providers and their features from the Plex server.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_media_providers(x_plex_token="CV5xoxjTpFKUzBTShsaf")
if ! res.object.nil?
@@ -301,15 +278,12 @@ Get Server List
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.server.get_server_list()
if ! res.object.nil?

View File

@@ -22,15 +22,12 @@ This will retrieve the "Now Playing" Information of the PMS.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.sessions.get_sessions()
if ! res.object.nil?
@@ -54,15 +51,12 @@ This will Retrieve a listing of all history views.
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.sessions.get_session_history(sort="<value>", account_id=1, filter=::PlexRubySDK::Operations::QueryParamFilter.new(), library_section_id=12)
if ! res.object.nil?
@@ -95,15 +89,12 @@ Get Transcode Sessions
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.sessions.get_transcode_sessions()
if ! res.object.nil?
@@ -127,15 +118,12 @@ Stop a Transcode Session
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.sessions.stop_transcode_session(session_key="zz7llzqlx8w9vnrsbnwhbmep")
if res.status_code == 200

View File

@@ -21,15 +21,12 @@ This will return the media statistics for the server
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.statistics.get_statistics(timespan=4)
if ! res.object.nil?
@@ -59,15 +56,12 @@ This will return the resources for the server
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.statistics.get_resources_statistics(timespan=4)
if ! res.object.nil?
@@ -97,15 +91,12 @@ This will return the bandwidth statistics for the server
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.statistics.get_bandwidth_statistics(timespan=4)
if ! res.object.nil?

View File

@@ -22,15 +22,12 @@ Querying status of updates
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.updater.get_update_status()
if ! res.object.nil?
@@ -54,15 +51,12 @@ Checking for updates
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.updater.check_for_updates(download=::PlexRubySDK::Operations::Download::ONE)
if res.status_code == 200
@@ -93,15 +87,12 @@ Note that these two parameters are effectively mutually exclusive. The `tonight`
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.updater.apply_updates(tonight=::PlexRubySDK::Operations::Tonight::ONE, skip=::PlexRubySDK::Operations::Skip::ONE)
if res.status_code == 200

View File

@@ -16,10 +16,8 @@ Get list of all users that are friends and have library access with the provided
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
req = ::PlexRubySDK::Operations::GetUsersRequest.new(
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
client_name: "Plex for Roku",
@@ -35,7 +33,7 @@ req = ::PlexRubySDK::Operations::GetUsersRequest.new(
platform_version: "4.3 build 1057",
x_plex_token: "CV5xoxjTpFKUzBTShsaf",
)
res = s.users.get_users(req)
if ! res.body.nil?

View File

@@ -20,14 +20,11 @@ Get the timeline for a media item
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetTimelineRequest.new(
rating_key: 23409.0,
@@ -41,7 +38,7 @@ req = ::PlexRubySDK::Operations::GetTimelineRequest.new(
play_back_time: 2000.0,
row: 1.0,
)
res = s.video.get_timeline(req)
if res.status_code == 200
@@ -71,14 +68,11 @@ Begin a Universal Transcode Session
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::StartUniversalTranscodeRequest.new(
has_mde: 1.0,
@@ -98,7 +92,7 @@ req = ::PlexRubySDK::Operations::StartUniversalTranscodeRequest.new(
add_debug_overlay: 0.0,
auto_adjust_quality: 0.0,
)
res = s.video.start_universal_transcode(req)
if res.status_code == 200

View File

@@ -19,14 +19,11 @@ Get User Watchlist
```ruby
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
s = ::PlexRubySDK::PlexAPI.new(
security: ::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
),
)
req = ::PlexRubySDK::Operations::GetWatchListRequest.new(
filter: ::PlexRubySDK::Operations::Filter::AVAILABLE,
@@ -34,7 +31,7 @@ req = ::PlexRubySDK::Operations::GetWatchListRequest.new(
x_plex_container_size: 50,
x_plex_token: "CV5xoxjTpFKUzBTShsaf",
)
res = s.watchlist.get_watch_list(req)
if ! res.object.nil?

12
lib/crystalline.rb Normal file
View File

@@ -0,0 +1,12 @@
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module Crystalline
autoload :MetadataFields, 'crystalline/metadata_fields'
end
require_relative 'crystalline/utils'
require_relative 'crystalline/t'

View File

@@ -3,7 +3,8 @@
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Crystalline
extend T::Sig
module MetadataFields
extend T::Sig
@@ -32,9 +33,13 @@ module PlexRubySDK
fields << Field.new(field_name, type, metadata)
end
def field_augmented?
true
end
def unmarshal_single(field_type, value, decoder = nil)
if field_type.respond_to? :unmarshal_json
unmarshalled = field_type.unmarshal_json(value)
if field_type.instance_of?(Class) && field_type < ::Crystalline::FieldAugmented
unmarshalled = field_type.from_dict(value)
return unmarshalled
elsif field_type.to_s == 'Object'
# rubocop:disable Lint/SuppressedException
@@ -52,14 +57,20 @@ module PlexRubySDK
end
end
sig { params(json_obj: T.any(String, T::Hash[Symbol, String])).returns(Utils::FieldAugmented) }
def unmarshal_json(json_obj)
to_build = new
sig { params(json_obj: T.any(String, T::Hash[Symbol, String])).returns(::Crystalline::FieldAugmented) }
def from_json(json_obj)
begin
d = JSON.parse(json_obj)
rescue TypeError, JSON::ParserError
d = json_obj
end
from_dict(d)
end
sig { params(d: T::Hash[Symbol, String]).returns(::Crystalline::FieldAugmented) }
def from_dict(d)
to_build = new
fields.each do |field|
field_type = field.type
if T.nilable? field_type
@@ -113,15 +124,15 @@ module PlexRubySDK
end
def marshal_single(field)
if field.respond_to? :marshal_json
field.marshal_json(encode: false)
if field.is_a? ::Crystalline::FieldAugmented
field.to_dict
else
Utils.val_to_string(field, primitives: false)
::Crystalline.val_to_string(field, primitives: false)
end
end
def marshal_json(encode: true)
d = {}
def to_dict
result = {}
fields.sort_by(&:name).each do |field|
f = send(field.name)
next if f.nil?
@@ -133,18 +144,20 @@ module PlexRubySDK
key = field.name
end
if f.is_a? Array
d[key] = f.map { |o| marshal_single(o) }
result[key] = f.map { |o| marshal_single(o) }
elsif f.is_a? Hash
d[key] = f.map { |k, v| [k, marshal_single(v)] }
result[key] = f.map { |k, v| [k, marshal_single(v)] }
else
d[key] = marshal_single(f)
result[key] = marshal_single(f)
end
end
if encode
JSON.dump(d)
else
d
end
result
end
def to_json(*args)
JSON.generate(to_dict, *args)
end
end
end

65
lib/crystalline/utils.rb Normal file
View File

@@ -0,0 +1,65 @@
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
require 'sorbet-runtime'
module Crystalline
extend T::Sig
class FieldAugmented
include MetadataFields
end
sig { params(complex: Object).returns(Object) }
def self.marshal_dict_complex(complex)
if complex.is_a? Array
complex.map { |v| Crystalline.marshal_dict_complex(v) }
elsif complex.is_a? Hash
complex.transform_values { |v| Crystalline.marshal_dict_complex(v) }
elsif complex.is_a? Crystalline::FieldAugmented
complex.to_dict
else
complex
end
end
def self.marshal_json_complex(complex)
JSON.dump(marshal_dict_complex(complex))
end
sig { params(data: Object, type: Object).returns(Object) }
def self.unmarshal_complex(data, type)
unmarshal_json(data, type)
end
sig { params(data: Object, type: Object).returns(Object) }
def self.unmarshal_json(data, type)
if T.simplifiable? type
type = T.simplify_type type
end
if type.instance_of?(Class) && type < ::Crystalline::FieldAugmented
type.from_dict(data)
elsif T.arr? type
data.map { |v| Crystalline.unmarshal_complex(v, T.arr_of(type)) }
elsif T.hash? type
data.transform_values { |v| Crystalline.unmarshal_complex(v, T.hash_of(type)) }
else
data
end
end
sig { params(val: Object, primitives: T::Boolean).returns(Object) }
def self.val_to_string(val, primitives: true)
if val.is_a? T::Enum
val.serialize
elsif val.is_a? DateTime
val.strftime('%Y-%m-%dT%H:%M:%S.%NZ')
elsif primitives
val.to_s
else
val
end
end
end

View File

@@ -27,7 +27,6 @@ module PlexRubySDK
autoload :Users, 'plex_ruby_sdk/users'
end
require_relative 'plex_ruby_sdk/utils/t'
require_relative 'plex_ruby_sdk/utils/utils'
require_relative 'plex_ruby_sdk/utils/metadata_fields'
require_relative 'crystalline'
require_relative 'plex_ruby_sdk/sdkconfiguration'

View File

@@ -39,7 +39,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -49,17 +50,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerActivitiesResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetServerActivitiesResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerActivitiesBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetServerActivitiesBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetServerActivitiesUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetServerActivitiesUnauthorized)
res.unauthorized = out
end
end
@@ -90,7 +91,8 @@ module PlexRubySDK
r = @sdk_configuration.client.delete(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -101,12 +103,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::CancelServerActivitiesBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::CancelServerActivitiesBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::CancelServerActivitiesUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::CancelServerActivitiesUnauthorized)
res.unauthorized = out
end
end

View File

@@ -51,7 +51,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -62,12 +63,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTransientTokenBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTransientTokenBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTransientTokenUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTransientTokenUnauthorized)
res.unauthorized = out
end
end
@@ -97,7 +98,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -108,12 +110,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSourceConnectionInformationBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSourceConnectionInformationBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSourceConnectionInformationUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSourceConnectionInformationUnauthorized)
res.unauthorized = out
end
end
@@ -136,7 +138,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -146,17 +149,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTokenDetailsUserPlexAccount)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTokenDetailsUserPlexAccount)
res.user_plex_account = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTokenDetailsBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTokenDetailsBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTokenDetailsUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTokenDetailsUnauthorized)
res.unauthorized = out
end
end
@@ -197,17 +200,17 @@ module PlexRubySDK
)
if r.status == 201
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PostUsersSignInDataUserPlexAccount)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::PostUsersSignInDataUserPlexAccount)
res.user_plex_account = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PostUsersSignInDataBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::PostUsersSignInDataBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::PostUsersSignInDataUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::PostUsersSignInDataUnauthorized)
res.unauthorized = out
end
end

View File

@@ -33,7 +33,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -43,17 +44,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetButlerTasksResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetButlerTasksResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetButlerTasksBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetButlerTasksBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetButlerTasksUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetButlerTasksUnauthorized)
res.unauthorized = out
end
end
@@ -80,7 +81,8 @@ module PlexRubySDK
r = @sdk_configuration.client.post(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -91,12 +93,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StartAllTasksBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StartAllTasksBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StartAllTasksUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StartAllTasksUnauthorized)
res.unauthorized = out
end
end
@@ -119,7 +121,8 @@ module PlexRubySDK
r = @sdk_configuration.client.delete(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -130,12 +133,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StopAllTasksBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StopAllTasksBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StopAllTasksUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StopAllTasksUnauthorized)
res.unauthorized = out
end
end
@@ -171,7 +174,8 @@ module PlexRubySDK
r = @sdk_configuration.client.post(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -182,12 +186,12 @@ module PlexRubySDK
if [200, 202].include?(r.status)
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StartTaskBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StartTaskBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StartTaskUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StartTaskUnauthorized)
res.unauthorized = out
end
end
@@ -219,7 +223,8 @@ module PlexRubySDK
r = @sdk_configuration.client.delete(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -230,12 +235,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StopTaskBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StopTaskBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::StopTaskUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::StopTaskUnauthorized)
res.unauthorized = out
end
elsif r.status == 404

View File

@@ -40,7 +40,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -50,17 +51,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGlobalHubsResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetGlobalHubsResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGlobalHubsBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetGlobalHubsBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGlobalHubsUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetGlobalHubsUnauthorized)
res.unauthorized = out
end
end
@@ -85,7 +86,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -95,7 +97,7 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetRecentlyAddedResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetRecentlyAddedResponseBody)
res.object = out
end
elsif [400, 401].include?(r.status)
@@ -132,7 +134,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -142,17 +145,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryHubsResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryHubsResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryHubsBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryHubsBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryHubsUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryHubsUnauthorized)
res.unauthorized = out
end
end

View File

@@ -40,7 +40,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -51,12 +52,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetFileHashBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetFileHashBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetFileHashUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetFileHashUnauthorized)
res.unauthorized = out
end
end
@@ -81,7 +82,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -91,17 +93,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetRecentlyAddedLibraryResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetRecentlyAddedLibraryResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetRecentlyAddedLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetRecentlyAddedLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetRecentlyAddedLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetRecentlyAddedLibraryUnauthorized)
res.unauthorized = out
end
end
@@ -129,7 +131,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -139,17 +142,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllLibrariesResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetAllLibrariesResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllLibrariesBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetAllLibrariesBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllLibrariesUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetAllLibrariesUnauthorized)
res.unauthorized = out
end
end
@@ -222,7 +225,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -232,17 +236,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryDetailsResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryDetailsResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryDetailsBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryDetailsBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryDetailsUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryDetailsUnauthorized)
res.unauthorized = out
end
end
@@ -273,7 +277,8 @@ module PlexRubySDK
r = @sdk_configuration.client.delete(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -284,12 +289,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::DeleteLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::DeleteLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::DeleteLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::DeleteLibraryUnauthorized)
res.unauthorized = out
end
end
@@ -339,7 +344,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -349,17 +355,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryItemsResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryItemsResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryItemsBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryItemsBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetLibraryItemsUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetLibraryItemsUnauthorized)
res.unauthorized = out
end
end
@@ -389,7 +395,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -399,17 +406,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllMediaLibraryResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetAllMediaLibraryResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllMediaLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetAllMediaLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetAllMediaLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetAllMediaLibraryUnauthorized)
res.unauthorized = out
end
elsif r.status == 404
@@ -445,7 +452,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -456,12 +464,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetRefreshLibraryMetadataBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetRefreshLibraryMetadataBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetRefreshLibraryMetadataUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetRefreshLibraryMetadataUnauthorized)
res.unauthorized = out
end
end
@@ -513,7 +521,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -523,17 +532,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchLibraryResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSearchLibraryResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSearchLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSearchLibraryUnauthorized)
res.unauthorized = out
end
end
@@ -568,7 +577,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -578,17 +588,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGenresLibraryResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetGenresLibraryResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGenresLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetGenresLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGenresLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetGenresLibraryUnauthorized)
res.unauthorized = out
end
elsif r.status == 404
@@ -624,7 +634,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -634,17 +645,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetCountriesLibraryResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetCountriesLibraryResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetCountriesLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetCountriesLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetCountriesLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetCountriesLibraryUnauthorized)
res.unauthorized = out
end
elsif r.status == 404
@@ -680,7 +691,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -690,17 +702,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetActorsLibraryResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetActorsLibraryResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetActorsLibraryBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetActorsLibraryBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetActorsLibraryUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetActorsLibraryUnauthorized)
res.unauthorized = out
end
elsif r.status == 404
@@ -726,7 +738,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -736,17 +749,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchAllLibrariesResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSearchAllLibrariesResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchAllLibrariesBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSearchAllLibrariesBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetSearchAllLibrariesUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetSearchAllLibrariesUnauthorized)
res.unauthorized = out
end
end
@@ -776,7 +789,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -786,17 +800,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaMetaDataResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetMediaMetaDataResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaMetaDataBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetMediaMetaDataBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMediaMetaDataUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetMediaMetaDataUnauthorized)
res.unauthorized = out
end
elsif r.status == 404
@@ -832,7 +846,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -842,17 +857,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMetadataChildrenResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetMetadataChildrenResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMetadataChildrenBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetMetadataChildrenBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetMetadataChildrenUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetMetadataChildrenUnauthorized)
res.unauthorized = out
end
end
@@ -882,7 +897,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -892,17 +908,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTopWatchedContentResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTopWatchedContentResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTopWatchedContentBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTopWatchedContentBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetTopWatchedContentUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetTopWatchedContentUnauthorized)
res.unauthorized = out
end
end
@@ -925,7 +941,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -935,17 +952,17 @@ module PlexRubySDK
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetOnDeckResponseBody)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetOnDeckResponseBody)
res.object = out
end
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetOnDeckBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetOnDeckBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetOnDeckUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetOnDeckUnauthorized)
res.unauthorized = out
end
end

View File

@@ -42,7 +42,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -53,12 +54,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::LogLineBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::LogLineBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::LogLineUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::LogLineUnauthorized)
res.unauthorized = out
end
end
@@ -104,7 +105,8 @@ module PlexRubySDK
r = @sdk_configuration.client.post(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
if form
req.body = Utils.encode_form(form)
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
@@ -122,12 +124,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::LogMultiLineBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::LogMultiLineBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::LogMultiLineUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::LogMultiLineUnauthorized)
res.unauthorized = out
end
end
@@ -150,7 +152,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -161,12 +164,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::EnablePaperTrailBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::EnablePaperTrailBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::EnablePaperTrailUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::EnablePaperTrailUnauthorized)
res.unauthorized = out
end
elsif r.status == 403

View File

@@ -39,7 +39,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -50,12 +51,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::MarkPlayedBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::MarkPlayedBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::MarkPlayedUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::MarkPlayedUnauthorized)
res.unauthorized = out
end
end
@@ -83,7 +84,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -94,12 +96,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::MarkUnplayedBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::MarkUnplayedBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::MarkUnplayedUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::MarkUnplayedUnauthorized)
res.unauthorized = out
end
end
@@ -130,7 +132,8 @@ module PlexRubySDK
r = @sdk_configuration.client.post(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -141,12 +144,12 @@ module PlexRubySDK
if r.status == 200
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::UpdatePlayProgressBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::UpdatePlayProgressBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::UpdatePlayProgressUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::UpdatePlayProgressUnauthorized)
res.unauthorized = out
end
end
@@ -175,7 +178,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -188,12 +192,12 @@ module PlexRubySDK
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'image/jpeg')
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetBannerImageBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetBannerImageBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetBannerImageUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetBannerImageUnauthorized)
res.unauthorized = out
end
end
@@ -222,7 +226,8 @@ module PlexRubySDK
r = @sdk_configuration.client.get(url) do |req|
req.headers = headers
req.params = query_params
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
Utils.configure_request_security(req, security) if !security.nil?
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -235,12 +240,12 @@ module PlexRubySDK
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'image/jpeg')
elsif r.status == 400
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetThumbImageBadRequest)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetThumbImageBadRequest)
res.bad_request = out
end
elsif r.status == 401
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetThumbImageUnauthorized)
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::PlexRubySDK::Operations::GetThumbImageUnauthorized)
res.unauthorized = out
end
end

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class Account < ::PlexRubySDK::Utils::FieldAugmented
class Account < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class Action < ::PlexRubySDK::Utils::FieldAugmented
class Action < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class Activity < ::PlexRubySDK::Utils::FieldAugmented
class Activity < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class AddPlaylistContentsBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class AddPlaylistContentsErrors < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class AddPlaylistContentsMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsMediaContainer < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class AddPlaylistContentsMetadata < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsMetadata < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class AddPlaylistContentsPlaylistsErrors < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsPlaylistsErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class AddPlaylistContentsRequest < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsRequest < ::Crystalline::FieldAugmented
extend T::Sig
# the ID of the playlist

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class AddPlaylistContentsResponse < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Playlist Updated
class AddPlaylistContentsResponseBody < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsResponseBody < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class AddPlaylistContentsUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class AddPlaylistContentsUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class ApplyUpdatesBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class ApplyUpdatesBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ApplyUpdatesErrors < ::PlexRubySDK::Utils::FieldAugmented
class ApplyUpdatesErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ApplyUpdatesRequest < ::PlexRubySDK::Utils::FieldAugmented
class ApplyUpdatesRequest < ::Crystalline::FieldAugmented
extend T::Sig
# Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`.

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ApplyUpdatesResponse < ::PlexRubySDK::Utils::FieldAugmented
class ApplyUpdatesResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class ApplyUpdatesUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class ApplyUpdatesUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ApplyUpdatesUpdaterErrors < ::PlexRubySDK::Utils::FieldAugmented
class ApplyUpdatesUpdaterErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -11,7 +11,7 @@ module PlexRubySDK
].freeze
class Billing < ::PlexRubySDK::Utils::FieldAugmented
class Billing < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ButlerTask < ::PlexRubySDK::Utils::FieldAugmented
class ButlerTask < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ButlerTasks < ::PlexRubySDK::Utils::FieldAugmented
class ButlerTasks < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CancelServerActivitiesActivitiesErrors < ::PlexRubySDK::Utils::FieldAugmented
class CancelServerActivitiesActivitiesErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class CancelServerActivitiesBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class CancelServerActivitiesBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CancelServerActivitiesErrors < ::PlexRubySDK::Utils::FieldAugmented
class CancelServerActivitiesErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CancelServerActivitiesRequest < ::PlexRubySDK::Utils::FieldAugmented
class CancelServerActivitiesRequest < ::Crystalline::FieldAugmented
extend T::Sig
# The UUID of the activity to cancel.

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CancelServerActivitiesResponse < ::PlexRubySDK::Utils::FieldAugmented
class CancelServerActivitiesResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class CancelServerActivitiesUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class CancelServerActivitiesUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class CheckForUpdatesBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class CheckForUpdatesBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CheckForUpdatesErrors < ::PlexRubySDK::Utils::FieldAugmented
class CheckForUpdatesErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CheckForUpdatesRequest < ::PlexRubySDK::Utils::FieldAugmented
class CheckForUpdatesRequest < ::Crystalline::FieldAugmented
extend T::Sig
# Indicate that you want to start download any updates found.

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CheckForUpdatesResponse < ::PlexRubySDK::Utils::FieldAugmented
class CheckForUpdatesResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class CheckForUpdatesUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class CheckForUpdatesUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CheckForUpdatesUpdaterErrors < ::PlexRubySDK::Utils::FieldAugmented
class CheckForUpdatesUpdaterErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class ClearPlaylistContentsBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class ClearPlaylistContentsBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ClearPlaylistContentsErrors < ::PlexRubySDK::Utils::FieldAugmented
class ClearPlaylistContentsErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ClearPlaylistContentsPlaylistsErrors < ::PlexRubySDK::Utils::FieldAugmented
class ClearPlaylistContentsPlaylistsErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ClearPlaylistContentsRequest < ::PlexRubySDK::Utils::FieldAugmented
class ClearPlaylistContentsRequest < ::Crystalline::FieldAugmented
extend T::Sig
# the ID of the playlist

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class ClearPlaylistContentsResponse < ::PlexRubySDK::Utils::FieldAugmented
class ClearPlaylistContentsResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class ClearPlaylistContentsUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class ClearPlaylistContentsUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class Collection < ::PlexRubySDK::Utils::FieldAugmented
class Collection < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -11,7 +11,7 @@ module PlexRubySDK
].freeze
class Connections < ::PlexRubySDK::Utils::FieldAugmented
class Connections < ::Crystalline::FieldAugmented
extend T::Sig
# The (ip) address or domain name used for the connection

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class Context < ::PlexRubySDK::Utils::FieldAugmented
class Context < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class Country < ::PlexRubySDK::Utils::FieldAugmented
class Country < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class CreatePlaylistBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CreatePlaylistErrors < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CreatePlaylistMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistMediaContainer < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CreatePlaylistMetadata < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistMetadata < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CreatePlaylistPlaylistsErrors < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistPlaylistsErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CreatePlaylistRequest < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistRequest < ::Crystalline::FieldAugmented
extend T::Sig
# whether the playlist is smart or not

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class CreatePlaylistResponse < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# returns all playlists
class CreatePlaylistResponseBody < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistResponseBody < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class CreatePlaylistUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class CreatePlaylistUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class DeleteLibraryBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class DeleteLibraryBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class DeleteLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
class DeleteLibraryErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class DeleteLibraryLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
class DeleteLibraryLibraryErrors < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class DeleteLibraryRequest < ::PlexRubySDK::Utils::FieldAugmented
class DeleteLibraryRequest < ::Crystalline::FieldAugmented
extend T::Sig
# The unique key of the Plex library.

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class DeleteLibraryResponse < ::PlexRubySDK::Utils::FieldAugmented
class DeleteLibraryResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
class DeleteLibraryUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
class DeleteLibraryUnauthorized < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
# Bad Request - A parameter was not specified, or was specified incorrectly.
class DeletePlaylistBadRequest < ::PlexRubySDK::Utils::FieldAugmented
class DeletePlaylistBadRequest < ::Crystalline::FieldAugmented
extend T::Sig

View File

@@ -8,7 +8,7 @@ module PlexRubySDK
module Operations
class DeletePlaylistErrors < ::PlexRubySDK::Utils::FieldAugmented
class DeletePlaylistErrors < ::Crystalline::FieldAugmented
extend T::Sig

Some files were not shown because too many files have changed in this diff Show More