anvil_consortium_manager.adapters.mixins module
- class anvil_consortium_manager.adapters.mixins.GroupGroupMembershipAdapterMixin
Bases:
objectMixin to add membership functionality to ManagedGroups.
Subclasses must define membership_roles as a list of GroupGroupMembershipRole instances.
Attributes:
- after_anvil_create(group)
Add specified group membership roles after group is created.
- get_membership_roles()
Validate and return the permissions to grant.
- membership_roles: List[GroupGroupMembershipRole] = None
- class anvil_consortium_manager.adapters.mixins.GroupGroupMembershipRole(child_group_name: str, role: anvil_consortium_manager.models.GroupGroupMembership)
Bases:
object- child_group_name: str
- role: GroupGroupMembership
- class anvil_consortium_manager.adapters.mixins.WorkspaceSharingAdapterMixin
Bases:
objectMixin to add sharing functionality to workspace adapters.
Subclasses must define share_permissions as a list of WorkspaceSharingPermission
List of permissions to grant to groups.
- Type:
- Details:
After a workspace is created or imported, it will be shared with the specified groups with the defined access levels and compute permissions.
- after_anvil_create(workspace)
Share the workspace with specified groups after creation.
- after_anvil_import(workspace)
Share the workspace with specified groups after import.
Validate and return the permissions to grant.
- share_permissions: List[WorkspaceSharingPermission] = None
- class anvil_consortium_manager.adapters.mixins.WorkspaceSharingPermission(group_name: str, access: anvil_consortium_manager.models.WorkspaceGroupSharing, can_compute: bool)
Bases:
object- access: WorkspaceGroupSharing
- can_compute: bool
- group_name: str