Files
plexpy/src/plex_api_client/models/operations/getbutlertasks.py

83 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.types import BaseModel
import pydantic
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict
class ButlerTaskTypedDict(TypedDict):
name: NotRequired[str]
interval: NotRequired[float]
schedule_randomized: NotRequired[bool]
enabled: NotRequired[bool]
title: NotRequired[str]
description: NotRequired[str]
class ButlerTask(BaseModel):
name: Optional[str] = None
interval: Optional[float] = None
schedule_randomized: Annotated[
Optional[bool], pydantic.Field(alias="scheduleRandomized")
] = None
enabled: Optional[bool] = None
title: Optional[str] = None
description: Optional[str] = None
class ButlerTasksTypedDict(TypedDict):
butler_task: NotRequired[List[ButlerTaskTypedDict]]
class ButlerTasks(BaseModel):
butler_task: Annotated[
Optional[List[ButlerTask]], pydantic.Field(alias="ButlerTask")
] = None
class GetButlerTasksResponseBodyTypedDict(TypedDict):
r"""All butler tasks"""
butler_tasks: NotRequired[ButlerTasksTypedDict]
class GetButlerTasksResponseBody(BaseModel):
r"""All butler tasks"""
butler_tasks: Annotated[
Optional[ButlerTasks], pydantic.Field(alias="ButlerTasks")
] = None
class GetButlerTasksResponseTypedDict(TypedDict):
content_type: str
r"""HTTP response content type for this operation"""
status_code: int
r"""HTTP response status code for this operation"""
raw_response: httpx.Response
r"""Raw HTTP response; suitable for custom response parsing"""
object: NotRequired[GetButlerTasksResponseBodyTypedDict]
r"""All butler tasks"""
class GetButlerTasksResponse(BaseModel):
content_type: str
r"""HTTP response content type for this operation"""
status_code: int
r"""HTTP response status code for this operation"""
raw_response: httpx.Response
r"""Raw HTTP response; suitable for custom response parsing"""
object: Optional[GetButlerTasksResponseBody] = None
r"""All butler tasks"""