synology_apm.sdk.models.gws_auto_backup_rule module¶
Models for GWS auto-backup rules (User Services and Collaboration Services).
- class synology_apm.sdk.models.gws_auto_backup_rule.GWSAutoBackupRule(uid, namespace, domain, plan_id, mail_group_ids, calendar_group_ids, contact_group_ids, drive_group_ids)¶
Bases:
objectA User Services auto-backup rule for a GWS domain.
User Services rules automatically add Mail, Calendar, Contact, and/or Drive members of specified Google Groups to backup protection under a given plan and server. Each service type is bound to its own group list.
- Variables:
uid (str) – Rule identifier.
namespace (str) – Backup server namespace this rule targets.
domain (str) – Google Workspace domain this rule belongs to.
plan_id (str) – Protection plan ID applied to matched workloads.
mail_group_ids (tuple[str, ...]) – Google Group IDs whose Mail members are auto-protected.
calendar_group_ids (tuple[str, ...]) – Google Group IDs whose Calendar members are auto-protected.
contact_group_ids (tuple[str, ...]) – Google Group IDs whose Contact members are auto-protected.
drive_group_ids (tuple[str, ...]) – Google Group IDs whose Drive members are auto-protected.
- to_dict()¶
Return a JSON-safe dict representation.
Bases:
objectAuto-backup setting for the Shared Drive Collaboration Service (enabled when plan_id is non-empty).
Shared Drives are domain-wide — all shared drives are automatically included when enabled.
- Variables:
True when the Shared Drive collaboration service has an assigned backup plan.
Return a JSON-safe dict representation.
- class synology_apm.sdk.models.gws_auto_backup_rule.GWSAutoBackupRuleListResult(rules, shared_drive_setting, include_unlicensed_accounts, include_archived_accounts)¶
Bases:
objectFull auto-backup configuration for one GWS domain.
- Variables:
rules (tuple[synology_apm.sdk.models.gws_auto_backup_rule.GWSAutoBackupRule, ...]) – User Services rules (one per plan/server combination).
shared_drive_setting (synology_apm.sdk.models.gws_auto_backup_rule.GWSSharedDriveSetting | None) – Auto-backup setting for Shared Drives; None if never configured.
include_unlicensed_accounts (bool) – Whether unlicensed Google Workspace accounts are auto-protected.
include_archived_accounts (bool) – Whether archived Google Workspace accounts are auto-protected.
- rules: tuple[GWSAutoBackupRule, ...]¶
- to_dict()¶
Return a JSON-safe dict representation.