Iterate over views
- async AsyncCogniteClient.data_modeling.views.__call__(
- chunk_size: int | None = None,
- limit: int | None = None,
- space: str | None = None,
- include_inherited_properties: bool = True,
- all_versions: bool = False,
- include_global: bool = False,
- used_for: Literal['node', 'edge', 'record', 'all'] | Sequence[Literal['node', 'edge', 'record', 'all']] | None = None,
Iterate over views
Fetches views as they are iterated over, so you keep a limited number of views in memory.
- Parameters:
chunk_size (int | None) – Number of views to return in each chunk. Defaults to yielding one view at a time.
limit (int | None) – Maximum number of views to return. Defaults to returning all items.
space (str | None) – (str | None): The space to query.
include_inherited_properties (bool) – Whether to include properties inherited from views this view implements.
all_versions (bool) – Whether to return all versions. If false, only the newest version is returned, which is determined based on the ‘createdTime’ field.
include_global (bool) – Whether to include global views.
used_for (ViewUsedFor | Sequence[ViewUsedFor] | None) – Only return views used for the given type(s). Passing “record” is an alpha feature, subject to breaking changes without prior notice.
- Yields:
View | ViewList – yields View one by one if chunk_size is not specified, else ViewList objects.