MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / ResolvedVisibility

Class ResolvedVisibility

dropbox/sharing.py:999–1078  ·  view source on GitHub ↗

The actual access permissions values of shared links after taking into account user preferences and the team and shared folder settings. Check the :class:`RequestedVisibility` for more info on the possible visibility values that can be set by the shared link's owner. This class

Source from the content-addressed store, hash-verified

997RequestedVisibility_validator = bv.Union(RequestedVisibility)
998
999class ResolvedVisibility(RequestedVisibility):
1000 """
1001 The actual access permissions values of shared links after taking into
1002 account user preferences and the team and shared folder settings. Check the
1003 :class:`RequestedVisibility` for more info on the possible visibility values
1004 that can be set by the shared link's owner.
1005
1006 This class acts as a tagged union. Only one of the ``is_*`` methods will
1007 return true. To get the associated value of a tag (if one exists), use the
1008 corresponding ``get_*`` method.
1009
1010 :ivar sharing.ResolvedVisibility.team_and_password: Only members of the same
1011 team who have the link-specific password can access the link. Login is
1012 required.
1013 :ivar sharing.ResolvedVisibility.shared_folder_only: Only members of the
1014 shared folder containing the linked file can access the link. Login is
1015 required.
1016 :ivar sharing.ResolvedVisibility.no_one: The link merely points the user to
1017 the content, and does not grant any additional rights. Existing members
1018 of the content who use this link can only access the content with their
1019 pre-existing access rights. Either on the file directly, or inherited
1020 from a parent folder.
1021 :ivar sharing.ResolvedVisibility.only_you: Only the current user can view
1022 this link.
1023 """
1024
1025 _catch_all = 'other'
1026 # Attribute is overwritten below the class definition
1027 team_and_password = None
1028 # Attribute is overwritten below the class definition
1029 shared_folder_only = None
1030 # Attribute is overwritten below the class definition
1031 no_one = None
1032 # Attribute is overwritten below the class definition
1033 only_you = None
1034 # Attribute is overwritten below the class definition
1035 other = None
1036
1037 def is_team_and_password(self):
1038 """
1039 Check if the union tag is ``team_and_password``.
1040
1041 :rtype: bool
1042 """
1043 return self._tag == 'team_and_password'
1044
1045 def is_shared_folder_only(self):
1046 """
1047 Check if the union tag is ``shared_folder_only``.
1048
1049 :rtype: bool
1050 """
1051 return self._tag == 'shared_folder_only'
1052
1053 def is_no_one(self):
1054 """
1055 Check if the union tag is ``no_one``.
1056

Callers 1

sharing.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected