from typing import Dict, List
from nisystemlink.clients.core._uplink._json_model import JsonModel
from ._column import Column
[docs]class CreateTableRequest(JsonModel):
"""Contains information needed to create a table, including its properties and column definitions."""
columns: List[Column]
"""The list of columns in the table. Exactly one column must have a :class:`.ColumnType` of INDEX."""
name: str | None = None
"""The name to associate with the table. When not specified, a name will be
assigned from the table's ID."""
properties: Dict[str, str] | None = None
"""User-defined properties to associate with the table."""
test_result_id: str | None = None
"""The ID of the test result associated with the table. A value of ``None`` or an empty string
indicates there is no associated test result. Added in version 2 of the
:py:attr:`nisystemlink.clients.dataframe.models.OperationsV1.create_tables` operation. Older
versions of the service will ignore this value."""
workspace: str | None = None
"""The workspace to create the table in. Uses the default workspace when not specified."""