class FileMemberActionError(bb.Union): (source)
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.FileMemberActionError.invalid_member: Specified member was not found. :ivar sharing.FileMemberActionError.no_permission: User does not have permission to perform this action on this member. :ivar SharingFileAccessError FileMemberActionError.access_error: Specified file was invalid or user does not have access. :ivar MemberAccessLevelResult FileMemberActionError.no_explicit_access: The action cannot be completed because the target member does not have explicit access to the file. The return value is the access that the member has to the file from a parent folder.
Class Method | access |
Create an instance of this class set to the ``access_error`` tag with value ``val``. |
Class Method | no |
Create an instance of this class set to the ``no_explicit_access`` tag with value ``val``. |
Method | get |
Specified file was invalid or user does not have access. |
Method | get |
The action cannot be completed because the target member does not have explicit access to the file. The return value is the access that the member has to the file from a parent folder. |
Method | is |
Check if the union tag is ``access_error``. |
Method | is |
Check if the union tag is ``invalid_member``. |
Method | is |
Check if the union tag is ``no_explicit_access``. |
Method | is |
Check if the union tag is ``no_permission``. |
Method | is |
Check if the union tag is ``other``. |
Class Variable | invalid |
Undocumented |
Class Variable | no |
Undocumented |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``access_error`` tag with value ``val``. :param SharingFileAccessError val: :rtype: FileMemberActionError
Create an instance of this class set to the ``no_explicit_access`` tag with value ``val``. :param MemberAccessLevelResult val: :rtype: FileMemberActionError
Specified file was invalid or user does not have access. Only call this if :meth:`is_access_error` is true. :rtype: SharingFileAccessError
The action cannot be completed because the target member does not have explicit access to the file. The return value is the access that the member has to the file from a parent folder. Only call this if :meth:`is_no_explicit_access` is true. :rtype: MemberAccessLevelResult