mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 20:57:45 +00:00
80 lines
2.1 KiB
Python
80 lines
2.1 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
import httpx
|
|
from plex_api_client import utils
|
|
from plex_api_client.types import BaseModel
|
|
import pydantic
|
|
from typing import List, Optional
|
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
|
|
|
class GetOnDeckLibraryErrorsTypedDict(TypedDict):
|
|
code: NotRequired[int]
|
|
message: NotRequired[str]
|
|
status: NotRequired[int]
|
|
|
|
|
|
class GetOnDeckLibraryErrors(BaseModel):
|
|
code: Optional[int] = None
|
|
|
|
message: Optional[str] = None
|
|
|
|
status: Optional[int] = None
|
|
|
|
|
|
class GetOnDeckUnauthorizedData(BaseModel):
|
|
errors: Optional[List[GetOnDeckLibraryErrors]] = None
|
|
|
|
raw_response: Annotated[Optional[httpx.Response], pydantic.Field(exclude=True)] = (
|
|
None
|
|
)
|
|
r"""Raw HTTP response; suitable for custom response parsing"""
|
|
|
|
|
|
class GetOnDeckUnauthorized(Exception):
|
|
r"""Unauthorized - Returned if the X-Plex-Token is missing from the header or query."""
|
|
|
|
data: GetOnDeckUnauthorizedData
|
|
|
|
def __init__(self, data: GetOnDeckUnauthorizedData):
|
|
self.data = data
|
|
|
|
def __str__(self) -> str:
|
|
return utils.marshal_json(self.data, GetOnDeckUnauthorizedData)
|
|
|
|
|
|
class GetOnDeckErrorsTypedDict(TypedDict):
|
|
code: NotRequired[int]
|
|
message: NotRequired[str]
|
|
status: NotRequired[int]
|
|
|
|
|
|
class GetOnDeckErrors(BaseModel):
|
|
code: Optional[int] = None
|
|
|
|
message: Optional[str] = None
|
|
|
|
status: Optional[int] = None
|
|
|
|
|
|
class GetOnDeckBadRequestData(BaseModel):
|
|
errors: Optional[List[GetOnDeckErrors]] = None
|
|
|
|
raw_response: Annotated[Optional[httpx.Response], pydantic.Field(exclude=True)] = (
|
|
None
|
|
)
|
|
r"""Raw HTTP response; suitable for custom response parsing"""
|
|
|
|
|
|
class GetOnDeckBadRequest(Exception):
|
|
r"""Bad Request - A parameter was not specified, or was specified incorrectly."""
|
|
|
|
data: GetOnDeckBadRequestData
|
|
|
|
def __init__(self, data: GetOnDeckBadRequestData):
|
|
self.data = data
|
|
|
|
def __str__(self) -> str:
|
|
return utils.marshal_json(self.data, GetOnDeckBadRequestData)
|