class documentation

class MembersSetProfilePhotoError(MemberSelectorError): (source)

View In Hierarchy

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.MembersSetProfilePhotoError.set_profile_disallowed: Modifying deleted users is not allowed.

Class Method photo_error Create an instance of this class set to the ``photo_error`` tag with value ``val``.
Method get_photo_error Only call this if :meth:`is_photo_error` is true.
Method is_other Check if the union tag is ``other``.
Method is_photo_error Check if the union tag is ``photo_error``.
Method is_set_profile_disallowed Check if the union tag is ``set_profile_disallowed``.
Class Variable other Undocumented
Class Variable set_profile_disallowed Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented

Inherited from MemberSelectorError:

Method is_user_not_in_team Check if the union tag is ``user_not_in_team``.
Class Variable user_not_in_team Undocumented

Inherited from UserSelectorError (via MemberSelectorError):

Method is_user_not_found Check if the union tag is ``user_not_found``.
Class Variable user_not_found Undocumented
@classmethod
def photo_error(cls, val): (source)

Create an instance of this class set to the ``photo_error`` tag with value ``val``. :param account.SetProfilePhotoError val: :rtype: MembersSetProfilePhotoError

def get_photo_error(self): (source)

Only call this if :meth:`is_photo_error` is true. :rtype: account.SetProfilePhotoError

def is_other(self): (source)

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

def is_photo_error(self): (source)

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

def is_set_profile_disallowed(self): (source)

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

Undocumented

set_profile_disallowed = (source)

Undocumented

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