decentriq_platform.media.participant
Functions
canonical_participant_groups
def canonical_participant_groups(
participants: List[ForwardRef('Participant')],
) ‑> List[Dict[str, Any]]
Serialize participants for a new Data Clean Room, canonicalizing every email. Participants read back from a published room keep its spelling.
An address may name only one participant, across all of them, and two spellings of it count as the same address. The enclave refuses either on its own; refusing here names the offending spellings instead of failing the publish round-trip.
Parameters:
participants: The participants of the new Data Clean Room.
Returns:
- The participant groups of the Data Clean Room definition.
Classes
Participant
Participant(
emails: List[str],
permissions: List[decentriq_dcr_compiler._schemas.create_media_dcr.Permission],
role: str,
id: Optional[str] = None,
organization_id: Optional[str] = None,
member_permissions: Optional[Dict[str, List[decentriq_dcr_compiler._schemas.create_media_dcr.Permission]]] = None,
)
A participant in a Data Clean Room.
Initialize a participant.
Parameters:
emails: The emails of the participantpermissions: The permissions of the participantrole: The role of the participantid: The id of the participantorganization_id: The organization id of the participantmember_permissions: Specific permissions for the participant
as_dict
def as_dict(
self,
) ‑> Dict[str, Any]
Return the participant as a dictionary.
Returns:
- The participant as a dictionary
can_export_audience
def can_export_audience(
self,
) ‑> bool
Check if the participant has the export audience permission.
Returns:
- True if the participant has the export audience permission, False otherwise