sdk/python/shroomdk/models/query_defaults.py
2022-07-22 14:57:26 -04:00

17 lines
683 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")