cmem_client.models.project¤
Corporate Memory project models and metadata.
This module defines models for representing Corporate Memory DataIntegration projects, including their metadata such as labels, descriptions, and tags.
Projects are the primary organizational unit in Corporate Memory’s build environment, containing datasets, transformations, and other integration components. The Project model provides validation and serialization for project data exchanged with the DataIntegration API.
Classes:
- FailedTasksReport – The failed tasks report
- Project – A Build (DataIntegration) Project
- ProjectMetaData – Project Meta Data
Functions:
- default_metadata – Get the current UTC datetime
FailedTasksReport¤
Bases: Model
The failed tasks report
Attributes:
- task_id (
str | None) – ID of the task which failed to load. - error_summary (
str | None) – Short summary of what went wrong. - task_label (
str | None) – Human readable name of the task. - task_description (
str | None) – Description of the task. - error_message (
str | None) – Full error message. - project_id (
str | None) – ID of the project holding the task. - stack_trace (
dict[str, Any] | None) – Stack trace of the error, as reported by DataIntegration.
error_message¤
error_summary¤
model_config¤
project_id¤
stack_trace¤
task_description¤
task_id¤
task_label¤
Project¤
Bases: ReadRepositoryItem
A Build (DataIntegration) Project
Attributes:
- name (
str) – ID of the project, unique within the deployment. This is the key of the repository, and it is what the other repositories mean byproject_id. - meta_data (
ProjectMetaData) – Label, description and tags of the project.
Functions:
- get_id – Get the ID of the project
- model_post_init – Set the label to the name if needed
get_id¤
Get the ID of the project
meta_data¤
model_config¤
model_post_init¤
Set the label to the name if needed
name¤
ProjectMetaData¤
Bases: Model
Project Meta Data
Attributes:
- label (
str | None) – Human readable name of the project. DataIntegration refuses an empty one, so a project created without a label gets its ID instead. - description (
str | None) – Description of the project. - tags (
list[str] | None) – Tags attached to the project. - modified (
str | None) – When the project was last modified. - last_modified_by_user (
str | None) – IRI of the account which modified it last.
description¤
label¤
last_modified_by_user¤
model_config¤
modified¤
tags¤
default_metadata¤
Get the current UTC datetime