assets_guardian.plugins.microsoft365.mapper

Classes

Microsoft365Mapper(instance_id)

Port: Data normalizer (mapper).

class assets_guardian.plugins.microsoft365.mapper.Microsoft365Mapper(instance_id: str)[source]

Bases: IMapper

Port: Data normalizer (mapper).

Defines the contract for converting raw data from APIs to the domain’s normalized data models.

to_access(raw_data: Any, asset: Asset | None = None, user_data: dict[str, Any] | None = None, access_type: str = 'role') Access[source]

Converts raw data to an Access object.

to_asset(raw_data: Any, asset_type: str = 'application') Asset[source]

Converts raw data to an Asset object.

to_identity(raw_data: Any, accesses: list[Access] | None = None) Identity[source]

Converts raw data to an Identity object.

property instance_id: str

The specific instance identifier (e.g., β€˜main’, β€˜prod’).

property source_name: str

Unique source name (must match config.yml).