synology_apm_repo.sdk.units.saas.teams_discovery module¶
Teams/Chat service-DB discovery for TeamsChatProvider: finding the
channel/chat container among a version’s indexed objects, and naming each
channel (with its Standard/Private/Shared category) and each chat (from its
topic or its other members).
Unlike other SaaS workloads, the object-name index entry points at an INDEX object listing one message DB per channel/chat plus the container, since their number is only known at backup time (FORMAT-SPEC.md: Teams/Chat container discrimination).
- synology_apm_repo.sdk.units.saas.teams_discovery.CHANNEL_CATEGORY_STANDARD = 'standard'¶
channel_typevalues (Microsoft Graph’smembershipType), each a tree category; an unrecognized or missing value is Standard.
- async synology_apm_repo.sdk.units.saas.teams_discovery.resolve_message_index(dedup_file, object_name_index, object_db)¶
Locate Teams/Chat’s channel/chat INDEX object through
object_db(the index’s ObjectDB, borrowed) and validate its container entry.
- async synology_apm_repo.sdk.units.saas.teams_discovery.channel_info(source)¶
channel_id -> name,channel_id -> categoryandchannel_id -> create_time(epoch seconds) fromsource’schannel_info_table. Doesn’t closesource.- Raises:
DataCorruptError –
channel_info_tableis missing or lackschannel_id.
- async synology_apm_repo.sdk.units.saas.teams_discovery.owning_account_email(repo, version)¶
The backed-up account’s email (
owning_account_user_info), orNone.
- async synology_apm_repo.sdk.units.saas.teams_discovery.chat_labels(source, self_email)¶
Best-effort
chat_id -> label(the topic, else_NO_TITLE_MEETING_LABELfor a meeting, else the other members’ names, else_BOT_CHAT_LABELfor a 1:1 chat) andchat_id -> create_timemaps.chat_info_table’s columns are looked up by name, not assumed. Doesn’t closesource.