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_name callable for SyntheticGroupedTree: the group’s name from names, else the raw group key.

synology_apm_repo.sdk.units.saas.workload_helpers.membership_detail(groups, row_id, detail_name)

{detail_name: <names>} for row_id in 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’s Workload.user_info, or None when the workload row is missing or unparseable; a store failure still raises.