Skip to content

Схемы, связанные с историей неймспейса(пространства имен)

NamespaceHistoryResponseV1

Bases: BaseModel

Namespace history response.

Source code in horizon/commons/schemas/v1/namespace_history.py
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class NamespaceHistoryResponseV1(BaseModel):
    """Namespace history response."""

    id: int = Field(description="Namespace history item id")
    namespace_id: int = Field(description="Namespace id history is bound to")
    name: str = Field(description="Namespace name")
    description: str = Field(description="Namespace description")
    owned_by: Optional[str] = Field(default=None, description="The namespace owner")
    action: str = Field(description="Action performed on the namespace record")
    changed_at: datetime = Field(description="Timestamp of a change of the namespace data")
    changed_by: Optional[str] = Field(default=None, description="User who changed the namespace data")

    class Config:
        if pydantic_version >= "2":
            from_attributes = True
        else:
            orm_mode = True

NamespaceHistoryPaginateQueryV1

Bases: PaginateQueryV1

Query params for Namespace pagination request.

Source code in horizon/commons/schemas/v1/namespace_history.py
13
14
15
16
class NamespaceHistoryPaginateQueryV1(PaginateQueryV1):
    """Query params for Namespace pagination request."""

    namespace_id: int = Field(description="Namespace id")