mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 20:57:45 +00:00
Regenerated with pythonv2 and newest spec
This commit is contained in:
61
src/plex_api_client/models/operations/gettransienttoken.py
Normal file
61
src/plex_api_client/models/operations/gettransienttoken.py
Normal file
@@ -0,0 +1,61 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from enum import Enum
|
||||
import httpx
|
||||
from plex_api_client.types import BaseModel
|
||||
from plex_api_client.utils import FieldMetadata, QueryParamMetadata
|
||||
from typing import TypedDict
|
||||
from typing_extensions import Annotated
|
||||
|
||||
|
||||
class GetTransientTokenQueryParamType(str, Enum):
|
||||
r"""`delegation` - This is the only supported `type` parameter."""
|
||||
|
||||
DELEGATION = "delegation"
|
||||
|
||||
|
||||
class Scope(str, Enum):
|
||||
r"""`all` - This is the only supported `scope` parameter."""
|
||||
|
||||
ALL = "all"
|
||||
|
||||
|
||||
class GetTransientTokenRequestTypedDict(TypedDict):
|
||||
type: GetTransientTokenQueryParamType
|
||||
r"""`delegation` - This is the only supported `type` parameter."""
|
||||
scope: Scope
|
||||
r"""`all` - This is the only supported `scope` parameter."""
|
||||
|
||||
|
||||
class GetTransientTokenRequest(BaseModel):
|
||||
type: Annotated[
|
||||
GetTransientTokenQueryParamType,
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
]
|
||||
r"""`delegation` - This is the only supported `type` parameter."""
|
||||
|
||||
scope: Annotated[
|
||||
Scope, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
||||
]
|
||||
r"""`all` - This is the only supported `scope` parameter."""
|
||||
|
||||
|
||||
class GetTransientTokenResponseTypedDict(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"""
|
||||
|
||||
|
||||
class GetTransientTokenResponse(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"""
|
||||
Reference in New Issue
Block a user