Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
horizon 1.1.3 documentation
Logo

Horizon

  • Data.Horizon

High-level design

  • Entities
  • Role Permissions

Backend

  • Install & run backend
  • Architecture
  • Configuration
    • Database settings
    • Logging settings
    • Setup monitoring
    • CORS settings
    • Serving static files
    • OpenAPI settings
    • Enabling debug
  • Auth Providers
    • Dummy Auth provider
    • LDAP Auth provider
    • LDAP Cached Auth provider
    • Custom Auth provider
  • OpenAPI specification
  • Scripts
    • Manage Admins

Client

  • Install client
  • Sync client
  • Auth
  • Schemas
    • Namespace-related schemas
    • Namespace history-related schemas
    • HWM-related schemas
    • HWM history-related schemas
    • Permissions-related schemas
    • User-related schemas
    • Ping-related schemas
    • Pagination-related schemas
  • Exceptions

Development

  • Changelog
    • 1.1.3 (2025-10-29)
    • 1.1.2 (2025-04-07)
    • 1.1.1 (2025-01-28)
    • 1.0.2 (2024-11-21)
    • 1.0.1 (2024-06-27)
    • 1.0.0 (2024-06-10)
    • 0.2.1 (2024-05-29)
    • 0.2.0 (2024-05-15)
    • 0.1.3 (2024-05-02)
    • 0.1.2 (2024-04-02)
    • 0.1.1 (2024-03-27)
    • 0.0.13 (2024-02-13)
    • 0.0.12 (2024-01-24)
    • 0.0.11 (2024-01-22)
    • 0.0.10 (2024-01-22)
    • 0.0.9 (2024-01-19)
    • 0.0.8 (2024-01-18)
  • Contributing Guide
  • Security
Back to top
View this page

HWM-related schemas¶

pydantic model horizon.commons.schemas.v1.hwm.HWMResponseV1¶

HWM response.

field id: int [Required]¶

HWM id

field namespace_id: int [Required]¶

Namespace id HWM is bound to

field name: str [Required]¶

HWM name, unique in the namespace

field description: str [Required]¶

HWM description

field type: str [Required]¶

HWM type, any non-empty string

field value: Any [Required]¶

HWM value, any JSON serializable value

field entity: str | None = None¶

Name of entity associated with the HWM. Can be any string

field expression: str | None = None¶

Expression used to calculate HWM value. Can be any string

field changed_at: datetime [Required]¶

Timestamp of last change of the HWM data

field changed_by: str | None = None¶

Latest user who changed the HWM data

class Config¶
pydantic model horizon.commons.schemas.v1.hwm.HWMListResponseV1¶
field hwms: List[HWMResponseV1] [Required]¶
pydantic model horizon.commons.schemas.v1.hwm.HWMPaginateQueryV1¶

Query params for HWM pagination request.

field namespace_id: int [Required]¶
field name: str | None = None¶
Constraints:
  • min_length = 1

  • max_length = 2048

field page: int = 1¶

Page number

Constraints:
  • gt = 0

field page_size: int = 20¶

Number of items per page

Constraints:
  • gt = 0

  • le = 50

pydantic model horizon.commons.schemas.v1.hwm.HWMCreateRequestV1¶

Request body for HWM create request.

field namespace_id: int [Required]¶
field name: str [Required]¶
Constraints:
  • min_length = 1

  • max_length = 2048

field description: str = ''¶
field type: str [Required]¶
Constraints:
  • min_length = 1

  • max_length = 64

field value: Any [Required]¶
field entity: str | None = None¶
field expression: str | None = None¶
pydantic model horizon.commons.schemas.v1.hwm.HWMUpdateRequestV1¶

Request body for HWM update request.

If field value is not set, it will not be updated.

field name: str = Unset()¶
Constraints:
  • min_length = 1

  • max_length = 2048

field description: str = Unset()¶
field type: str = Unset()¶
Constraints:
  • min_length = 1

  • max_length = 64

field value: Any = Unset()¶
field entity: str | None = Unset()¶
field expression: str | None = Unset()¶
class Config¶
pydantic model horizon.commons.schemas.v1.hwm.HWMBulkCopyRequestV1¶

Schema for request body of HWM copy operation.

field source_namespace_id: int [Required]¶

Source namespace ID from which HWMs are copied.

field target_namespace_id: int [Required]¶

Target namespace ID to which HWMs are copied.

field hwm_ids: List[int] [Required]¶

List of HWM IDs to be copied.

field with_history: bool = False¶

Whether to copy HWM history.

pydantic model horizon.commons.schemas.v1.hwm.HWMBulkDeleteRequestV1¶

Schema for request body of bulk delete HWM operation.

field namespace_id: int [Required]¶
field hwm_ids: List[int] [Required]¶
Next
HWM history-related schemas
Previous
Namespace history-related schemas
Copyright © 2023-2025 MTS PJSC
Made with Sphinx and @pradyunsg's Furo
Last updated on Mar 28, 2025
On this page
  • HWM-related schemas
    • HWMResponseV1
      • HWMResponseV1.id
      • HWMResponseV1.namespace_id
      • HWMResponseV1.name
      • HWMResponseV1.description
      • HWMResponseV1.type
      • HWMResponseV1.value
      • HWMResponseV1.entity
      • HWMResponseV1.expression
      • HWMResponseV1.changed_at
      • HWMResponseV1.changed_by
      • HWMResponseV1.Config
    • HWMListResponseV1
      • HWMListResponseV1.hwms
    • HWMPaginateQueryV1
      • HWMPaginateQueryV1.namespace_id
      • HWMPaginateQueryV1.name
      • HWMPaginateQueryV1.page
      • HWMPaginateQueryV1.page_size
    • HWMCreateRequestV1
      • HWMCreateRequestV1.namespace_id
      • HWMCreateRequestV1.name
      • HWMCreateRequestV1.description
      • HWMCreateRequestV1.type
      • HWMCreateRequestV1.value
      • HWMCreateRequestV1.entity
      • HWMCreateRequestV1.expression
    • HWMUpdateRequestV1
      • HWMUpdateRequestV1.name
      • HWMUpdateRequestV1.description
      • HWMUpdateRequestV1.type
      • HWMUpdateRequestV1.value
      • HWMUpdateRequestV1.entity
      • HWMUpdateRequestV1.expression
      • HWMUpdateRequestV1.Config
    • HWMBulkCopyRequestV1
      • HWMBulkCopyRequestV1.source_namespace_id
      • HWMBulkCopyRequestV1.target_namespace_id
      • HWMBulkCopyRequestV1.hwm_ids
      • HWMBulkCopyRequestV1.with_history
    • HWMBulkDeleteRequestV1
      • HWMBulkDeleteRequestV1.namespace_id
      • HWMBulkDeleteRequestV1.hwm_ids