mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-06 20:57:46 +00:00
80 lines
2.0 KiB
Python
80 lines
2.0 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, TypedDict
|
|
from typing_extensions import Annotated, NotRequired
|
|
|
|
|
|
class LogLineLogErrorsTypedDict(TypedDict):
|
|
code: NotRequired[int]
|
|
message: NotRequired[str]
|
|
status: NotRequired[int]
|
|
|
|
|
|
class LogLineLogErrors(BaseModel):
|
|
code: Optional[int] = None
|
|
|
|
message: Optional[str] = None
|
|
|
|
status: Optional[int] = None
|
|
|
|
|
|
class LogLineLogResponseBodyData(BaseModel):
|
|
errors: Optional[List[LogLineLogErrors]] = None
|
|
|
|
raw_response: Annotated[Optional[httpx.Response], pydantic.Field(exclude=True)] = (
|
|
None
|
|
)
|
|
r"""Raw HTTP response; suitable for custom response parsing"""
|
|
|
|
|
|
class LogLineLogResponseBody(Exception):
|
|
r"""Unauthorized - Returned if the X-Plex-Token is missing from the header or query."""
|
|
|
|
data: LogLineLogResponseBodyData
|
|
|
|
def __init__(self, data: LogLineLogResponseBodyData):
|
|
self.data = data
|
|
|
|
def __str__(self) -> str:
|
|
return utils.marshal_json(self.data, LogLineLogResponseBodyData)
|
|
|
|
|
|
class LogLineErrorsTypedDict(TypedDict):
|
|
code: NotRequired[int]
|
|
message: NotRequired[str]
|
|
status: NotRequired[int]
|
|
|
|
|
|
class LogLineErrors(BaseModel):
|
|
code: Optional[int] = None
|
|
|
|
message: Optional[str] = None
|
|
|
|
status: Optional[int] = None
|
|
|
|
|
|
class LogLineResponseBodyData(BaseModel):
|
|
errors: Optional[List[LogLineErrors]] = None
|
|
|
|
raw_response: Annotated[Optional[httpx.Response], pydantic.Field(exclude=True)] = (
|
|
None
|
|
)
|
|
r"""Raw HTTP response; suitable for custom response parsing"""
|
|
|
|
|
|
class LogLineResponseBody(Exception):
|
|
r"""Bad Request - A parameter was not specified, or was specified incorrectly."""
|
|
|
|
data: LogLineResponseBodyData
|
|
|
|
def __init__(self, data: LogLineResponseBodyData):
|
|
self.data = data
|
|
|
|
def __str__(self) -> str:
|
|
return utils.marshal_json(self.data, LogLineResponseBodyData)
|