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 sharing.AddMemberSelectorError.automatic_group: Automatically created groups can only be
| 777 | AddMember_validator = bv.Struct(AddMember) |
| 778 | |
| 779 | class AddMemberSelectorError(bb.Union): |
| 780 | """ |
| 781 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 782 | return true. To get the associated value of a tag (if one exists), use the |
| 783 | corresponding ``get_*`` method. |
| 784 | |
| 785 | :ivar sharing.AddMemberSelectorError.automatic_group: Automatically created |
| 786 | groups can only be added to team folders. |
| 787 | :ivar str sharing.AddMemberSelectorError.invalid_dropbox_id: The value is |
| 788 | the ID that could not be identified. |
| 789 | :ivar str sharing.AddMemberSelectorError.invalid_email: The value is the |
| 790 | e-email address that is malformed. |
| 791 | :ivar str sharing.AddMemberSelectorError.unverified_dropbox_id: The value is |
| 792 | the ID of the Dropbox user with an unverified email address. Invite |
| 793 | unverified users by email address instead of by their Dropbox ID. |
| 794 | :ivar sharing.AddMemberSelectorError.group_deleted: At least one of the |
| 795 | specified groups in ``AddFolderMemberArg.members`` is deleted. |
| 796 | :ivar sharing.AddMemberSelectorError.group_not_on_team: Sharing to a group |
| 797 | that is not on the current user's team. |
| 798 | """ |
| 799 | |
| 800 | _catch_all = 'other' |
| 801 | # Attribute is overwritten below the class definition |
| 802 | automatic_group = None |
| 803 | # Attribute is overwritten below the class definition |
| 804 | group_deleted = None |
| 805 | # Attribute is overwritten below the class definition |
| 806 | group_not_on_team = None |
| 807 | # Attribute is overwritten below the class definition |
| 808 | other = None |
| 809 | |
| 810 | @classmethod |
| 811 | def invalid_dropbox_id(cls, val): |
| 812 | """ |
| 813 | Create an instance of this class set to the ``invalid_dropbox_id`` tag |
| 814 | with value ``val``. |
| 815 | |
| 816 | :param str val: |
| 817 | :rtype: AddMemberSelectorError |
| 818 | """ |
| 819 | return cls('invalid_dropbox_id', val) |
| 820 | |
| 821 | @classmethod |
| 822 | def invalid_email(cls, val): |
| 823 | """ |
| 824 | Create an instance of this class set to the ``invalid_email`` tag with |
| 825 | value ``val``. |
| 826 | |
| 827 | :param str val: |
| 828 | :rtype: AddMemberSelectorError |
| 829 | """ |
| 830 | return cls('invalid_email', val) |
| 831 | |
| 832 | @classmethod |
| 833 | def unverified_dropbox_id(cls, val): |
| 834 | """ |
| 835 | Create an instance of this class set to the ``unverified_dropbox_id`` |
| 836 | tag with value ``val``. |