assets_guardian.core.domain.models.assetο
Classes
|
Normalized representation of an asset (resource) from an external source. |
- class assets_guardian.core.domain.models.asset.Asset(*, source: str, external_id: str, asset_type: str, name: str, description: str | None = None, state: str | None = None, created_at: datetime | None = None, created_by: str | None = None, comments: str | None = None, metadata: dict[str, Any] | None = None)[source]ο
Bases:
objectNormalized representation of an asset (resource) from an external source.
- Variables:
source (str) β Source name (e.g., gitlab, microsoft365, dolibarr, etc.).
external_id (str) β Unique identifier of the asset within the source.
asset_type (str) β Type of asset (e.g., repository, group, mailbox, etc.).
name (str) β Name of the asset in the source.
description (str | None) β Description of the asset in the source.
state (str | None) β State of the asset in the source (e.g., active, archived, etc.).
created_at (datetime.datetime | None) β Creation date of the asset in the source.
created_by (str | None) β Identifier of the assetβs creator in the source.
comments (str | None) β Internal comments or notes for Assets Guardian.
metadata (dict[str, Any] | None) β Custom arbitrary metadata dict.