class documentation
class GroupSelector(bb.Union): (source)
Argument for selecting a single group, either by group_id or by external group ID. 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 str team.GroupSelector.group_id: Group ID. :ivar str team.GroupSelector.group_external_id: External ID of the group.
Class Method | group |
Create an instance of this class set to the ``group_external_id`` tag with value ``val``. |
Class Method | group |
Create an instance of this class set to the ``group_id`` tag with value ``val``. |
Method | get |
External ID of the group. |
Method | get |
Group ID. |
Method | is |
Check if the union tag is ``group_external_id``. |
Method | is |
Check if the union tag is ``group_id``. |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``group_external_id`` tag with value ``val``. :param str val: :rtype: GroupSelector
Create an instance of this class set to the ``group_id`` tag with value ``val``. :param str val: :rtype: GroupSelector