foundry_dev_tools.helpers.multipass.principal module

foundry_dev_tools.helpers.multipass.principal module#

Group helper class.

class foundry_dev_tools.helpers.multipass.principal.Principal[source]#

Bases: ABC

Not intended to be initialized directly. Use Principal.from_id() instead.

id: api_types.PrincipalId#
attributes: dict[str, list[str]]#
__init__(*args, **kwargs)[source]#

Not intended to be initialized directly. Use Principal.from_id() instead.

Return type:

None

classmethod from_id(context, principal_id)[source]#

Returns group from id.

Parameters:
  • context (FoundryContext) – the foundry context for the group

  • principal_id (api_types.PrincipalId) – the id of the principal on foundry

Return type:

Self