class documentation

class TeamMergeRequestExpiredExtraDetails(bb.Union): (source)

View In Hierarchy

Team merge request expiration details 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 PrimaryTeamRequestExpiredDetails TeamMergeRequestExpiredExtraDetails.primary_team: Team merge request canceled details shown to the primary team. :ivar SecondaryTeamRequestExpiredDetails TeamMergeRequestExpiredExtraDetails.secondary_team: Team merge request canceled details shown to the secondary team.

Class Method primary_team Create an instance of this class set to the ``primary_team`` tag with value ``val``.
Class Method secondary_team Create an instance of this class set to the ``secondary_team`` tag with value ``val``.
Method get_primary_team Team merge request canceled details shown to the primary team.
Method get_secondary_team Team merge request canceled details shown to the secondary team.
Method is_other Check if the union tag is ``other``.
Method is_primary_team Check if the union tag is ``primary_team``.
Method is_secondary_team Check if the union tag is ``secondary_team``.
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def primary_team(cls, val): (source)

Create an instance of this class set to the ``primary_team`` tag with value ``val``. :param PrimaryTeamRequestExpiredDetails val: :rtype: TeamMergeRequestExpiredExtraDetails

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

Create an instance of this class set to the ``secondary_team`` tag with value ``val``. :param SecondaryTeamRequestExpiredDetails val: :rtype: TeamMergeRequestExpiredExtraDetails

def get_primary_team(self): (source)

Team merge request canceled details shown to the primary team. Only call this if :meth:`is_primary_team` is true. :rtype: PrimaryTeamRequestExpiredDetails

def get_secondary_team(self): (source)

Team merge request canceled details shown to the secondary team. Only call this if :meth:`is_secondary_team` is true. :rtype: SecondaryTeamRequestExpiredDetails

def is_other(self): (source)

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

def is_primary_team(self): (source)

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

def is_secondary_team(self): (source)

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

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented