sdk/python/shroomdk/models/query_defaults.py
2022-07-20 15:26:53 -04:00

11 lines
641 B
Python

from pydantic import BaseModel, Field
class QueryDefaults(BaseModel):
ttl_minutes: int = Field(None, description="The number of minutes to cache the query results")
cached: bool = Field(False, description="Whether or not to cache the query results")
timeout_minutes: int = Field(None, description="The number of minutes to timeout the query")
retry_interval_seconds: float = Field(None, description="The number of seconds to wait before retrying the query")
page_size: int = Field(None, description="The number of results to return per page")
page_number: int = Field(None, description="The page number to return")