RoleCache¶
- class pyatlan.cache.role_cache.RoleCache(client: AtlanClient)[source]¶
Lazily-loaded cache for translating Atlan-internal roles into their various IDs.
- get_id_for_name(name: str) str | None[source]¶
Translate the provided human-readable role name to its GUID.
- Parameters:
name – human-readable name of the role
- Returns:
unique identifier (GUID) of the role
- get_name_for_id(idstr: str) str | None[source]¶
Translate the provided role GUID to the human-readable role name.
- Parameters:
idstr – unique identifier (GUID) of the role
- Returns:
human-readable name of the role