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

validate_idstrs(idstrs: Iterable[str])[source]

Validate that the given role GUIDs are valid. A ValueError will be raised in any are not.

Parameters:

idstrs – a collection of unique identifiers (GUID) of the roles to be checked