Iterate over transformations

async AsyncCogniteClient.transformations.__call__(
chunk_size: int | None = None,
include_public: bool = True,
name_regex: str | None = None,
query_regex: str | None = None,
destination_type: str | None = None,
conflict_mode: Literal['abort', 'delete', 'update', 'upsert'] | None = None,
cdf_project_name: str | None = None,
has_blocked_error: bool | None = None,
created_time: dict[str, Any] | TimestampRange | None = None,
last_updated_time: dict[str, Any] | TimestampRange | None = None,
data_set_ids: int | list[int] | None = None,
data_set_external_ids: str | list[str] | None = None,
tags: TagsFilter | None = None,
limit: int | None = None,
) AsyncIterator[Transformation] | AsyncIterator[TransformationList]

Iterate over transformations

Parameters:
  • chunk_size (int | None) – Number of transformations to return in each chunk. Defaults to yielding one transformation a time.

  • include_public (bool) – Whether public transformations should be included in the results. (default true).

  • name_regex (str | None) – Regex expression to match the transformation name

  • query_regex (str | None) – Regex expression to match the transformation query

  • destination_type (str | None) – Transformation destination resource name to filter by.

  • conflict_mode (Literal['abort', 'delete', 'update', 'upsert'] | None) – Filters by a selected transformation action type: abort/create, upsert, update, delete

  • cdf_project_name (str | None) – Project name to filter by configured source and destination project

  • has_blocked_error (bool | None) – Whether only the blocked transformations should be included in the results.

  • created_time (dict[str, Any] | TimestampRange | None) – Range between two timestamps

  • last_updated_time (dict[str, Any] | TimestampRange | None) – Range between two timestamps

  • data_set_ids (int | list[int] | None) – Return only transformations in the specified data sets with these id(s).

  • data_set_external_ids (str | list[str] | None) – Return only transformations in the specified data sets with these external id(s).

  • tags (TagsFilter | None) – Return only the resource matching the specified tags constraints. It only supports ContainsAny as of now.

  • limit (int | None) – Limits the number of results to be returned. Defaults to yielding all transformations.

Yields:

Transformation | TransformationList – Yields transformations in chunks if chunk_size is specified, otherwise one transformation at a time.