class SpaceAllocation(bb.Union): (source)
Space is allocated differently based on the type of account. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar IndividualSpaceAllocation SpaceAllocation.individual: The user's space allocation applies only to their individual account. :ivar TeamSpaceAllocation SpaceAllocation.team: The user shares space with other members of their team.
Class Method | individual |
Create an instance of this class set to the ``individual`` tag with value ``val``. |
Class Method | team |
Create an instance of this class set to the ``team`` tag with value ``val``. |
Method | get |
The user's space allocation applies only to their individual account. |
Method | get |
The user shares space with other members of their team. |
Method | is |
Check if the union tag is ``individual``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``team``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``individual`` tag with value ``val``. :param IndividualSpaceAllocation val: :rtype: SpaceAllocation
Create an instance of this class set to the ``team`` tag with value ``val``. :param TeamSpaceAllocation val: :rtype: SpaceAllocation
The user's space allocation applies only to their individual account. Only call this if :meth:`is_individual` is true. :rtype: IndividualSpaceAllocation
The user shares space with other members of their team. Only call this if :meth:`is_team` is true. :rtype: TeamSpaceAllocation