ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.598.0

This commit is contained in:
speakeasybot
2025-08-06 00:02:39 +00:00
parent 0d8451f5b2
commit 41d23df5b5
133 changed files with 3915 additions and 4470 deletions

View File

@@ -2,7 +2,7 @@
from __future__ import annotations
import httpx
from plex_api_client import utils
from plex_api_client.models.errors import PlexAPIError
from plex_api_client.types import BaseModel
import pydantic
from typing import List, Optional
@@ -32,17 +32,21 @@ class LogLineUnauthorizedData(BaseModel):
r"""Raw HTTP response; suitable for custom response parsing"""
class LogLineUnauthorized(Exception):
class LogLineUnauthorized(PlexAPIError):
r"""Unauthorized - Returned if the X-Plex-Token is missing from the header or query."""
data: LogLineUnauthorizedData
def __init__(self, data: LogLineUnauthorizedData):
def __init__(
self,
data: LogLineUnauthorizedData,
raw_response: httpx.Response,
body: Optional[str] = None,
):
message = body or raw_response.text
super().__init__(message, raw_response, body)
self.data = data
def __str__(self) -> str:
return utils.marshal_json(self.data, LogLineUnauthorizedData)
class LogLineErrorsTypedDict(TypedDict):
code: NotRequired[int]
@@ -67,13 +71,17 @@ class LogLineBadRequestData(BaseModel):
r"""Raw HTTP response; suitable for custom response parsing"""
class LogLineBadRequest(Exception):
class LogLineBadRequest(PlexAPIError):
r"""Bad Request - A parameter was not specified, or was specified incorrectly."""
data: LogLineBadRequestData
def __init__(self, data: LogLineBadRequestData):
def __init__(
self,
data: LogLineBadRequestData,
raw_response: httpx.Response,
body: Optional[str] = None,
):
message = body or raw_response.text
super().__init__(message, raw_response, body)
self.data = data
def __str__(self) -> str:
return utils.marshal_json(self.data, LogLineBadRequestData)