assets_guardian.core.domain.models.asset

Classes

Asset(*,Β source,Β external_id,Β asset_type,Β name)

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: object

Normalized 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.