synology_apm_repo.sdk.units.saas.workload_helpers module¶
Small helpers several SaaS workloads share that are not part of the
SaasWorkloadProvider skeleton: group-name and membership lookups over
prefetched maps, and the owning account’s profile. Teams, which is not
built on that skeleton, uses owning_account_user_info too.
- synology_apm_repo.sdk.units.saas.workload_helpers.group_display_name_resolver(names)¶
A
group_display_namecallable forSyntheticGroupedTree: the group’s name fromnames, else the raw group key.
- synology_apm_repo.sdk.units.saas.workload_helpers.membership_detail(groups, row_id, detail_name)¶
{detail_name: <names>}forrow_idin a prefetched{row id: [group/label name, ...]}map (GWS mail labels, GWS contact groups), or{}when it has none.
- async synology_apm_repo.sdk.units.saas.workload_helpers.owning_account_user_info(repo, version)¶
The backed-up account’s profile (
email,name, …): the owning workload’sWorkload.user_info, orNonewhen the workload row is missing or unparseable; a store failure still raises.