sdk/python/shroomdk/models/api/create_query_resp.py
2022-07-25 15:36:37 -04:00

16 lines
527 B
Python

from typing import Optional, Union
from pydantic import BaseModel, Field
from .api_response import ApiResponse
class CreateQueryJson(BaseModel):
token: str = Field(None, description="The server-side token of the query being executed.")
errors: Union[Optional[str], None] = Field(False, description="Error that occured when creating the query.")
cached: Optional[bool] = Field(False, description="Whether the query is cached or not.")
class CreateQueryResp(ApiResponse):
data: Union[CreateQueryJson, None]