Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dropbox/sharing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4596,6 +4596,10 @@ class LinkAudience(bb.Union):
password is required to access the link. Login is not required.
:ivar LinkAudience.members:
Field is deprecated. Link is accessible only by members of the content.
:ivar LinkAudience.public_logged_in_only:
Link is accessible only by signed-in Dropbox users. This audience is
currently read-only through API v2: API v2 write methods reject requests
that set it.
"""

_catch_all = "other"
Expand All @@ -4610,6 +4614,8 @@ class LinkAudience(bb.Union):
# Attribute is overwritten below the class definition
members = None
# Attribute is overwritten below the class definition
public_logged_in_only = None
# Attribute is overwritten below the class definition
other = None

def is_public(self):
Expand Down Expand Up @@ -4652,6 +4658,14 @@ def is_members(self):
"""
return self._tag == "members"

def is_public_logged_in_only(self):
"""
Check if the union tag is ``public_logged_in_only``.

:rtype: bool
"""
return self._tag == "public_logged_in_only"

def is_other(self):
"""
Check if the union tag is ``other``.
Expand Down Expand Up @@ -13747,13 +13761,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
LinkAudience._no_one_validator = bv.Void()
LinkAudience._password_validator = bv.Void()
LinkAudience._members_validator = bv.Void()
LinkAudience._public_logged_in_only_validator = bv.Void()
LinkAudience._other_validator = bv.Void()
LinkAudience._tagmap = {
"public": LinkAudience._public_validator,
"team": LinkAudience._team_validator,
"no_one": LinkAudience._no_one_validator,
"password": LinkAudience._password_validator,
"members": LinkAudience._members_validator,
"public_logged_in_only": LinkAudience._public_logged_in_only_validator,
"other": LinkAudience._other_validator,
}

Expand All @@ -13762,6 +13778,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
LinkAudience.no_one = LinkAudience("no_one")
LinkAudience.password = LinkAudience("password")
LinkAudience.members = LinkAudience("members")
LinkAudience.public_logged_in_only = LinkAudience("public_logged_in_only")
LinkAudience.other = LinkAudience("other")

VisibilityPolicyDisallowedReason._delete_and_recreate_validator = bv.Void()
Expand Down
2 changes: 1 addition & 1 deletion spec
Submodule spec updated 1 files
+3 −0 sharing.stone
Loading