Source code for steamship.base.request

from enum import Enum
from typing import Optional

from steamship.base.model import CamelModel


[docs] class Request(CamelModel): pass
[docs] class GetRequest(Request): id: str = None handle: str = None
[docs] class CreateRequest(Request): id: str = None handle: str = None
[docs] class UpdateRequest(Request): id: str = None handle: str = None
[docs] class IdentifierRequest(Request): id: str = None handle: str = None
[docs] class SortOrder(str, Enum): ASC = "ASC" DESC = "DESC"
[docs] class ListRequest(Request): page_size: Optional[int] page_token: Optional[str] sort_order: Optional[SortOrder] = SortOrder.DESC
[docs] class DeleteRequest(Request): id: str