Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cognite/client/data_classes/data_modeling/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ContainerApply(ContainerCore):
properties (dict[str, ContainerProperty]): We index the property by a local unique identifier.
description (str | None): Textual description of the container
name (str | None): Human readable name for the container.
used_for (Literal['node', 'edge', 'all'] | None): Should this operation apply to nodes, edges or both.
used_for (Literal['node', 'edge', 'all', 'record'] | None): Should this operation apply to nodes, edges, all (nodes and edges) or records.
constraints (dict[str, Constraint] | None): Set of constraints to apply to the container
indexes (dict[str, Index] | None): Set of indexes to apply to the container.
"""
Expand All @@ -94,7 +94,7 @@ def __init__(
properties: dict[str, ContainerProperty],
description: str | None = None,
name: str | None = None,
used_for: Literal["node", "edge", "all"] | None = None,
used_for: Literal["node", "edge", "all", "record"] | None = None,
constraints: dict[str, Constraint] | None = None,
indexes: dict[str, Index] | None = None,
) -> None:
Expand Down Expand Up @@ -134,7 +134,7 @@ class Container(ContainerCore):
created_time (int): The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
description (str | None): Textual description of the container
name (str | None): Human readable name for the container.
used_for (Literal['node', 'edge', 'all']): Should this operation apply to nodes, edges or both.
used_for (Literal['node', 'edge', 'all', 'record']): Should this operation apply to nodes, edges, all (nodes and edges) or records.
constraints (dict[str, Constraint] | None): Set of constraints to apply to the container
indexes (dict[str, Index] | None): Set of indexes to apply to the container.
"""
Expand All @@ -149,7 +149,7 @@ def __init__(
created_time: int,
description: str | None,
name: str | None,
used_for: Literal["node", "edge", "all"],
used_for: Literal["node", "edge", "all", "record"],
constraints: dict[str, Constraint] | None,
indexes: dict[str, Index] | None,
) -> None:
Expand Down