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.484.1
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f
|
id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f
|
||||||
management:
|
management:
|
||||||
docChecksum: a643a64d282d705e3e24f61ed6f068c6
|
docChecksum: 14b35829d4be91a88269761c3ed01426
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.476.2
|
speakeasyVersion: 1.484.1
|
||||||
generationVersion: 2.495.1
|
generationVersion: 2.503.2
|
||||||
releaseVersion: 0.7.1
|
releaseVersion: 0.7.2
|
||||||
configChecksum: 54b134f9b3287727283b5301dc0e9518
|
configChecksum: f8b827052ae75626fa447b20a8597211
|
||||||
repoURL: https://github.com/LukeHagar/plexruby.git
|
repoURL: https://github.com/LukeHagar/plexruby.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexruby
|
installationURL: https://github.com/LukeHagar/plexruby
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
ruby:
|
ruby:
|
||||||
core: 3.5.1
|
core: 3.5.3
|
||||||
deprecations: 2.81.2
|
deprecations: 2.81.2
|
||||||
enums: 2.81.1
|
enums: 2.81.1
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
@@ -162,6 +162,15 @@ generatedFiles:
|
|||||||
- docs/models/operations/getcompanionsdataplexerrors.md
|
- docs/models/operations/getcompanionsdataplexerrors.md
|
||||||
- docs/models/operations/getcompanionsdataresponse.md
|
- docs/models/operations/getcompanionsdataresponse.md
|
||||||
- docs/models/operations/getcompanionsdataunauthorized.md
|
- docs/models/operations/getcompanionsdataunauthorized.md
|
||||||
|
- docs/models/operations/getcountrieslibrarybadrequest.md
|
||||||
|
- docs/models/operations/getcountrieslibrarydirectory.md
|
||||||
|
- docs/models/operations/getcountrieslibraryerrors.md
|
||||||
|
- docs/models/operations/getcountrieslibrarylibraryerrors.md
|
||||||
|
- docs/models/operations/getcountrieslibrarymediacontainer.md
|
||||||
|
- docs/models/operations/getcountrieslibraryrequest.md
|
||||||
|
- docs/models/operations/getcountrieslibraryresponse.md
|
||||||
|
- docs/models/operations/getcountrieslibraryresponsebody.md
|
||||||
|
- docs/models/operations/getcountrieslibraryunauthorized.md
|
||||||
- docs/models/operations/getdevicesbadrequest.md
|
- docs/models/operations/getdevicesbadrequest.md
|
||||||
- docs/models/operations/getdeviceserrors.md
|
- docs/models/operations/getdeviceserrors.md
|
||||||
- docs/models/operations/getdevicesmediacontainer.md
|
- docs/models/operations/getdevicesmediacontainer.md
|
||||||
@@ -175,6 +184,15 @@ generatedFiles:
|
|||||||
- docs/models/operations/getfilehashrequest.md
|
- docs/models/operations/getfilehashrequest.md
|
||||||
- docs/models/operations/getfilehashresponse.md
|
- docs/models/operations/getfilehashresponse.md
|
||||||
- docs/models/operations/getfilehashunauthorized.md
|
- docs/models/operations/getfilehashunauthorized.md
|
||||||
|
- docs/models/operations/getgenreslibrarybadrequest.md
|
||||||
|
- docs/models/operations/getgenreslibrarydirectory.md
|
||||||
|
- docs/models/operations/getgenreslibraryerrors.md
|
||||||
|
- docs/models/operations/getgenreslibrarylibraryerrors.md
|
||||||
|
- docs/models/operations/getgenreslibrarymediacontainer.md
|
||||||
|
- docs/models/operations/getgenreslibraryrequest.md
|
||||||
|
- docs/models/operations/getgenreslibraryresponse.md
|
||||||
|
- docs/models/operations/getgenreslibraryresponsebody.md
|
||||||
|
- docs/models/operations/getgenreslibraryunauthorized.md
|
||||||
- docs/models/operations/getgeodatabadrequest.md
|
- docs/models/operations/getgeodatabadrequest.md
|
||||||
- docs/models/operations/getgeodataerrors.md
|
- docs/models/operations/getgeodataerrors.md
|
||||||
- docs/models/operations/getgeodatageodata.md
|
- docs/models/operations/getgeodatageodata.md
|
||||||
@@ -959,6 +977,24 @@ generatedFiles:
|
|||||||
- lib/plex_ruby_sdk/models/operations/get_banner_image_request.rb
|
- lib/plex_ruby_sdk/models/operations/get_banner_image_request.rb
|
||||||
- lib/plex_ruby_sdk/models/operations/get_banner_image_response.rb
|
- lib/plex_ruby_sdk/models/operations/get_banner_image_response.rb
|
||||||
- lib/plex_ruby_sdk/models/operations/get_banner_image_unauthorized.rb
|
- lib/plex_ruby_sdk/models/operations/get_banner_image_unauthorized.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_badrequest.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_directory.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_errors.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_library_errors.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_mediacontainer.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_request.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_response.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_responsebody.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_countries_library_unauthorized.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_badrequest.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_directory.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_errors.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_library_errors.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_mediacontainer.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_request.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_response.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_responsebody.rb
|
||||||
|
- lib/plex_ruby_sdk/models/operations/get_genres_library_unauthorized.rb
|
||||||
- lib/plex_ruby_sdk/models/operations/get_library_details_badrequest.rb
|
- lib/plex_ruby_sdk/models/operations/get_library_details_badrequest.rb
|
||||||
- lib/plex_ruby_sdk/models/operations/get_library_details_directory.rb
|
- lib/plex_ruby_sdk/models/operations/get_library_details_directory.rb
|
||||||
- lib/plex_ruby_sdk/models/operations/get_library_details_errors.rb
|
- lib/plex_ruby_sdk/models/operations/get_library_details_errors.rb
|
||||||
@@ -2694,5 +2730,29 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}, {"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}, {"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
get-genres-library:
|
||||||
|
speakeasy-default-get-genres-library:
|
||||||
|
parameters:
|
||||||
|
path:
|
||||||
|
sectionKey: 9518
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 50, "identifier": "com.plexapp.plugins.library", "allowSync": false, "art": "/:/resources/show-fanart.jpg", "content": "secondary", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1734362201, "nocache": true, "thumb": "/:/resources/show.png", "title1": "TV Shows (Reality)", "title2": "By Genre", "viewGroup": "secondary", "Directory": [{"fastKey": "/library/sections/10/all?genre=89", "key": "89", "title": "Action", "type": "genre"}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}, {"code": 1001, "message": "User could not be authenticated", "status": 401}, {"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
get-countries-library:
|
||||||
|
speakeasy-default-get-countries-library:
|
||||||
|
parameters:
|
||||||
|
path:
|
||||||
|
sectionKey: 9518
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 50, "identifier": "com.plexapp.plugins.library", "allowSync": false, "art": "/:/resources/show-fanart.jpg", "content": "secondary", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1734362201, "nocache": true, "thumb": "/:/resources/show.png", "title1": "TV Series", "title2": "By Country", "viewGroup": "secondary", "Directory": [{"fastKey": "/library/sections/2/all?country=15491", "key": "15491", "title": "Japan"}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}, {"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}, {"code": 1001, "message": "User could not be authenticated", "status": 401}, {"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
examplesVersion: 1.0.0
|
examplesVersion: 1.0.0
|
||||||
generatedTests: {}
|
generatedTests: {}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ generation:
|
|||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
ruby:
|
ruby:
|
||||||
version: 0.7.1
|
version: 0.7.2
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
description: Ruby Client SDK Generated by Speakeasy
|
description: Ruby Client SDK Generated by Speakeasy
|
||||||
imports:
|
imports:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.476.2
|
speakeasyVersion: 1.484.1
|
||||||
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:e73707dfae50d22dab2166b1661938446b9831bcee252ecd696a1172dfd6ae2c
|
sourceRevisionDigest: sha256:0b88c8bfc41def63e19e91fdd4d51bab07cb947cc3d39d2b44e8523a209cec10
|
||||||
sourceBlobDigest: sha256:e06caa091ad527fd21714fc0d43e7ea385e181fbad8c4f60296457a89a23c696
|
sourceBlobDigest: sha256:89d5b8427d4fb61b25751aebbaf71f9613958e9e91073fc084fed2c2ec62ce55
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1738022881
|
- speakeasy-sdk-regen-1738800499
|
||||||
targets:
|
targets:
|
||||||
plexruby:
|
plexruby:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:e73707dfae50d22dab2166b1661938446b9831bcee252ecd696a1172dfd6ae2c
|
sourceRevisionDigest: sha256:0b88c8bfc41def63e19e91fdd4d51bab07cb947cc3d39d2b44e8523a209cec10
|
||||||
sourceBlobDigest: sha256:e06caa091ad527fd21714fc0d43e7ea385e181fbad8c4f60296457a89a23c696
|
sourceBlobDigest: sha256:89d5b8427d4fb61b25751aebbaf71f9613958e9e91073fc084fed2c2ec62ce55
|
||||||
codeSamplesNamespace: code-samples-ruby-plexruby
|
codeSamplesNamespace: code-samples-ruby-plexruby
|
||||||
codeSamplesRevisionDigest: sha256:d0a178ce8cb39d6f9e5cb918f10ab8a31322aefdef6c862c2faac06ae428a37d
|
codeSamplesRevisionDigest: sha256:59f3668feed7de56e457d134757739c0aefb1abf56ac38710b6f9252f7c8bdf8
|
||||||
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.1)
|
plex_ruby_sdk (0.7.2)
|
||||||
faraday
|
faraday
|
||||||
faraday-multipart
|
faraday-multipart
|
||||||
rack
|
rack
|
||||||
|
|||||||
@@ -133,6 +133,8 @@ end
|
|||||||
* [get_library_items](docs/sdks/library/README.md#get_library_items) - Get Library Items
|
* [get_library_items](docs/sdks/library/README.md#get_library_items) - Get Library Items
|
||||||
* [get_refresh_library_metadata](docs/sdks/library/README.md#get_refresh_library_metadata) - Refresh Metadata Of The Library
|
* [get_refresh_library_metadata](docs/sdks/library/README.md#get_refresh_library_metadata) - Refresh Metadata Of The Library
|
||||||
* [get_search_library](docs/sdks/library/README.md#get_search_library) - Search Library
|
* [get_search_library](docs/sdks/library/README.md#get_search_library) - Search Library
|
||||||
|
* [get_genres_library](docs/sdks/library/README.md#get_genres_library) - Get Genres of library media
|
||||||
|
* [get_countries_library](docs/sdks/library/README.md#get_countries_library) - Get Countries of library media
|
||||||
* [get_search_all_libraries](docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
|
* [get_search_all_libraries](docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
|
||||||
* [get_meta_data_by_rating_key](docs/sdks/library/README.md#get_meta_data_by_rating_key) - Get Metadata by RatingKey
|
* [get_meta_data_by_rating_key](docs/sdks/library/README.md#get_meta_data_by_rating_key) - Get Metadata by RatingKey
|
||||||
* [get_metadata_children](docs/sdks/library/README.md#get_metadata_children) - Get Items Children
|
* [get_metadata_children](docs/sdks/library/README.md#get_metadata_children) - Get Items Children
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -686,4 +686,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [ruby v0.7.1] .
|
- [ruby v0.7.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Ruby Gems v0.7.1] https://rubygems.org/gems/plex_ruby_sdk/versions/0.7.1 - .
|
- [Ruby Gems v0.7.1] https://rubygems.org/gems/plex_ruby_sdk/versions/0.7.1 - .
|
||||||
|
|
||||||
|
## 2025-02-06 00:08:03
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [ruby v0.7.2] .
|
||||||
|
### Releases
|
||||||
|
- [Ruby Gems v0.7.2] https://rubygems.org/gems/plex_ruby_sdk/versions/0.7.2 - .
|
||||||
@@ -231,6 +231,18 @@ actions:
|
|||||||
- lang: ruby
|
- lang: ruby
|
||||||
label: details
|
label: details
|
||||||
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"<YOUR_API_KEY_HERE>\",\n )\n)\n\n \nres = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)\n\nif ! res.object.nil?\n # handle response\nend"
|
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"<YOUR_API_KEY_HERE>\",\n )\n)\n\n \nres = s.library.get_library_details(section_key=9518, include_details=::PlexRubySDK::Operations::IncludeDetails::ZERO)\n\nif ! res.object.nil?\n # handle response\nend"
|
||||||
|
- target: $["paths"]["/library/sections/{sectionKey}/country"]["get"]
|
||||||
|
update:
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: ruby
|
||||||
|
label: library
|
||||||
|
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"<YOUR_API_KEY_HERE>\",\n )\n)\n\n \nres = s.library.get_countries_library(section_key=9518)\n\nif ! res.object.nil?\n # handle response\nend"
|
||||||
|
- target: $["paths"]["/library/sections/{sectionKey}/genre"]["get"]
|
||||||
|
update:
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: ruby
|
||||||
|
label: library
|
||||||
|
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"<YOUR_API_KEY_HERE>\",\n )\n)\n\n \nres = s.library.get_genres_library(section_key=9518)\n\nif ! res.object.nil?\n # handle response\nend"
|
||||||
- target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"]
|
- target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"]
|
||||||
update:
|
update:
|
||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
|
|||||||
10
docs/models/operations/getcountrieslibrarybadrequest.md
Normal file
10
docs/models/operations/getcountrieslibrarybadrequest.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryBadRequest
|
||||||
|
|
||||||
|
Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `errors` | T::Array<[::PlexRubySDK::Operations::GetCountriesLibraryErrors](../../models/operations/getcountrieslibraryerrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
10
docs/models/operations/getcountrieslibrarydirectory.md
Normal file
10
docs/models/operations/getcountrieslibrarydirectory.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryDirectory
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- |
|
||||||
|
| `fast_key` | *::String* | :heavy_check_mark: | N/A | /library/sections/2/all?country=15491 |
|
||||||
|
| `key` | *::String* | :heavy_check_mark: | N/A | 15491 |
|
||||||
|
| `title` | *::String* | :heavy_check_mark: | N/A | Japan |
|
||||||
10
docs/models/operations/getcountrieslibraryerrors.md
Normal file
10
docs/models/operations/getcountrieslibraryerrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||||
|
| `code` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 1000 |
|
||||||
|
| `message` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
|
||||||
|
| `status` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 400 |
|
||||||
10
docs/models/operations/getcountrieslibrarylibraryerrors.md
Normal file
10
docs/models/operations/getcountrieslibrarylibraryerrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
||||||
|
| `code` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 1001 |
|
||||||
|
| `message` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | User could not be authenticated |
|
||||||
|
| `status` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 401 |
|
||||||
22
docs/models/operations/getcountrieslibrarymediacontainer.md
Normal file
22
docs/models/operations/getcountrieslibrarymediacontainer.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# GetCountriesLibraryMediaContainer
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `size` | *::Float* | :heavy_check_mark: | N/A | 50 |
|
||||||
|
| `offset` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `total_size` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `identifier` | *::String* | :heavy_check_mark: | N/A | com.plexapp.plugins.library |
|
||||||
|
| `allow_sync` | *T::Boolean* | :heavy_check_mark: | N/A | false |
|
||||||
|
| `art` | *::String* | :heavy_check_mark: | N/A | /:/resources/show-fanart.jpg |
|
||||||
|
| `content` | *::String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `media_tag_prefix` | *::String* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ |
|
||||||
|
| `media_tag_version` | *::Integer* | :heavy_check_mark: | N/A | 1734362201 |
|
||||||
|
| `nocache` | *T::Boolean* | :heavy_check_mark: | N/A | true |
|
||||||
|
| `thumb` | *::String* | :heavy_check_mark: | N/A | /:/resources/show.png |
|
||||||
|
| `title1` | *::String* | :heavy_check_mark: | N/A | TV Series |
|
||||||
|
| `title2` | *::String* | :heavy_check_mark: | N/A | By Country |
|
||||||
|
| `view_group` | *::String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `directory` | T::Array<[::PlexRubySDK::Operations::GetCountriesLibraryDirectory](../../models/operations/getcountrieslibrarydirectory.md)> | :heavy_minus_sign: | N/A | |
|
||||||
8
docs/models/operations/getcountrieslibraryrequest.md
Normal file
8
docs/models/operations/getcountrieslibraryrequest.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# GetCountriesLibraryRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `section_key` | *::Integer* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
13
docs/models/operations/getcountrieslibraryresponse.md
Normal file
13
docs/models/operations/getcountrieslibraryresponse.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# GetCountriesLibraryResponse
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||||
|
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||||
|
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||||
|
| `object` | [T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryResponseBody)](../../models/operations/getcountrieslibraryresponsebody.md) | :heavy_minus_sign: | Successful response containing media container data. |
|
||||||
|
| `bad_request` | [T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryBadRequest)](../../models/operations/getcountrieslibrarybadrequest.md) | :heavy_minus_sign: | Bad Request - A parameter was not specified, or was specified incorrectly. |
|
||||||
|
| `unauthorized` | [T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryUnauthorized)](../../models/operations/getcountrieslibraryunauthorized.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. |
|
||||||
10
docs/models/operations/getcountrieslibraryresponsebody.md
Normal file
10
docs/models/operations/getcountrieslibraryresponsebody.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryResponseBody
|
||||||
|
|
||||||
|
Successful response containing media container data.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `media_container` | [T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryMediaContainer)](../../models/operations/getcountrieslibrarymediacontainer.md) | :heavy_minus_sign: | N/A |
|
||||||
10
docs/models/operations/getcountrieslibraryunauthorized.md
Normal file
10
docs/models/operations/getcountrieslibraryunauthorized.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryUnauthorized
|
||||||
|
|
||||||
|
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `errors` | T::Array<[::PlexRubySDK::Operations::GetCountriesLibraryLibraryErrors](../../models/operations/getcountrieslibrarylibraryerrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
10
docs/models/operations/getgenreslibrarybadrequest.md
Normal file
10
docs/models/operations/getgenreslibrarybadrequest.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryBadRequest
|
||||||
|
|
||||||
|
Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `errors` | T::Array<[::PlexRubySDK::Operations::GetGenresLibraryErrors](../../models/operations/getgenreslibraryerrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
11
docs/models/operations/getgenreslibrarydirectory.md
Normal file
11
docs/models/operations/getgenreslibrarydirectory.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetGenresLibraryDirectory
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
|
||||||
|
| `fast_key` | *::String* | :heavy_check_mark: | N/A | /library/sections/10/all?genre=89 |
|
||||||
|
| `key` | *::String* | :heavy_check_mark: | N/A | 89 |
|
||||||
|
| `title` | *::String* | :heavy_check_mark: | N/A | Action |
|
||||||
|
| `type` | *::String* | :heavy_check_mark: | N/A | genre |
|
||||||
10
docs/models/operations/getgenreslibraryerrors.md
Normal file
10
docs/models/operations/getgenreslibraryerrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||||
|
| `code` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 1000 |
|
||||||
|
| `message` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
|
||||||
|
| `status` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 400 |
|
||||||
10
docs/models/operations/getgenreslibrarylibraryerrors.md
Normal file
10
docs/models/operations/getgenreslibrarylibraryerrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
||||||
|
| `code` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 1001 |
|
||||||
|
| `message` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | User could not be authenticated |
|
||||||
|
| `status` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | 401 |
|
||||||
22
docs/models/operations/getgenreslibrarymediacontainer.md
Normal file
22
docs/models/operations/getgenreslibrarymediacontainer.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# GetGenresLibraryMediaContainer
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `size` | *::Float* | :heavy_check_mark: | N/A | 50 |
|
||||||
|
| `offset` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `total_size` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `identifier` | *::String* | :heavy_check_mark: | N/A | com.plexapp.plugins.library |
|
||||||
|
| `allow_sync` | *T::Boolean* | :heavy_check_mark: | N/A | false |
|
||||||
|
| `art` | *::String* | :heavy_check_mark: | N/A | /:/resources/show-fanart.jpg |
|
||||||
|
| `content` | *::String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `media_tag_prefix` | *::String* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ |
|
||||||
|
| `media_tag_version` | *::Integer* | :heavy_check_mark: | N/A | 1734362201 |
|
||||||
|
| `nocache` | *T::Boolean* | :heavy_check_mark: | N/A | true |
|
||||||
|
| `thumb` | *::String* | :heavy_check_mark: | N/A | /:/resources/show.png |
|
||||||
|
| `title1` | *::String* | :heavy_check_mark: | N/A | TV Shows (Reality) |
|
||||||
|
| `title2` | *::String* | :heavy_check_mark: | N/A | By Genre |
|
||||||
|
| `view_group` | *::String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `directory` | T::Array<[::PlexRubySDK::Operations::GetGenresLibraryDirectory](../../models/operations/getgenreslibrarydirectory.md)> | :heavy_minus_sign: | N/A | |
|
||||||
8
docs/models/operations/getgenreslibraryrequest.md
Normal file
8
docs/models/operations/getgenreslibraryrequest.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# GetGenresLibraryRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `section_key` | *::Integer* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
13
docs/models/operations/getgenreslibraryresponse.md
Normal file
13
docs/models/operations/getgenreslibraryresponse.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# GetGenresLibraryResponse
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||||
|
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||||
|
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||||
|
| `object` | [T.nilable(::PlexRubySDK::Operations::GetGenresLibraryResponseBody)](../../models/operations/getgenreslibraryresponsebody.md) | :heavy_minus_sign: | Successful response containing media container data. |
|
||||||
|
| `bad_request` | [T.nilable(::PlexRubySDK::Operations::GetGenresLibraryBadRequest)](../../models/operations/getgenreslibrarybadrequest.md) | :heavy_minus_sign: | Bad Request - A parameter was not specified, or was specified incorrectly. |
|
||||||
|
| `unauthorized` | [T.nilable(::PlexRubySDK::Operations::GetGenresLibraryUnauthorized)](../../models/operations/getgenreslibraryunauthorized.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. |
|
||||||
10
docs/models/operations/getgenreslibraryresponsebody.md
Normal file
10
docs/models/operations/getgenreslibraryresponsebody.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryResponseBody
|
||||||
|
|
||||||
|
Successful response containing media container data.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `media_container` | [T.nilable(::PlexRubySDK::Operations::GetGenresLibraryMediaContainer)](../../models/operations/getgenreslibrarymediacontainer.md) | :heavy_minus_sign: | N/A |
|
||||||
10
docs/models/operations/getgenreslibraryunauthorized.md
Normal file
10
docs/models/operations/getgenreslibraryunauthorized.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryUnauthorized
|
||||||
|
|
||||||
|
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `errors` | T::Array<[::PlexRubySDK::Operations::GetGenresLibraryLibraryErrors](../../models/operations/getgenreslibrarylibraryerrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
@@ -9,6 +9,6 @@
|
|||||||
| `offset` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
| `offset` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
||||||
| `total_size` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
| `total_size` | *T.nilable(::Integer)* | :heavy_minus_sign: | N/A | |
|
||||||
| `identifier` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
|
| `identifier` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
|
||||||
| `allow_sync` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | N/A | |
|
| `allow_sync` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | N/A | false |
|
||||||
| `meta` | [T.nilable(::PlexRubySDK::Operations::Meta)](../../models/operations/meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
| `meta` | [T.nilable(::PlexRubySDK::Operations::Meta)](../../models/operations/meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
||||||
| `metadata` | T::Array<[::PlexRubySDK::Operations::GetRecentlyAddedMetadata](../../models/operations/getrecentlyaddedmetadata.md)> | :heavy_minus_sign: | N/A | |
|
| `metadata` | T::Array<[::PlexRubySDK::Operations::GetRecentlyAddedMetadata](../../models/operations/getrecentlyaddedmetadata.md)> | :heavy_minus_sign: | N/A | |
|
||||||
@@ -16,6 +16,8 @@ API Calls interacting with Plex Media Server Libraries
|
|||||||
* [get_library_items](#get_library_items) - Get Library Items
|
* [get_library_items](#get_library_items) - Get Library Items
|
||||||
* [get_refresh_library_metadata](#get_refresh_library_metadata) - Refresh Metadata Of The Library
|
* [get_refresh_library_metadata](#get_refresh_library_metadata) - Refresh Metadata Of The Library
|
||||||
* [get_search_library](#get_search_library) - Search Library
|
* [get_search_library](#get_search_library) - Search Library
|
||||||
|
* [get_genres_library](#get_genres_library) - Get Genres of library media
|
||||||
|
* [get_countries_library](#get_countries_library) - Get Countries of library media
|
||||||
* [get_search_all_libraries](#get_search_all_libraries) - Search All Libraries
|
* [get_search_all_libraries](#get_search_all_libraries) - Search All Libraries
|
||||||
* [get_meta_data_by_rating_key](#get_meta_data_by_rating_key) - Get Metadata by RatingKey
|
* [get_meta_data_by_rating_key](#get_meta_data_by_rating_key) - Get Metadata by RatingKey
|
||||||
* [get_metadata_children](#get_metadata_children) - Get Items Children
|
* [get_metadata_children](#get_metadata_children) - Get Items Children
|
||||||
@@ -443,6 +445,84 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## get_genres_library
|
||||||
|
|
||||||
|
Retrieves a list of all the genres that are found for the media in this library.
|
||||||
|
|
||||||
|
|
||||||
|
### Example Usage
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
s.config_security(
|
||||||
|
::PlexRubySDK::Shared::Security.new(
|
||||||
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
res = s.library.get_genres_library(section_key=9518)
|
||||||
|
|
||||||
|
if ! res.object.nil?
|
||||||
|
# handle response
|
||||||
|
end
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `section_key` | *::Integer* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
|
|
||||||
|
### Response
|
||||||
|
|
||||||
|
**[T.nilable(::PlexRubySDK::Operations::GetGenresLibraryResponse)](../../models/operations/getgenreslibraryresponse.md)**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## get_countries_library
|
||||||
|
|
||||||
|
Retrieves a list of all the countries that are found for the media in this library.
|
||||||
|
|
||||||
|
|
||||||
|
### Example Usage
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
require 'plex_ruby_sdk'
|
||||||
|
|
||||||
|
|
||||||
|
s = ::PlexRubySDK::PlexAPI.new
|
||||||
|
s.config_security(
|
||||||
|
::PlexRubySDK::Shared::Security.new(
|
||||||
|
access_token: "<YOUR_API_KEY_HERE>",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
res = s.library.get_countries_library(section_key=9518)
|
||||||
|
|
||||||
|
if ! res.object.nil?
|
||||||
|
# handle response
|
||||||
|
end
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `section_key` | *::Integer* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
|
|
||||||
|
### Response
|
||||||
|
|
||||||
|
**[T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryResponse)](../../models/operations/getcountrieslibraryresponse.md)**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## get_search_all_libraries
|
## get_search_all_libraries
|
||||||
|
|
||||||
Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.
|
Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.
|
||||||
|
|||||||
@@ -491,6 +491,112 @@ module PlexRubySDK
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(section_key: ::Integer).returns(::PlexRubySDK::Operations::GetGenresLibraryResponse) }
|
||||||
|
def get_genres_library(section_key)
|
||||||
|
# get_genres_library - Get Genres of library media
|
||||||
|
# Retrieves a list of all the genres that are found for the media in this library.
|
||||||
|
#
|
||||||
|
request = ::PlexRubySDK::Operations::GetGenresLibraryRequest.new(
|
||||||
|
|
||||||
|
section_key: section_key
|
||||||
|
)
|
||||||
|
url, params = @sdk_configuration.get_server_details
|
||||||
|
base_url = Utils.template_url(url, params)
|
||||||
|
url = Utils.generate_url(
|
||||||
|
::PlexRubySDK::Operations::GetGenresLibraryRequest,
|
||||||
|
base_url,
|
||||||
|
'/library/sections/{sectionKey}/genre',
|
||||||
|
request
|
||||||
|
)
|
||||||
|
headers = {}
|
||||||
|
headers['Accept'] = 'application/json'
|
||||||
|
headers['user-agent'] = @sdk_configuration.user_agent
|
||||||
|
|
||||||
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
|
req.headers = headers
|
||||||
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
|
|
||||||
|
res = ::PlexRubySDK::Operations::GetGenresLibraryResponse.new(
|
||||||
|
status_code: r.status, content_type: content_type, raw_response: r
|
||||||
|
)
|
||||||
|
if r.status == 200
|
||||||
|
if Utils.match_content_type(content_type, 'application/json')
|
||||||
|
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGenresLibraryResponseBody)
|
||||||
|
res.object = out
|
||||||
|
end
|
||||||
|
elsif r.status == 400
|
||||||
|
if Utils.match_content_type(content_type, 'application/json')
|
||||||
|
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGenresLibraryBadRequest)
|
||||||
|
res.bad_request = out
|
||||||
|
end
|
||||||
|
elsif r.status == 401
|
||||||
|
if Utils.match_content_type(content_type, 'application/json')
|
||||||
|
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetGenresLibraryUnauthorized)
|
||||||
|
res.unauthorized = out
|
||||||
|
end
|
||||||
|
elsif r.status == 404
|
||||||
|
end
|
||||||
|
|
||||||
|
res
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(section_key: ::Integer).returns(::PlexRubySDK::Operations::GetCountriesLibraryResponse) }
|
||||||
|
def get_countries_library(section_key)
|
||||||
|
# get_countries_library - Get Countries of library media
|
||||||
|
# Retrieves a list of all the countries that are found for the media in this library.
|
||||||
|
#
|
||||||
|
request = ::PlexRubySDK::Operations::GetCountriesLibraryRequest.new(
|
||||||
|
|
||||||
|
section_key: section_key
|
||||||
|
)
|
||||||
|
url, params = @sdk_configuration.get_server_details
|
||||||
|
base_url = Utils.template_url(url, params)
|
||||||
|
url = Utils.generate_url(
|
||||||
|
::PlexRubySDK::Operations::GetCountriesLibraryRequest,
|
||||||
|
base_url,
|
||||||
|
'/library/sections/{sectionKey}/country',
|
||||||
|
request
|
||||||
|
)
|
||||||
|
headers = {}
|
||||||
|
headers['Accept'] = 'application/json'
|
||||||
|
headers['user-agent'] = @sdk_configuration.user_agent
|
||||||
|
|
||||||
|
r = @sdk_configuration.client.get(url) do |req|
|
||||||
|
req.headers = headers
|
||||||
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||||
|
|
||||||
|
res = ::PlexRubySDK::Operations::GetCountriesLibraryResponse.new(
|
||||||
|
status_code: r.status, content_type: content_type, raw_response: r
|
||||||
|
)
|
||||||
|
if r.status == 200
|
||||||
|
if Utils.match_content_type(content_type, 'application/json')
|
||||||
|
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetCountriesLibraryResponseBody)
|
||||||
|
res.object = out
|
||||||
|
end
|
||||||
|
elsif r.status == 400
|
||||||
|
if Utils.match_content_type(content_type, 'application/json')
|
||||||
|
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetCountriesLibraryBadRequest)
|
||||||
|
res.bad_request = out
|
||||||
|
end
|
||||||
|
elsif r.status == 401
|
||||||
|
if Utils.match_content_type(content_type, 'application/json')
|
||||||
|
out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetCountriesLibraryUnauthorized)
|
||||||
|
res.unauthorized = out
|
||||||
|
end
|
||||||
|
elsif r.status == 404
|
||||||
|
end
|
||||||
|
|
||||||
|
res
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetSearchAllLibrariesRequest)).returns(::PlexRubySDK::Operations::GetSearchAllLibrariesResponse) }
|
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetSearchAllLibrariesRequest)).returns(::PlexRubySDK::Operations::GetSearchAllLibrariesResponse) }
|
||||||
def get_search_all_libraries(request)
|
def get_search_all_libraries(request)
|
||||||
# get_search_all_libraries - Search All Libraries
|
# get_search_all_libraries - Search All Libraries
|
||||||
|
|||||||
@@ -448,6 +448,24 @@ module PlexRubySDK
|
|||||||
autoload :GetSearchLibraryMediaContainer, 'plex_ruby_sdk/models/operations/get_search_library_mediacontainer.rb'
|
autoload :GetSearchLibraryMediaContainer, 'plex_ruby_sdk/models/operations/get_search_library_mediacontainer.rb'
|
||||||
autoload :GetSearchLibraryResponseBody, 'plex_ruby_sdk/models/operations/get_search_library_responsebody.rb'
|
autoload :GetSearchLibraryResponseBody, 'plex_ruby_sdk/models/operations/get_search_library_responsebody.rb'
|
||||||
autoload :GetSearchLibraryResponse, 'plex_ruby_sdk/models/operations/get_search_library_response.rb'
|
autoload :GetSearchLibraryResponse, 'plex_ruby_sdk/models/operations/get_search_library_response.rb'
|
||||||
|
autoload :GetGenresLibraryRequest, 'plex_ruby_sdk/models/operations/get_genres_library_request.rb'
|
||||||
|
autoload :GetGenresLibraryLibraryErrors, 'plex_ruby_sdk/models/operations/get_genres_library_library_errors.rb'
|
||||||
|
autoload :GetGenresLibraryUnauthorized, 'plex_ruby_sdk/models/operations/get_genres_library_unauthorized.rb'
|
||||||
|
autoload :GetGenresLibraryErrors, 'plex_ruby_sdk/models/operations/get_genres_library_errors.rb'
|
||||||
|
autoload :GetGenresLibraryBadRequest, 'plex_ruby_sdk/models/operations/get_genres_library_badrequest.rb'
|
||||||
|
autoload :GetGenresLibraryDirectory, 'plex_ruby_sdk/models/operations/get_genres_library_directory.rb'
|
||||||
|
autoload :GetGenresLibraryMediaContainer, 'plex_ruby_sdk/models/operations/get_genres_library_mediacontainer.rb'
|
||||||
|
autoload :GetGenresLibraryResponseBody, 'plex_ruby_sdk/models/operations/get_genres_library_responsebody.rb'
|
||||||
|
autoload :GetGenresLibraryResponse, 'plex_ruby_sdk/models/operations/get_genres_library_response.rb'
|
||||||
|
autoload :GetCountriesLibraryRequest, 'plex_ruby_sdk/models/operations/get_countries_library_request.rb'
|
||||||
|
autoload :GetCountriesLibraryLibraryErrors, 'plex_ruby_sdk/models/operations/get_countries_library_library_errors.rb'
|
||||||
|
autoload :GetCountriesLibraryUnauthorized, 'plex_ruby_sdk/models/operations/get_countries_library_unauthorized.rb'
|
||||||
|
autoload :GetCountriesLibraryErrors, 'plex_ruby_sdk/models/operations/get_countries_library_errors.rb'
|
||||||
|
autoload :GetCountriesLibraryBadRequest, 'plex_ruby_sdk/models/operations/get_countries_library_badrequest.rb'
|
||||||
|
autoload :GetCountriesLibraryDirectory, 'plex_ruby_sdk/models/operations/get_countries_library_directory.rb'
|
||||||
|
autoload :GetCountriesLibraryMediaContainer, 'plex_ruby_sdk/models/operations/get_countries_library_mediacontainer.rb'
|
||||||
|
autoload :GetCountriesLibraryResponseBody, 'plex_ruby_sdk/models/operations/get_countries_library_responsebody.rb'
|
||||||
|
autoload :GetCountriesLibraryResponse, 'plex_ruby_sdk/models/operations/get_countries_library_response.rb'
|
||||||
autoload :SearchTypes, 'plex_ruby_sdk/models/operations/searchtypes.rb'
|
autoload :SearchTypes, 'plex_ruby_sdk/models/operations/searchtypes.rb'
|
||||||
autoload :QueryParamIncludeCollections, 'plex_ruby_sdk/models/operations/queryparam_includecollections.rb'
|
autoload :QueryParamIncludeCollections, 'plex_ruby_sdk/models/operations/queryparam_includecollections.rb'
|
||||||
autoload :QueryParamIncludeExternalMedia, 'plex_ruby_sdk/models/operations/queryparam_includeexternalmedia.rb'
|
autoload :QueryParamIncludeExternalMedia, 'plex_ruby_sdk/models/operations/queryparam_includeexternalmedia.rb'
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
class GetCountriesLibraryBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetCountriesLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetCountriesLibraryErrors])).void }
|
||||||
|
def initialize(errors: nil)
|
||||||
|
@errors = errors
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetCountriesLibraryDirectory < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :fast_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('fastKey') } }
|
||||||
|
|
||||||
|
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||||
|
|
||||||
|
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(fast_key: ::String, key: ::String, title: ::String).void }
|
||||||
|
def initialize(fast_key: nil, key: nil, title: nil)
|
||||||
|
@fast_key = fast_key
|
||||||
|
@key = key
|
||||||
|
@title = title
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetCountriesLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||||
|
|
||||||
|
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||||
|
|
||||||
|
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||||
|
def initialize(code: nil, message: nil, status: nil)
|
||||||
|
@code = code
|
||||||
|
@message = message
|
||||||
|
@status = status
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetCountriesLibraryLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||||
|
|
||||||
|
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||||
|
|
||||||
|
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||||
|
def initialize(code: nil, message: nil, status: nil)
|
||||||
|
@code = code
|
||||||
|
@message = message
|
||||||
|
@status = status
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetCountriesLibraryMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||||
|
|
||||||
|
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||||
|
|
||||||
|
field :content, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
||||||
|
|
||||||
|
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||||
|
|
||||||
|
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||||
|
|
||||||
|
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
||||||
|
|
||||||
|
field :nocache, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
||||||
|
|
||||||
|
field :size, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||||
|
|
||||||
|
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||||
|
|
||||||
|
field :title1, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title1') } }
|
||||||
|
|
||||||
|
field :title2, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title2') } }
|
||||||
|
|
||||||
|
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
||||||
|
|
||||||
|
field :directory, T.nilable(T::Array[::PlexRubySDK::Operations::GetCountriesLibraryDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||||
|
|
||||||
|
field :offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('offset') } }
|
||||||
|
|
||||||
|
field :total_size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('totalSize') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::Float, thumb: ::String, title1: ::String, title2: ::String, view_group: ::String, directory: T.nilable(T::Array[::PlexRubySDK::Operations::GetCountriesLibraryDirectory]), offset: T.nilable(::Integer), total_size: T.nilable(::Integer)).void }
|
||||||
|
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, size: nil, thumb: nil, title1: nil, title2: nil, view_group: nil, directory: nil, offset: nil, total_size: nil)
|
||||||
|
@allow_sync = allow_sync
|
||||||
|
@art = art
|
||||||
|
@content = content
|
||||||
|
@identifier = identifier
|
||||||
|
@media_tag_prefix = media_tag_prefix
|
||||||
|
@media_tag_version = media_tag_version
|
||||||
|
@nocache = nocache
|
||||||
|
@size = size
|
||||||
|
@thumb = thumb
|
||||||
|
@title1 = title1
|
||||||
|
@title2 = title2
|
||||||
|
@view_group = view_group
|
||||||
|
@directory = directory
|
||||||
|
@offset = offset
|
||||||
|
@total_size = total_size
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetCountriesLibraryRequest < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
# The unique key of the Plex library.
|
||||||
|
# Note: This is unique in the context of the Plex server.
|
||||||
|
#
|
||||||
|
field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(section_key: ::Integer).void }
|
||||||
|
def initialize(section_key: nil)
|
||||||
|
@section_key = section_key
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetCountriesLibraryResponse < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
# HTTP response content type for this operation
|
||||||
|
field :content_type, ::String
|
||||||
|
# Raw HTTP response; suitable for custom response parsing
|
||||||
|
field :raw_response, ::Faraday::Response
|
||||||
|
# HTTP response status code for this operation
|
||||||
|
field :status_code, ::Integer
|
||||||
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
field :bad_request, T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryBadRequest)
|
||||||
|
# Successful response containing media container data.
|
||||||
|
field :object, T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryResponseBody)
|
||||||
|
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
field :unauthorized, T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryUnauthorized)
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryBadRequest), object: T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryResponseBody), unauthorized: T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryUnauthorized)).void }
|
||||||
|
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, object: nil, unauthorized: nil)
|
||||||
|
@content_type = content_type
|
||||||
|
@raw_response = raw_response
|
||||||
|
@status_code = status_code
|
||||||
|
@bad_request = bad_request
|
||||||
|
@object = object
|
||||||
|
@unauthorized = unauthorized
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
# Successful response containing media container data.
|
||||||
|
class GetCountriesLibraryResponseBody < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :media_container, T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::GetCountriesLibraryMediaContainer)).void }
|
||||||
|
def initialize(media_container: nil)
|
||||||
|
@media_container = media_container
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
class GetCountriesLibraryUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetCountriesLibraryLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetCountriesLibraryLibraryErrors])).void }
|
||||||
|
def initialize(errors: nil)
|
||||||
|
@errors = errors
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
class GetGenresLibraryBadRequest < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetGenresLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetGenresLibraryErrors])).void }
|
||||||
|
def initialize(errors: nil)
|
||||||
|
@errors = errors
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetGenresLibraryDirectory < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :fast_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('fastKey') } }
|
||||||
|
|
||||||
|
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||||
|
|
||||||
|
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||||
|
|
||||||
|
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(fast_key: ::String, key: ::String, title: ::String, type: ::String).void }
|
||||||
|
def initialize(fast_key: nil, key: nil, title: nil, type: nil)
|
||||||
|
@fast_key = fast_key
|
||||||
|
@key = key
|
||||||
|
@title = title
|
||||||
|
@type = type
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetGenresLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||||
|
|
||||||
|
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||||
|
|
||||||
|
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||||
|
def initialize(code: nil, message: nil, status: nil)
|
||||||
|
@code = code
|
||||||
|
@message = message
|
||||||
|
@status = status
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetGenresLibraryLibraryErrors < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||||
|
|
||||||
|
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||||
|
|
||||||
|
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||||
|
def initialize(code: nil, message: nil, status: nil)
|
||||||
|
@code = code
|
||||||
|
@message = message
|
||||||
|
@status = status
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetGenresLibraryMediaContainer < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||||
|
|
||||||
|
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||||
|
|
||||||
|
field :content, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
||||||
|
|
||||||
|
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||||
|
|
||||||
|
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||||
|
|
||||||
|
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
||||||
|
|
||||||
|
field :nocache, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
||||||
|
|
||||||
|
field :size, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||||
|
|
||||||
|
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||||
|
|
||||||
|
field :title1, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title1') } }
|
||||||
|
|
||||||
|
field :title2, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title2') } }
|
||||||
|
|
||||||
|
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
||||||
|
|
||||||
|
field :directory, T.nilable(T::Array[::PlexRubySDK::Operations::GetGenresLibraryDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||||
|
|
||||||
|
field :offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('offset') } }
|
||||||
|
|
||||||
|
field :total_size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('totalSize') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::Float, thumb: ::String, title1: ::String, title2: ::String, view_group: ::String, directory: T.nilable(T::Array[::PlexRubySDK::Operations::GetGenresLibraryDirectory]), offset: T.nilable(::Integer), total_size: T.nilable(::Integer)).void }
|
||||||
|
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, size: nil, thumb: nil, title1: nil, title2: nil, view_group: nil, directory: nil, offset: nil, total_size: nil)
|
||||||
|
@allow_sync = allow_sync
|
||||||
|
@art = art
|
||||||
|
@content = content
|
||||||
|
@identifier = identifier
|
||||||
|
@media_tag_prefix = media_tag_prefix
|
||||||
|
@media_tag_version = media_tag_version
|
||||||
|
@nocache = nocache
|
||||||
|
@size = size
|
||||||
|
@thumb = thumb
|
||||||
|
@title1 = title1
|
||||||
|
@title2 = title2
|
||||||
|
@view_group = view_group
|
||||||
|
@directory = directory
|
||||||
|
@offset = offset
|
||||||
|
@total_size = total_size
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetGenresLibraryRequest < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
# The unique key of the Plex library.
|
||||||
|
# Note: This is unique in the context of the Plex server.
|
||||||
|
#
|
||||||
|
field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(section_key: ::Integer).void }
|
||||||
|
def initialize(section_key: nil)
|
||||||
|
@section_key = section_key
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
|
||||||
|
class GetGenresLibraryResponse < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
# HTTP response content type for this operation
|
||||||
|
field :content_type, ::String
|
||||||
|
# Raw HTTP response; suitable for custom response parsing
|
||||||
|
field :raw_response, ::Faraday::Response
|
||||||
|
# HTTP response status code for this operation
|
||||||
|
field :status_code, ::Integer
|
||||||
|
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
field :bad_request, T.nilable(::PlexRubySDK::Operations::GetGenresLibraryBadRequest)
|
||||||
|
# Successful response containing media container data.
|
||||||
|
field :object, T.nilable(::PlexRubySDK::Operations::GetGenresLibraryResponseBody)
|
||||||
|
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
field :unauthorized, T.nilable(::PlexRubySDK::Operations::GetGenresLibraryUnauthorized)
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::GetGenresLibraryBadRequest), object: T.nilable(::PlexRubySDK::Operations::GetGenresLibraryResponseBody), unauthorized: T.nilable(::PlexRubySDK::Operations::GetGenresLibraryUnauthorized)).void }
|
||||||
|
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, object: nil, unauthorized: nil)
|
||||||
|
@content_type = content_type
|
||||||
|
@raw_response = raw_response
|
||||||
|
@status_code = status_code
|
||||||
|
@bad_request = bad_request
|
||||||
|
@object = object
|
||||||
|
@unauthorized = unauthorized
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
# Successful response containing media container data.
|
||||||
|
class GetGenresLibraryResponseBody < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :media_container, T.nilable(::PlexRubySDK::Operations::GetGenresLibraryMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::GetGenresLibraryMediaContainer)).void }
|
||||||
|
def initialize(media_container: nil)
|
||||||
|
@media_container = media_container
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
|
||||||
|
# typed: true
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
|
||||||
|
module PlexRubySDK
|
||||||
|
module Operations
|
||||||
|
|
||||||
|
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
class GetGenresLibraryUnauthorized < ::PlexRubySDK::Utils::FieldAugmented
|
||||||
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetGenresLibraryLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||||
|
|
||||||
|
|
||||||
|
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetGenresLibraryLibraryErrors])).void }
|
||||||
|
def initialize(errors: nil)
|
||||||
|
@errors = errors
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -40,9 +40,9 @@ module PlexRubySDK
|
|||||||
@security = security
|
@security = security
|
||||||
@language = 'ruby'
|
@language = 'ruby'
|
||||||
@openapi_doc_version = '0.0.3'
|
@openapi_doc_version = '0.0.3'
|
||||||
@sdk_version = '0.7.1'
|
@sdk_version = '0.7.2'
|
||||||
@gen_version = '2.495.1'
|
@gen_version = '2.503.2'
|
||||||
@user_agent = 'speakeasy-sdk/ruby 0.7.1 2.495.1 0.0.3 plex_ruby_sdk'
|
@user_agent = 'speakeasy-sdk/ruby 0.7.2 2.503.2 0.0.3 plex_ruby_sdk'
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { returns([String, T::Hash[Symbol, String]]) }
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
|
|||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'plex_ruby_sdk'
|
s.name = 'plex_ruby_sdk'
|
||||||
s.version = '0.7.1'
|
s.version = '0.7.2'
|
||||||
s.platform = Gem::Platform::RUBY
|
s.platform = Gem::Platform::RUBY
|
||||||
s.licenses = ['Apache-2.0']
|
s.licenses = ['Apache-2.0']
|
||||||
s.summary = ''
|
s.summary = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user