2022-07-20 19:26:53 +00:00
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QueryDefaults(BaseModel):
|
2022-07-22 18:57:26 +00:00
|
|
|
ttl_minutes: int = Field(
|
|
|
|
|
None, description="The number of minutes to cache the query results"
|
|
|
|
|
)
|
2022-07-20 19:26:53 +00:00
|
|
|
cached: bool = Field(False, description="Whether or not to cache the query results")
|
2022-07-22 18:57:26 +00:00
|
|
|
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"
|
|
|
|
|
)
|
2022-07-20 19:26:53 +00:00
|
|
|
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")
|