class documentation

class FedExtraDetails(bb.Union): (source)

View In Hierarchy

More details about the organization or team. 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 OrganizationDetails FedExtraDetails.organization: More details about the organization. :ivar TeamDetails FedExtraDetails.team: More details about the team.

Class Method organization Create an instance of this class set to the ``organization`` tag with value ``val``.
Class Method team Create an instance of this class set to the ``team`` tag with value ``val``.
Method get_organization More details about the organization.
Method get_team More details about the team.
Method is_organization Check if the union tag is ``organization``.
Method is_other Check if the union tag is ``other``.
Method is_team Check if the union tag is ``team``.
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def organization(cls, val): (source)

Create an instance of this class set to the ``organization`` tag with value ``val``. :param OrganizationDetails val: :rtype: FedExtraDetails

@classmethod
def team(cls, val): (source)

Create an instance of this class set to the ``team`` tag with value ``val``. :param TeamDetails val: :rtype: FedExtraDetails

def get_organization(self): (source)

More details about the organization. Only call this if :meth:`is_organization` is true. :rtype: OrganizationDetails

def get_team(self): (source)

More details about the team. Only call this if :meth:`is_team` is true. :rtype: TeamDetails

def is_organization(self): (source)

Check if the union tag is ``organization``. :rtype: bool

def is_other(self): (source)

Check if the union tag is ``other``. :rtype: bool

def is_team(self): (source)

Check if the union tag is ``team``. :rtype: bool

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all: str = (source)

Undocumented