class GroupsSelector(bb.Union): (source)
Argument for selecting a list of groups, either by group_ids, or external group IDs. 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 list of [str] team.GroupsSelector.group_ids: List of group IDs. :ivar list of [str] team.GroupsSelector.group_external_ids: List of external IDs of groups.
Class Method | group |
Create an instance of this class set to the ``group_external_ids`` tag with value ``val``. |
Class Method | group |
Create an instance of this class set to the ``group_ids`` tag with value ``val``. |
Method | get |
List of external IDs of groups. |
Method | get |
List of group IDs. |
Method | is |
Check if the union tag is ``group_external_ids``. |
Method | is |
Check if the union tag is ``group_ids``. |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``group_external_ids`` tag with value ``val``. :param list of [str] val: :rtype: GroupsSelector
Create an instance of this class set to the ``group_ids`` tag with value ``val``. :param list of [str] val: :rtype: GroupsSelector
List of external IDs of groups. Only call this if :meth:`is_group_external_ids` is true. :rtype: list of [str]