mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-06 12:47:44 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.207.1
This commit is contained in:
@@ -3,10 +3,10 @@ id: 3eeea668-4ef4-464e-a888-bdfa023bedf5
|
|||||||
management:
|
management:
|
||||||
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
|
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.204.1
|
speakeasyVersion: 1.207.1
|
||||||
generationVersion: 2.279.1
|
generationVersion: 2.280.6
|
||||||
releaseVersion: 0.4.0
|
releaseVersion: 0.4.1
|
||||||
configChecksum: bd151d168c96896726f8c92a667d7abc
|
configChecksum: 0b2741b885d75fab8768ca79a3e7c8ac
|
||||||
repoURL: https://github.com/LukeHagar/plexpy.git
|
repoURL: https://github.com/LukeHagar/plexpy.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexpy.git
|
installationURL: https://github.com/LukeHagar/plexpy.git
|
||||||
@@ -17,7 +17,7 @@ features:
|
|||||||
core: 4.5.1
|
core: 4.5.1
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalSecurity: 2.83.4
|
globalSecurity: 2.83.4
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.2
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.1
|
nameOverrides: 2.81.1
|
||||||
responseFormat: 0.1.0
|
responseFormat: 0.1.0
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -89,3 +89,13 @@ Based on:
|
|||||||
- [python v0.4.0] .
|
- [python v0.4.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [PyPI v0.4.0] https://pypi.org/project/plex-api-client/0.4.0 - .
|
- [PyPI v0.4.0] https://pypi.org/project/plex-api-client/0.4.0 - .
|
||||||
|
|
||||||
|
## 2024-03-13 01:12:28
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.207.1 (2.280.6) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [python v0.4.1] .
|
||||||
|
### Releases
|
||||||
|
- [PyPI v0.4.1] https://pypi.org/project/plex-api-client/0.4.1 - .
|
||||||
2
gen.yaml
2
gen.yaml
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
python:
|
python:
|
||||||
version: 0.4.0
|
version: 0.4.1
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
extraDependencies:
|
extraDependencies:
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -10,7 +10,7 @@ except FileNotFoundError:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="plex-api-client",
|
name="plex-api-client",
|
||||||
version="0.4.0",
|
version="0.4.1",
|
||||||
author="LukeHagar",
|
author="LukeHagar",
|
||||||
description="Python Client SDK Generated by Speakeasy",
|
description="Python Client SDK Generated by Speakeasy",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ from .video import Video
|
|||||||
from plex_api import utils
|
from plex_api import utils
|
||||||
from plex_api._hooks import SDKHooks
|
from plex_api._hooks import SDKHooks
|
||||||
from plex_api.models import components
|
from plex_api.models import components
|
||||||
from typing import Callable, Dict, Union
|
from typing import Callable, Dict, Optional, Union
|
||||||
|
|
||||||
class PlexAPI:
|
class PlexAPI:
|
||||||
r"""Plex-API: A Plex Media Server API Map
|
r"""Plex-API: A Plex Media Server API Map
|
||||||
@@ -77,11 +77,11 @@ class PlexAPI:
|
|||||||
protocol: ServerProtocol = None,
|
protocol: ServerProtocol = None,
|
||||||
ip: str = None,
|
ip: str = None,
|
||||||
port: str = None,
|
port: str = None,
|
||||||
server_idx: int = None,
|
server_idx: Optional[int] = None,
|
||||||
server_url: str = None,
|
server_url: Optional[str] = None,
|
||||||
url_params: Dict[str, str] = None,
|
url_params: Optional[Dict[str, str]] = None,
|
||||||
client: requests_http.Session = None,
|
client: Optional[requests_http.Session] = None,
|
||||||
retry_config: utils.RetryConfig = None
|
retry_config: Optional[utils.RetryConfig] = None
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Instantiates the SDK configuring it with the provided parameters.
|
"""Instantiates the SDK configuring it with the provided parameters.
|
||||||
|
|
||||||
@@ -124,7 +124,14 @@ class PlexAPI:
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
self.sdk_configuration = SDKConfiguration(client, security, server_url, server_idx, server_defaults, retry_config=retry_config)
|
self.sdk_configuration = SDKConfiguration(
|
||||||
|
client,
|
||||||
|
security,
|
||||||
|
server_url,
|
||||||
|
server_idx,
|
||||||
|
server_defaults,
|
||||||
|
retry_config=retry_config
|
||||||
|
)
|
||||||
|
|
||||||
hooks = SDKHooks()
|
hooks = SDKHooks()
|
||||||
|
|
||||||
@@ -134,10 +141,11 @@ class PlexAPI:
|
|||||||
self.sdk_configuration.server_url = server_url
|
self.sdk_configuration.server_url = server_url
|
||||||
|
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
self.sdk_configuration._hooks=hooks
|
self.sdk_configuration._hooks = hooks
|
||||||
|
|
||||||
self._init_sdks()
|
self._init_sdks()
|
||||||
|
|
||||||
|
|
||||||
def _init_sdks(self):
|
def _init_sdks(self):
|
||||||
self.server = Server(self.sdk_configuration)
|
self.server = Server(self.sdk_configuration)
|
||||||
self.media = Media(self.sdk_configuration)
|
self.media = Media(self.sdk_configuration)
|
||||||
@@ -154,4 +162,3 @@ class PlexAPI:
|
|||||||
self.statistics = Statistics(self.sdk_configuration)
|
self.statistics = Statistics(self.sdk_configuration)
|
||||||
self.sessions = Sessions(self.sdk_configuration)
|
self.sessions = Sessions(self.sdk_configuration)
|
||||||
self.updater = Updater(self.sdk_configuration)
|
self.updater = Updater(self.sdk_configuration)
|
||||||
|
|
||||||
@@ -32,9 +32,9 @@ class SDKConfiguration:
|
|||||||
server_defaults: List[Dict[str, str]] = field(default_factory=List)
|
server_defaults: List[Dict[str, str]] = field(default_factory=List)
|
||||||
language: str = 'python'
|
language: str = 'python'
|
||||||
openapi_doc_version: str = '0.0.3'
|
openapi_doc_version: str = '0.0.3'
|
||||||
sdk_version: str = '0.4.0'
|
sdk_version: str = '0.4.1'
|
||||||
gen_version: str = '2.279.1'
|
gen_version: str = '2.280.6'
|
||||||
user_agent: str = 'speakeasy-sdk/python 0.4.0 2.279.1 0.0.3 plex-api-client'
|
user_agent: str = 'speakeasy-sdk/python 0.4.1 2.280.6 0.0.3 plex-api-client'
|
||||||
retry_config: RetryConfig = None
|
retry_config: RetryConfig = None
|
||||||
_hooks: SDKHooks = None
|
_hooks: SDKHooks = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user