MCPcopy Index your code
hub / github.com/dropbox/dropbox-sdk-python / AdminTier

Class AdminTier

dropbox/team.py:581–642  ·  view source on GitHub ↗

Describes which team-related admin permissions a user has. 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 team.AdminTier.team_admin: User

Source from the content-addressed store, hash-verified

579AddSecondaryEmailsResult_validator = bv.Struct(AddSecondaryEmailsResult)
580
581class AdminTier(bb.Union):
582 """
583 Describes which team-related admin permissions a user has.
584
585 This class acts as a tagged union. Only one of the ``is_*`` methods will
586 return true. To get the associated value of a tag (if one exists), use the
587 corresponding ``get_*`` method.
588
589 :ivar team.AdminTier.team_admin: User is an administrator of the team - has
590 all permissions.
591 :ivar team.AdminTier.user_management_admin: User can do most user
592 provisioning, de-provisioning and management.
593 :ivar team.AdminTier.support_admin: User can do a limited set of common
594 support tasks for existing users. Note: Dropbox is adding new types of
595 admin roles; these may display as support_admin.
596 :ivar team.AdminTier.member_only: User is not an admin of the team.
597 """
598
599 _catch_all = None
600 # Attribute is overwritten below the class definition
601 team_admin = None
602 # Attribute is overwritten below the class definition
603 user_management_admin = None
604 # Attribute is overwritten below the class definition
605 support_admin = None
606 # Attribute is overwritten below the class definition
607 member_only = None
608
609 def is_team_admin(self):
610 """
611 Check if the union tag is ``team_admin``.
612
613 :rtype: bool
614 """
615 return self._tag == 'team_admin'
616
617 def is_user_management_admin(self):
618 """
619 Check if the union tag is ``user_management_admin``.
620
621 :rtype: bool
622 """
623 return self._tag == 'user_management_admin'
624
625 def is_support_admin(self):
626 """
627 Check if the union tag is ``support_admin``.
628
629 :rtype: bool
630 """
631 return self._tag == 'support_admin'
632
633 def is_member_only(self):
634 """
635 Check if the union tag is ``member_only``.
636
637 :rtype: bool
638 """

Callers 1

team.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected