mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 04:20:52 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.4
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -7,15 +7,18 @@ generation:
|
|||||||
useClassNamesForArrayFields: true
|
useClassNamesForArrayFields: true
|
||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: true
|
nameResolutionDec2023: true
|
||||||
|
nameResolutionFeb2025: false
|
||||||
parameterOrderingFeb2024: true
|
parameterOrderingFeb2024: true
|
||||||
requestResponseComponentNamesFeb2024: true
|
requestResponseComponentNamesFeb2024: true
|
||||||
|
securityFeb2025: false
|
||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
ruby:
|
ruby:
|
||||||
version: 0.7.5
|
version: 0.7.6
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
description: Ruby Client SDK Generated by Speakeasy
|
description: Ruby Client SDK Generated by Speakeasy
|
||||||
|
flattenGlobalSecurity: false
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.488.0
|
speakeasyVersion: 1.513.4
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -9,19 +9,19 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:0efb9039972533bf1190dfc1ffb377429a8e486b6299442e732f662c1ffbeca6
|
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
|
||||||
sourceBlobDigest: sha256:038d73166cc9db17f514d511cfe4365ea032f4ebcb247fa86b7aa1bba0e1ab46
|
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1739232482
|
- speakeasy-sdk-regen-1741392402
|
||||||
targets:
|
targets:
|
||||||
plexruby:
|
plexruby:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:0efb9039972533bf1190dfc1ffb377429a8e486b6299442e732f662c1ffbeca6
|
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
|
||||||
sourceBlobDigest: sha256:038d73166cc9db17f514d511cfe4365ea032f4ebcb247fa86b7aa1bba0e1ab46
|
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
|
||||||
codeSamplesNamespace: code-samples-ruby-plexruby
|
codeSamplesNamespace: code-samples-ruby-plexruby
|
||||||
codeSamplesRevisionDigest: sha256:21075555343fdaee57b8bcb81c1dc0b14ba00606b2fc9fc27e4a95c7a6ad3c80
|
codeSamplesRevisionDigest: sha256:4259370282112655285050483b760855bebec41a60b5528b24ef2c82431a123f
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
plex_ruby_sdk (0.7.5)
|
plex_ruby_sdk (0.7.6)
|
||||||
faraday
|
faraday
|
||||||
faraday-multipart
|
faraday-multipart
|
||||||
rack
|
rack
|
||||||
@@ -25,6 +25,8 @@ GEM
|
|||||||
language_server-protocol (3.17.0.3)
|
language_server-protocol (3.17.0.3)
|
||||||
logger (1.6.1)
|
logger (1.6.1)
|
||||||
minitest (5.25.2)
|
minitest (5.25.2)
|
||||||
|
minitest-focus (1.4.0)
|
||||||
|
minitest (>= 4, < 6)
|
||||||
multipart-post (2.4.1)
|
multipart-post (2.4.1)
|
||||||
net-http (0.5.0)
|
net-http (0.5.0)
|
||||||
uri
|
uri
|
||||||
@@ -96,6 +98,7 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
minitest
|
minitest
|
||||||
|
minitest-focus
|
||||||
plex_ruby_sdk!
|
plex_ruby_sdk!
|
||||||
rubocop (~> 1.60.2)
|
rubocop (~> 1.60.2)
|
||||||
sorbet
|
sorbet
|
||||||
|
|||||||
90
README.md
90
README.md
@@ -47,6 +47,7 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
|
|||||||
* [SDKs](#sdks)
|
* [SDKs](#sdks)
|
||||||
* [SDK Installation](#sdk-installation)
|
* [SDK Installation](#sdk-installation)
|
||||||
* [SDK Example Usage](#sdk-example-usage)
|
* [SDK Example Usage](#sdk-example-usage)
|
||||||
|
* [Authentication](#authentication)
|
||||||
* [Available Resources and Operations](#available-resources-and-operations)
|
* [Available Resources and Operations](#available-resources-and-operations)
|
||||||
* [Server Selection](#server-selection)
|
* [Server Selection](#server-selection)
|
||||||
* [Development](#development)
|
* [Development](#development)
|
||||||
@@ -73,14 +74,11 @@ gem install plex_ruby_sdk
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_capabilities()
|
res = s.server.get_server_capabilities()
|
||||||
|
|
||||||
@@ -91,6 +89,36 @@ end
|
|||||||
```
|
```
|
||||||
<!-- End SDK Example Usage [usage] -->
|
<!-- 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] -->
|
<!-- Start Available Resources and Operations [operations] -->
|
||||||
## Available Resources and Operations
|
## Available Resources and Operations
|
||||||
|
|
||||||
@@ -239,26 +267,47 @@ end
|
|||||||
### Server Variables
|
### 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:
|
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
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
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(
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
server_url: "https://10.10.10.47:32400",
|
server_url: "https://10.10.10.47:32400",
|
||||||
)
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_capabilities()
|
res = s.server.get_server_capabilities()
|
||||||
|
|
||||||
@@ -274,14 +323,11 @@ The server URL can also be overridden on a per-operation basis, provided a serve
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2")
|
res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2")
|
||||||
|
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -727,3 +727,13 @@ Based on:
|
|||||||
- [ruby v0.7.5] .
|
- [ruby v0.7.5] .
|
||||||
### Releases
|
### 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 - .
|
||||||
20
Rakefile
20
Rakefile
@@ -9,13 +9,15 @@ RuboCop::RakeTask.new
|
|||||||
|
|
||||||
Minitest::TestTask.create
|
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
|
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.
|
||||||
9
USAGE.md
9
USAGE.md
@@ -2,14 +2,11 @@
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_capabilities()
|
res = s.server.get_server_capabilities()
|
||||||
|
|
||||||
|
|||||||
1438
codeSamples.yaml
1438
codeSamples.yaml
File diff suppressed because it is too large
Load Diff
@@ -41,7 +41,7 @@ Logged in user details
|
|||||||
| `services` | T::Array<[::PlexRubySDK::Operations::Services](../../models/operations/services.md)> | :heavy_check_mark: | N/A | |
|
| `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 account’s Plex Pass subscription is active | |
|
| `subscription` | [::PlexRubySDK::Operations::Subscription](../../models/operations/subscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | |
|
||||||
| `subscription_description` | *::String* | :heavy_check_mark: | Description of the Plex Pass subscription | |
|
| `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 |
|
| `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 |
|
| `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 | |
|
| `two_factor_enabled` | *T::Boolean* | :heavy_check_mark: | If two-factor authentication is enabled | |
|
||||||
|
|||||||
@@ -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 | |
|
| `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 account’s Plex Pass subscription is active | |
|
| `subscription` | [::PlexRubySDK::Operations::PostUsersSignInDataSubscription](../../models/operations/postuserssignindatasubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | |
|
||||||
| `subscription_description` | *::String* | :heavy_check_mark: | Description of the Plex Pass subscription | |
|
| `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 |
|
| `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 |
|
| `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 | |
|
| `two_factor_enabled` | *T::Boolean* | :heavy_check_mark: | If two-factor authentication is enabled | |
|
||||||
|
|||||||
@@ -26,14 +26,11 @@ Get Server Activities
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.activities.get_server_activities()
|
res = s.activities.get_server_activities()
|
||||||
|
|
||||||
@@ -58,14 +55,11 @@ Cancel Server Activities
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.activities.cancel_server_activities(activity_uuid="25b71ed5-0f9d-461c-baa7-d404e9e10d3e")
|
res = s.activities.cancel_server_activities(activity_uuid="25b71ed5-0f9d-461c-baa7-d404e9e10d3e")
|
||||||
|
|
||||||
|
|||||||
@@ -23,14 +23,11 @@ This endpoint provides the caller with a temporary token with the same access le
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.authentication.get_transient_token(type=::PlexRubySDK::Operations::GetTransientTokenQueryParamType::DELEGATION, scope=::PlexRubySDK::Operations::Scope::ALL)
|
res = s.authentication.get_transient_token(type=::PlexRubySDK::Operations::GetTransientTokenQueryParamType::DELEGATION, scope=::PlexRubySDK::Operations::Scope::ALL)
|
||||||
|
|
||||||
@@ -64,14 +61,11 @@ Note: requires Plex Media Server >= 1.15.4.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.authentication.get_source_connection_information(source="server://client-identifier")
|
res = s.authentication.get_source_connection_information(source="server://client-identifier")
|
||||||
|
|
||||||
@@ -102,14 +96,11 @@ Get the User data from the provided X-Plex-Token
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.authentication.get_token_details()
|
res = s.authentication.get_token_details()
|
||||||
|
|
||||||
@@ -140,10 +131,8 @@ Sign in user with username and password and return user data with Plex authentic
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::PostUsersSignInDataRequest.new(
|
req = ::PlexRubySDK::Operations::PostUsersSignInDataRequest.new(
|
||||||
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
client_name: "Plex for Roku",
|
client_name: "Plex for Roku",
|
||||||
|
|||||||
@@ -23,14 +23,11 @@ Returns a list of butler tasks
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.butler.get_butler_tasks()
|
res = s.butler.get_butler_tasks()
|
||||||
|
|
||||||
@@ -60,14 +57,11 @@ This endpoint will attempt to start all Butler tasks that are enabled in the set
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.butler.start_all_tasks()
|
res = s.butler.start_all_tasks()
|
||||||
|
|
||||||
@@ -93,14 +87,11 @@ This endpoint will stop all currently running tasks and remove any scheduled tas
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.butler.stop_all_tasks()
|
res = s.butler.stop_all_tasks()
|
||||||
|
|
||||||
@@ -130,14 +121,11 @@ This endpoint will attempt to start a single Butler task that is enabled in the
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.butler.start_task(task_name=::PlexRubySDK::Operations::TaskName::CLEAN_OLD_BUNDLES)
|
res = s.butler.start_task(task_name=::PlexRubySDK::Operations::TaskName::CLEAN_OLD_BUNDLES)
|
||||||
|
|
||||||
@@ -169,14 +157,11 @@ This endpoint will stop a currently running task by name, or remove it from the
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.butler.stop_task(task_name=::PlexRubySDK::Operations::PathParamTaskName::BACKUP_DATABASE)
|
res = s.butler.stop_task(task_name=::PlexRubySDK::Operations::PathParamTaskName::BACKUP_DATABASE)
|
||||||
|
|
||||||
|
|||||||
@@ -21,14 +21,11 @@ Get Global Hubs filtered by the parameters provided.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.hubs.get_global_hubs(count=1262.49, only_transient=::PlexRubySDK::Operations::OnlyTransient::ONE)
|
res = s.hubs.get_global_hubs(count=1262.49, only_transient=::PlexRubySDK::Operations::OnlyTransient::ONE)
|
||||||
|
|
||||||
@@ -61,14 +58,11 @@ This endpoint will return the recently added content.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetRecentlyAddedRequest.new(
|
req = ::PlexRubySDK::Operations::GetRecentlyAddedRequest.new(
|
||||||
content_directory_id: 470161,
|
content_directory_id: 470161,
|
||||||
@@ -109,14 +103,11 @@ This endpoint will return a list of library specific hubs
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
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)
|
res = s.hubs.get_library_hubs(section_id=6728.76, count=639.24, only_transient=::PlexRubySDK::Operations::QueryParamOnlyTransient::ONE)
|
||||||
|
|
||||||
|
|||||||
@@ -35,14 +35,11 @@ This resource returns hash values for local files
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_file_hash(url="file://C:\Image.png&type=13", type=4462.17)
|
res = s.library.get_file_hash(url="file://C:\Image.png&type=13", type=4462.17)
|
||||||
|
|
||||||
@@ -75,14 +72,11 @@ This endpoint will return the recently added content.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetRecentlyAddedLibraryRequest.new(
|
req = ::PlexRubySDK::Operations::GetRecentlyAddedLibraryRequest.new(
|
||||||
content_directory_id: 2,
|
content_directory_id: 2,
|
||||||
@@ -142,14 +136,11 @@ This allows a client to provide a rich interface around the media (e.g. allow so
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_all_libraries()
|
res = s.library.get_all_libraries()
|
||||||
|
|
||||||
@@ -213,14 +204,11 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)
|
res = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)
|
||||||
|
|
||||||
@@ -252,14 +240,11 @@ Delete a library using a specific section id
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.delete_library(section_key=9518)
|
res = s.library.delete_library(section_key=9518)
|
||||||
|
|
||||||
@@ -311,14 +296,11 @@ Fetches details from a specific section of the library identified by a section k
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(
|
req = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(
|
||||||
tag: ::PlexRubySDK::Operations::Tag::EDITION,
|
tag: ::PlexRubySDK::Operations::Tag::EDITION,
|
||||||
@@ -360,14 +342,11 @@ Retrieves a list of all general media data for this library.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetAllMediaLibraryRequest.new(
|
req = ::PlexRubySDK::Operations::GetAllMediaLibraryRequest.new(
|
||||||
section_key: 9518,
|
section_key: 9518,
|
||||||
@@ -411,14 +390,11 @@ This endpoint Refreshes all the Metadata of the library.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_refresh_library_metadata(section_key=9518, force=::PlexRubySDK::Operations::Force::ONE)
|
res = s.library.get_refresh_library_metadata(section_key=9518, force=::PlexRubySDK::Operations::Force::ONE)
|
||||||
|
|
||||||
@@ -468,14 +444,11 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::GetSearchLibraryQueryParamType::TV_SHOW)
|
res = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::GetSearchLibraryQueryParamType::TV_SHOW)
|
||||||
|
|
||||||
@@ -508,14 +481,11 @@ Retrieves a list of all the genres that are found for the media in this library.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_genres_library(section_key=9518, type=::PlexRubySDK::Operations::GetGenresLibraryQueryParamType::TV_SHOW)
|
res = s.library.get_genres_library(section_key=9518, type=::PlexRubySDK::Operations::GetGenresLibraryQueryParamType::TV_SHOW)
|
||||||
|
|
||||||
@@ -548,14 +518,11 @@ Retrieves a list of all the countries that are found for the media in this libra
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_countries_library(section_key=9518, type=::PlexRubySDK::Operations::GetCountriesLibraryQueryParamType::TV_SHOW)
|
res = s.library.get_countries_library(section_key=9518, type=::PlexRubySDK::Operations::GetCountriesLibraryQueryParamType::TV_SHOW)
|
||||||
|
|
||||||
@@ -588,14 +555,11 @@ Retrieves a list of all the actors that are found for the media in this library.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_actors_library(section_key=9518, type=::PlexRubySDK::Operations::GetActorsLibraryQueryParamType::TV_SHOW)
|
res = s.library.get_actors_library(section_key=9518, type=::PlexRubySDK::Operations::GetActorsLibraryQueryParamType::TV_SHOW)
|
||||||
|
|
||||||
@@ -628,14 +592,11 @@ Search the provided query across all library sections, or a single section, and
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetSearchAllLibrariesRequest.new(
|
req = ::PlexRubySDK::Operations::GetSearchAllLibrariesRequest.new(
|
||||||
query: "<value>",
|
query: "<value>",
|
||||||
@@ -677,14 +638,11 @@ This endpoint will return all the (meta)data of a library item specified with by
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetMediaMetaDataRequest.new(
|
req = ::PlexRubySDK::Operations::GetMediaMetaDataRequest.new(
|
||||||
rating_key: 9518,
|
rating_key: 9518,
|
||||||
@@ -733,14 +691,11 @@ This endpoint will return the children of of a library item specified with the r
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_metadata_children(rating_key=1539.14, include_elements="<value>")
|
res = s.library.get_metadata_children(rating_key=1539.14, include_elements="<value>")
|
||||||
|
|
||||||
@@ -773,14 +728,11 @@ This endpoint will return the top watched content from libraries of a certain ty
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_top_watched_content(type=::PlexRubySDK::Operations::GetTopWatchedContentQueryParamType::TV_SHOW, include_guids=1)
|
res = s.library.get_top_watched_content(type=::PlexRubySDK::Operations::GetTopWatchedContentQueryParamType::TV_SHOW, include_guids=1)
|
||||||
|
|
||||||
@@ -813,14 +765,11 @@ This endpoint will return the on deck content.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.library.get_on_deck()
|
res = s.library.get_on_deck()
|
||||||
|
|
||||||
|
|||||||
@@ -22,14 +22,11 @@ This endpoint will write a single-line log message, including a level and source
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.log.log_line(level=::PlexRubySDK::Operations::Level::THREE, message="Test log message", source="Postman")
|
res = s.log.log_line(level=::PlexRubySDK::Operations::Level::THREE, message="Test log message", source="Postman")
|
||||||
|
|
||||||
@@ -83,14 +80,11 @@ Ensure each parameter is properly URL-encoded to avoid interpretation issues.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = "level=4&message=Test%20message%201&source=postman\n" +
|
req = "level=4&message=Test%20message%201&source=postman\n" +
|
||||||
"level=3&message=Test%20message%202&source=postman\n" +
|
"level=3&message=Test%20message%202&source=postman\n" +
|
||||||
@@ -126,14 +120,11 @@ This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.log.enable_paper_trail()
|
res = s.log.enable_paper_trail()
|
||||||
|
|
||||||
|
|||||||
@@ -23,14 +23,11 @@ This will mark the provided media key as Played.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.media.mark_played(key=59398.0)
|
res = s.media.mark_played(key=59398.0)
|
||||||
|
|
||||||
@@ -61,14 +58,11 @@ This will mark the provided media key as Unplayed.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.media.mark_unplayed(key=59398.0)
|
res = s.media.mark_unplayed(key=59398.0)
|
||||||
|
|
||||||
@@ -100,14 +94,11 @@ This API command can be used to update the play progress of a media item.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.media.update_play_progress(key="<key>", time=90000.0, state="played")
|
res = s.media.update_play_progress(key="<key>", time=90000.0, state="played")
|
||||||
|
|
||||||
@@ -140,14 +131,11 @@ Gets the banner image of the media item
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetBannerImageRequest.new(
|
req = ::PlexRubySDK::Operations::GetBannerImageRequest.new(
|
||||||
rating_key: 9518,
|
rating_key: 9518,
|
||||||
@@ -187,14 +175,11 @@ Gets the thumbnail image of the media item
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetThumbImageRequest.new(
|
req = ::PlexRubySDK::Operations::GetThumbImageRequest.new(
|
||||||
rating_key: 9518,
|
rating_key: 9518,
|
||||||
|
|||||||
@@ -33,14 +33,11 @@ Create a new playlist. By default the playlist is blank. To create a playlist al
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::CreatePlaylistRequest.new(
|
req = ::PlexRubySDK::Operations::CreatePlaylistRequest.new(
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
@@ -78,14 +75,11 @@ Get All Playlists given the specified filters.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.get_playlists(playlist_type=::PlexRubySDK::Operations::PlaylistType::AUDIO, smart=::PlexRubySDK::Operations::QueryParamSmart::ZERO)
|
res = s.playlists.get_playlists(playlist_type=::PlexRubySDK::Operations::PlaylistType::AUDIO, smart=::PlexRubySDK::Operations::QueryParamSmart::ZERO)
|
||||||
|
|
||||||
@@ -119,14 +113,11 @@ Smart playlist details contain the `content` attribute. This is the content URI
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.get_playlist(playlist_id=4109.48)
|
res = s.playlists.get_playlist(playlist_id=4109.48)
|
||||||
|
|
||||||
@@ -158,14 +149,11 @@ This endpoint will delete a playlist
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.delete_playlist(playlist_id=216.22)
|
res = s.playlists.delete_playlist(playlist_id=216.22)
|
||||||
|
|
||||||
@@ -197,14 +185,11 @@ From PMS version 1.9.1 clients can also edit playlist metadata using this endpoi
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.update_playlist(playlist_id=3915.0, title="<value>", summary="<value>")
|
res = s.playlists.update_playlist(playlist_id=3915.0, title="<value>", summary="<value>")
|
||||||
|
|
||||||
@@ -241,14 +226,11 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.get_playlist_contents(playlist_id=5004.46, type=::PlexRubySDK::Operations::GetPlaylistContentsQueryParamType::TV_SHOW)
|
res = s.playlists.get_playlist_contents(playlist_id=5004.46, type=::PlexRubySDK::Operations::GetPlaylistContentsQueryParamType::TV_SHOW)
|
||||||
|
|
||||||
@@ -281,14 +263,11 @@ Clears a playlist, only works with dumb playlists. Returns the playlist.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.clear_playlist_contents(playlist_id=1893.18)
|
res = s.playlists.clear_playlist_contents(playlist_id=1893.18)
|
||||||
|
|
||||||
@@ -321,14 +300,11 @@ With a smart playlist, passing a new `uri` parameter replaces the rules for the
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
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)
|
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)
|
||||||
|
|
||||||
@@ -362,14 +338,11 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.playlists.upload_playlist(path="/home/barkley/playlist.m3u", force=::PlexRubySDK::Operations::QueryParamForce::ZERO, section_id=1)
|
res = s.playlists.upload_playlist(path="/home/barkley/playlist.m3u", force=::PlexRubySDK::Operations::QueryParamForce::ZERO, section_id=1)
|
||||||
|
|
||||||
|
|||||||
@@ -25,14 +25,11 @@ Get Companions Data
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.plex.get_companions_data()
|
res = s.plex.get_companions_data()
|
||||||
|
|
||||||
@@ -63,14 +60,11 @@ Get friends of provided auth token.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.plex.get_user_friends()
|
res = s.plex.get_user_friends()
|
||||||
|
|
||||||
@@ -101,10 +95,8 @@ Returns the geolocation and locale data of the caller
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
|
||||||
|
|
||||||
res = s.plex.get_geo_data()
|
res = s.plex.get_geo_data()
|
||||||
|
|
||||||
if ! res.geo_data.nil?
|
if ! res.geo_data.nil?
|
||||||
@@ -134,14 +126,11 @@ Retrieves the home data for the authenticated user, including details like home
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.plex.get_home_data()
|
res = s.plex.get_home_data()
|
||||||
|
|
||||||
@@ -166,14 +155,11 @@ Get Plex server access tokens and server connections
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
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)
|
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)
|
||||||
|
|
||||||
@@ -208,10 +194,8 @@ Retrieve a Pin ID from Plex.tv to use for authentication flows
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetPinRequest.new(
|
req = ::PlexRubySDK::Operations::GetPinRequest.new(
|
||||||
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
client_name: "Plex for Roku",
|
client_name: "Plex for Roku",
|
||||||
@@ -250,10 +234,8 @@ Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
|
req = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
|
||||||
pin_id: 408895,
|
pin_id: 408895,
|
||||||
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
|||||||
@@ -33,14 +33,11 @@ This request is intended to be very fast, and called as the user types.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.search.perform_search(query="dylan", section_id=9372.7, limit=5.0)
|
res = s.search.perform_search(query="dylan", section_id=9372.7, limit=5.0)
|
||||||
|
|
||||||
@@ -77,14 +74,11 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.search.perform_voice_search(query="dead+poop", section_id=4094.8, limit=5.0)
|
res = s.search.perform_voice_search(query="dead+poop", section_id=4094.8, limit=5.0)
|
||||||
|
|
||||||
@@ -117,14 +111,11 @@ This will search the database for the string provided.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.search.get_search_results(query="110")
|
res = s.search.get_search_results(query="110")
|
||||||
|
|
||||||
|
|||||||
@@ -27,14 +27,11 @@ Get Server Capabilities
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_capabilities()
|
res = s.server.get_server_capabilities()
|
||||||
|
|
||||||
@@ -59,14 +56,11 @@ Get Server Preferences
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_preferences()
|
res = s.server.get_server_preferences()
|
||||||
|
|
||||||
@@ -91,14 +85,11 @@ Get Available Clients
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_available_clients()
|
res = s.server.get_available_clients()
|
||||||
|
|
||||||
@@ -123,14 +114,11 @@ Get Devices
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_devices()
|
res = s.server.get_devices()
|
||||||
|
|
||||||
@@ -155,10 +143,8 @@ This request is useful to determine if the server is online or offline
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_identity()
|
res = s.server.get_server_identity()
|
||||||
|
|
||||||
if ! res.object.nil?
|
if ! res.object.nil?
|
||||||
@@ -182,14 +168,11 @@ Returns MyPlex Account Information
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_my_plex_account()
|
res = s.server.get_my_plex_account()
|
||||||
|
|
||||||
@@ -215,14 +198,11 @@ Plex's Photo transcoder is used throughout the service to serve images at specif
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(
|
req = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(
|
||||||
width: 110.0,
|
width: 110.0,
|
||||||
@@ -263,14 +243,11 @@ Retrieves media providers and their features from the Plex server.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_media_providers(x_plex_token="CV5xoxjTpFKUzBTShsaf")
|
res = s.server.get_media_providers(x_plex_token="CV5xoxjTpFKUzBTShsaf")
|
||||||
|
|
||||||
@@ -301,14 +278,11 @@ Get Server List
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.server.get_server_list()
|
res = s.server.get_server_list()
|
||||||
|
|
||||||
|
|||||||
@@ -22,14 +22,11 @@ This will retrieve the "Now Playing" Information of the PMS.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.sessions.get_sessions()
|
res = s.sessions.get_sessions()
|
||||||
|
|
||||||
@@ -54,14 +51,11 @@ This will Retrieve a listing of all history views.
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
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)
|
res = s.sessions.get_session_history(sort="<value>", account_id=1, filter=::PlexRubySDK::Operations::QueryParamFilter.new(), library_section_id=12)
|
||||||
|
|
||||||
@@ -95,14 +89,11 @@ Get Transcode Sessions
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.sessions.get_transcode_sessions()
|
res = s.sessions.get_transcode_sessions()
|
||||||
|
|
||||||
@@ -127,14 +118,11 @@ Stop a Transcode Session
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.sessions.stop_transcode_session(session_key="zz7llzqlx8w9vnrsbnwhbmep")
|
res = s.sessions.stop_transcode_session(session_key="zz7llzqlx8w9vnrsbnwhbmep")
|
||||||
|
|
||||||
|
|||||||
@@ -21,14 +21,11 @@ This will return the media statistics for the server
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.statistics.get_statistics(timespan=4)
|
res = s.statistics.get_statistics(timespan=4)
|
||||||
|
|
||||||
@@ -59,14 +56,11 @@ This will return the resources for the server
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.statistics.get_resources_statistics(timespan=4)
|
res = s.statistics.get_resources_statistics(timespan=4)
|
||||||
|
|
||||||
@@ -97,14 +91,11 @@ This will return the bandwidth statistics for the server
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.statistics.get_bandwidth_statistics(timespan=4)
|
res = s.statistics.get_bandwidth_statistics(timespan=4)
|
||||||
|
|
||||||
|
|||||||
@@ -22,14 +22,11 @@ Querying status of updates
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.updater.get_update_status()
|
res = s.updater.get_update_status()
|
||||||
|
|
||||||
@@ -54,14 +51,11 @@ Checking for updates
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.updater.check_for_updates(download=::PlexRubySDK::Operations::Download::ONE)
|
res = s.updater.check_for_updates(download=::PlexRubySDK::Operations::Download::ONE)
|
||||||
|
|
||||||
@@ -93,14 +87,11 @@ Note that these two parameters are effectively mutually exclusive. The `tonight`
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
res = s.updater.apply_updates(tonight=::PlexRubySDK::Operations::Tonight::ONE, skip=::PlexRubySDK::Operations::Skip::ONE)
|
res = s.updater.apply_updates(tonight=::PlexRubySDK::Operations::Tonight::ONE, skip=::PlexRubySDK::Operations::Skip::ONE)
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,8 @@ Get list of all users that are friends and have library access with the provided
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetUsersRequest.new(
|
req = ::PlexRubySDK::Operations::GetUsersRequest.new(
|
||||||
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
client_id: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
client_name: "Plex for Roku",
|
client_name: "Plex for Roku",
|
||||||
|
|||||||
@@ -20,14 +20,11 @@ Get the timeline for a media item
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetTimelineRequest.new(
|
req = ::PlexRubySDK::Operations::GetTimelineRequest.new(
|
||||||
rating_key: 23409.0,
|
rating_key: 23409.0,
|
||||||
@@ -71,14 +68,11 @@ Begin a Universal Transcode Session
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::StartUniversalTranscodeRequest.new(
|
req = ::PlexRubySDK::Operations::StartUniversalTranscodeRequest.new(
|
||||||
has_mde: 1.0,
|
has_mde: 1.0,
|
||||||
|
|||||||
@@ -19,14 +19,11 @@ Get User Watchlist
|
|||||||
```ruby
|
```ruby
|
||||||
require 'plex_ruby_sdk'
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new(
|
||||||
s = ::PlexRubySDK::PlexAPI.new
|
security: ::PlexRubySDK::Shared::Security.new(
|
||||||
s.config_security(
|
|
||||||
::PlexRubySDK::Shared::Security.new(
|
|
||||||
access_token: "<YOUR_API_KEY_HERE>",
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
req = ::PlexRubySDK::Operations::GetWatchListRequest.new(
|
req = ::PlexRubySDK::Operations::GetWatchListRequest.new(
|
||||||
filter: ::PlexRubySDK::Operations::Filter::AVAILABLE,
|
filter: ::PlexRubySDK::Operations::Filter::AVAILABLE,
|
||||||
|
|||||||
12
lib/crystalline.rb
Normal file
12
lib/crystalline.rb
Normal 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'
|
||||||
@@ -3,7 +3,8 @@
|
|||||||
# typed: true
|
# typed: true
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module PlexRubySDK
|
module Crystalline
|
||||||
|
extend T::Sig
|
||||||
module MetadataFields
|
module MetadataFields
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
@@ -32,9 +33,13 @@ module PlexRubySDK
|
|||||||
fields << Field.new(field_name, type, metadata)
|
fields << Field.new(field_name, type, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def field_augmented?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
def unmarshal_single(field_type, value, decoder = nil)
|
def unmarshal_single(field_type, value, decoder = nil)
|
||||||
if field_type.respond_to? :unmarshal_json
|
if field_type.instance_of?(Class) && field_type < ::Crystalline::FieldAugmented
|
||||||
unmarshalled = field_type.unmarshal_json(value)
|
unmarshalled = field_type.from_dict(value)
|
||||||
return unmarshalled
|
return unmarshalled
|
||||||
elsif field_type.to_s == 'Object'
|
elsif field_type.to_s == 'Object'
|
||||||
# rubocop:disable Lint/SuppressedException
|
# rubocop:disable Lint/SuppressedException
|
||||||
@@ -52,14 +57,20 @@ module PlexRubySDK
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { params(json_obj: T.any(String, T::Hash[Symbol, String])).returns(Utils::FieldAugmented) }
|
sig { params(json_obj: T.any(String, T::Hash[Symbol, String])).returns(::Crystalline::FieldAugmented) }
|
||||||
def unmarshal_json(json_obj)
|
def from_json(json_obj)
|
||||||
to_build = new
|
|
||||||
begin
|
begin
|
||||||
d = JSON.parse(json_obj)
|
d = JSON.parse(json_obj)
|
||||||
rescue TypeError, JSON::ParserError
|
rescue TypeError, JSON::ParserError
|
||||||
d = json_obj
|
d = json_obj
|
||||||
end
|
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|
|
fields.each do |field|
|
||||||
field_type = field.type
|
field_type = field.type
|
||||||
if T.nilable? field_type
|
if T.nilable? field_type
|
||||||
@@ -113,15 +124,15 @@ module PlexRubySDK
|
|||||||
end
|
end
|
||||||
|
|
||||||
def marshal_single(field)
|
def marshal_single(field)
|
||||||
if field.respond_to? :marshal_json
|
if field.is_a? ::Crystalline::FieldAugmented
|
||||||
field.marshal_json(encode: false)
|
field.to_dict
|
||||||
else
|
else
|
||||||
Utils.val_to_string(field, primitives: false)
|
::Crystalline.val_to_string(field, primitives: false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marshal_json(encode: true)
|
def to_dict
|
||||||
d = {}
|
result = {}
|
||||||
fields.sort_by(&:name).each do |field|
|
fields.sort_by(&:name).each do |field|
|
||||||
f = send(field.name)
|
f = send(field.name)
|
||||||
next if f.nil?
|
next if f.nil?
|
||||||
@@ -133,18 +144,20 @@ module PlexRubySDK
|
|||||||
key = field.name
|
key = field.name
|
||||||
end
|
end
|
||||||
if f.is_a? Array
|
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
|
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
|
else
|
||||||
d[key] = marshal_single(f)
|
result[key] = marshal_single(f)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if encode
|
result
|
||||||
JSON.dump(d)
|
end
|
||||||
else
|
|
||||||
d
|
def to_json(*args)
|
||||||
end
|
JSON.generate(to_dict, *args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
65
lib/crystalline/utils.rb
Normal file
65
lib/crystalline/utils.rb
Normal 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
|
||||||
@@ -27,7 +27,6 @@ module PlexRubySDK
|
|||||||
autoload :Users, 'plex_ruby_sdk/users'
|
autoload :Users, 'plex_ruby_sdk/users'
|
||||||
end
|
end
|
||||||
|
|
||||||
require_relative 'plex_ruby_sdk/utils/t'
|
|
||||||
require_relative 'plex_ruby_sdk/utils/utils'
|
require_relative 'plex_ruby_sdk/utils/utils'
|
||||||
require_relative 'plex_ruby_sdk/utils/metadata_fields'
|
require_relative 'crystalline'
|
||||||
require_relative 'plex_ruby_sdk/sdkconfiguration'
|
require_relative 'plex_ruby_sdk/sdkconfiguration'
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -49,17 +50,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -90,7 +91,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.delete(url) do |req|
|
r = @sdk_configuration.client.delete(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -101,12 +103,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -62,12 +63,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -97,7 +98,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -108,12 +110,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -136,7 +138,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -146,17 +149,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.user_plex_account = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -197,17 +200,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 201
|
if r.status == 201
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.user_plex_account = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -43,17 +44,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -80,7 +81,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.post(url) do |req|
|
r = @sdk_configuration.client.post(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -91,12 +93,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -119,7 +121,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.delete(url) do |req|
|
r = @sdk_configuration.client.delete(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -130,12 +133,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -171,7 +174,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.post(url) do |req|
|
r = @sdk_configuration.client.post(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -182,12 +186,12 @@ module PlexRubySDK
|
|||||||
if [200, 202].include?(r.status)
|
if [200, 202].include?(r.status)
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -219,7 +223,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.delete(url) do |req|
|
r = @sdk_configuration.client.delete(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -230,12 +235,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 404
|
elsif r.status == 404
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -50,17 +51,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -85,7 +86,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -95,7 +97,7 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif [400, 401].include?(r.status)
|
elsif [400, 401].include?(r.status)
|
||||||
@@ -132,7 +134,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -142,17 +145,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -51,12 +52,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -81,7 +82,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -91,17 +93,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -129,7 +131,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -139,17 +142,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -222,7 +225,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -232,17 +236,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -273,7 +277,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.delete(url) do |req|
|
r = @sdk_configuration.client.delete(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -284,12 +289,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -339,7 +344,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -349,17 +355,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -389,7 +395,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -399,17 +406,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 404
|
elsif r.status == 404
|
||||||
@@ -445,7 +452,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -456,12 +464,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -513,7 +521,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -523,17 +532,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -568,7 +577,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -578,17 +588,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 404
|
elsif r.status == 404
|
||||||
@@ -624,7 +634,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -634,17 +645,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 404
|
elsif r.status == 404
|
||||||
@@ -680,7 +691,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -690,17 +702,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 404
|
elsif r.status == 404
|
||||||
@@ -726,7 +738,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -736,17 +749,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -776,7 +789,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -786,17 +800,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 404
|
elsif r.status == 404
|
||||||
@@ -832,7 +846,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -842,17 +857,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -882,7 +897,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -892,17 +908,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -925,7 +941,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -935,17 +952,17 @@ module PlexRubySDK
|
|||||||
)
|
)
|
||||||
if r.status == 200
|
if r.status == 200
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.object = out
|
||||||
end
|
end
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -53,12 +54,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -104,7 +105,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.post(url) do |req|
|
r = @sdk_configuration.client.post(url) do |req|
|
||||||
req.headers = headers
|
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
|
if form
|
||||||
req.body = Utils.encode_form(form)
|
req.body = Utils.encode_form(form)
|
||||||
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
||||||
@@ -122,12 +124,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -150,7 +152,8 @@ module PlexRubySDK
|
|||||||
|
|
||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -161,12 +164,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
elsif r.status == 403
|
elsif r.status == 403
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -50,12 +51,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -83,7 +84,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -94,12 +96,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -130,7 +132,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.post(url) do |req|
|
r = @sdk_configuration.client.post(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
@@ -141,12 +144,12 @@ module PlexRubySDK
|
|||||||
if r.status == 200
|
if r.status == 200
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -175,7 +178,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
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')
|
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'image/jpeg')
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -222,7 +226,8 @@ module PlexRubySDK
|
|||||||
r = @sdk_configuration.client.get(url) do |req|
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
req.headers = headers
|
req.headers = headers
|
||||||
req.params = query_params
|
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
|
end
|
||||||
|
|
||||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
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')
|
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'image/jpeg')
|
||||||
elsif r.status == 400
|
elsif r.status == 400
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.bad_request = out
|
||||||
end
|
end
|
||||||
elsif r.status == 401
|
elsif r.status == 401
|
||||||
if Utils.match_content_type(content_type, 'application/json')
|
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
|
res.unauthorized = out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class Account < ::PlexRubySDK::Utils::FieldAugmented
|
class Account < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class Action < ::PlexRubySDK::Utils::FieldAugmented
|
class Action < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class Activity < ::PlexRubySDK::Utils::FieldAugmented
|
class Activity < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class AddPlaylistContentsBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class AddPlaylistContentsErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class AddPlaylistContentsMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsMediaContainer < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class AddPlaylistContentsMetadata < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsMetadata < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class AddPlaylistContentsPlaylistsErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class AddPlaylistContentsRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# the ID of the playlist
|
# the ID of the playlist
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class AddPlaylistContentsResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Playlist Updated
|
# Playlist Updated
|
||||||
class AddPlaylistContentsResponseBody < ::PlexRubySDK::Utils::FieldAugmented
|
class AddPlaylistContentsResponseBody < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class ApplyUpdatesBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class ApplyUpdatesBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ApplyUpdatesErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class ApplyUpdatesErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ApplyUpdatesRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class ApplyUpdatesRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
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`.
|
# Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ApplyUpdatesResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class ApplyUpdatesResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ApplyUpdatesUpdaterErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class ApplyUpdatesUpdaterErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module PlexRubySDK
|
|||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
|
|
||||||
class Billing < ::PlexRubySDK::Utils::FieldAugmented
|
class Billing < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ButlerTask < ::PlexRubySDK::Utils::FieldAugmented
|
class ButlerTask < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ButlerTasks < ::PlexRubySDK::Utils::FieldAugmented
|
class ButlerTasks < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CancelServerActivitiesActivitiesErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class CancelServerActivitiesActivitiesErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class CancelServerActivitiesBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class CancelServerActivitiesBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CancelServerActivitiesErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class CancelServerActivitiesErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CancelServerActivitiesRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class CancelServerActivitiesRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# The UUID of the activity to cancel.
|
# The UUID of the activity to cancel.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CancelServerActivitiesResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class CancelServerActivitiesResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class CheckForUpdatesBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class CheckForUpdatesBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CheckForUpdatesErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class CheckForUpdatesErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CheckForUpdatesRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class CheckForUpdatesRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# Indicate that you want to start download any updates found.
|
# Indicate that you want to start download any updates found.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CheckForUpdatesResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class CheckForUpdatesResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CheckForUpdatesUpdaterErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class CheckForUpdatesUpdaterErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class ClearPlaylistContentsBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class ClearPlaylistContentsBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ClearPlaylistContentsErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class ClearPlaylistContentsErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ClearPlaylistContentsPlaylistsErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class ClearPlaylistContentsPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ClearPlaylistContentsRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class ClearPlaylistContentsRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# the ID of the playlist
|
# the ID of the playlist
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class ClearPlaylistContentsResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class ClearPlaylistContentsResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class Collection < ::PlexRubySDK::Utils::FieldAugmented
|
class Collection < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module PlexRubySDK
|
|||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
|
|
||||||
class Connections < ::PlexRubySDK::Utils::FieldAugmented
|
class Connections < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# The (ip) address or domain name used for the connection
|
# The (ip) address or domain name used for the connection
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class Context < ::PlexRubySDK::Utils::FieldAugmented
|
class Context < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class Country < ::PlexRubySDK::Utils::FieldAugmented
|
class Country < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class CreatePlaylistBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CreatePlaylistErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CreatePlaylistMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistMediaContainer < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CreatePlaylistMetadata < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistMetadata < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CreatePlaylistPlaylistsErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CreatePlaylistRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# whether the playlist is smart or not
|
# whether the playlist is smart or not
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class CreatePlaylistResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# returns all playlists
|
# returns all playlists
|
||||||
class CreatePlaylistResponseBody < ::PlexRubySDK::Utils::FieldAugmented
|
class CreatePlaylistResponseBody < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class DeleteLibraryBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class DeleteLibraryBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class DeleteLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class DeleteLibraryErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class DeleteLibraryLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class DeleteLibraryLibraryErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class DeleteLibraryRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class DeleteLibraryRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# The unique key of the Plex library.
|
# The unique key of the Plex library.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class DeleteLibraryResponse < ::PlexRubySDK::Utils::FieldAugmented
|
class DeleteLibraryResponse < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
# HTTP response content type for this operation
|
# HTTP response content type for this operation
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
# 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
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
class DeletePlaylistBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
class DeletePlaylistBadRequest < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module PlexRubySDK
|
|||||||
module Operations
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
class DeletePlaylistErrors < ::PlexRubySDK::Utils::FieldAugmented
|
class DeletePlaylistErrors < ::Crystalline::FieldAugmented
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user