mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 12:47:45 +00:00
Regenerated with pythonv2 and newest spec
This commit is contained in:
82
src/plex_api_client/models/operations/getbutlertasks.py
Normal file
82
src/plex_api_client/models/operations/getbutlertasks.py
Normal file
@@ -0,0 +1,82 @@
|
||||
"""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, TypedDict
|
||||
from typing_extensions import Annotated, NotRequired
|
||||
|
||||
|
||||
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"""
|
||||
Reference in New Issue
Block a user