mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-09 20:57:44 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.161.0
This commit is contained in:
31
src/plex_api/models/operations/gettoken.py
Normal file
31
src/plex_api/models/operations/gettoken.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import dataclasses
|
||||
import requests as requests_http
|
||||
|
||||
GET_TOKEN_SERVERS = [
|
||||
"https://plex.tv/api/v2",
|
||||
]
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class GetTokenRequest:
|
||||
pin_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': False }})
|
||||
r"""The PinID to retrieve an access token for"""
|
||||
x_plex_client_identifier: str = dataclasses.field(metadata={'header': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'simple', 'explode': False }})
|
||||
r"""Plex Authentication Token"""
|
||||
|
||||
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class GetTokenResponse:
|
||||
content_type: str = dataclasses.field()
|
||||
r"""HTTP response content type for this operation"""
|
||||
raw_response: requests_http.Response = dataclasses.field()
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
status_code: int = dataclasses.field()
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user