mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 04:20:54 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.615.2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from dataclasses import dataclass, field
|
||||
import httpx
|
||||
from plex_api_client.models.errors import PlexAPIError
|
||||
from plex_api_client.types import BaseModel
|
||||
@@ -32,10 +33,11 @@ class MarkPlayedUnauthorizedData(BaseModel):
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MarkPlayedUnauthorized(PlexAPIError):
|
||||
r"""Unauthorized - Returned if the X-Plex-Token is missing from the header or query."""
|
||||
|
||||
data: MarkPlayedUnauthorizedData
|
||||
data: MarkPlayedUnauthorizedData = field(hash=False)
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -45,7 +47,7 @@ class MarkPlayedUnauthorized(PlexAPIError):
|
||||
):
|
||||
message = body or raw_response.text
|
||||
super().__init__(message, raw_response, body)
|
||||
self.data = data
|
||||
object.__setattr__(self, "data", data)
|
||||
|
||||
|
||||
class MarkPlayedErrorsTypedDict(TypedDict):
|
||||
@@ -71,10 +73,11 @@ class MarkPlayedBadRequestData(BaseModel):
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MarkPlayedBadRequest(PlexAPIError):
|
||||
r"""Bad Request - A parameter was not specified, or was specified incorrectly."""
|
||||
|
||||
data: MarkPlayedBadRequestData
|
||||
data: MarkPlayedBadRequestData = field(hash=False)
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -84,4 +87,4 @@ class MarkPlayedBadRequest(PlexAPIError):
|
||||
):
|
||||
message = body or raw_response.text
|
||||
super().__init__(message, raw_response, body)
|
||||
self.data = data
|
||||
object.__setattr__(self, "data", data)
|
||||
|
||||
Reference in New Issue
Block a user