@@ -844,6 +844,9 @@ class SharedLinkCreatePolicy(bb.Union):
844
844
:ivar team_policies.SharedLinkCreatePolicy.team_only: Only members of the
845
845
same team can access all shared links. Login will be required to access
846
846
all shared links.
847
+ :ivar team_policies.SharedLinkCreatePolicy.default_no_one: Only people
848
+ invited can access newly created links. Login will be required to access
849
+ the shared links unless overridden.
847
850
"""
848
851
849
852
_catch_all = 'other'
@@ -854,6 +857,8 @@ class SharedLinkCreatePolicy(bb.Union):
854
857
# Attribute is overwritten below the class definition
855
858
team_only = None
856
859
# Attribute is overwritten below the class definition
860
+ default_no_one = None
861
+ # Attribute is overwritten below the class definition
857
862
other = None
858
863
859
864
def is_default_public (self ):
@@ -880,6 +885,14 @@ def is_team_only(self):
880
885
"""
881
886
return self ._tag == 'team_only'
882
887
888
+ def is_default_no_one (self ):
889
+ """
890
+ Check if the union tag is ``default_no_one``.
891
+
892
+ :rtype: bool
893
+ """
894
+ return self ._tag == 'default_no_one'
895
+
883
896
def is_other (self ):
884
897
"""
885
898
Check if the union tag is ``other``.
@@ -1687,17 +1700,20 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1687
1700
SharedLinkCreatePolicy ._default_public_validator = bv .Void ()
1688
1701
SharedLinkCreatePolicy ._default_team_only_validator = bv .Void ()
1689
1702
SharedLinkCreatePolicy ._team_only_validator = bv .Void ()
1703
+ SharedLinkCreatePolicy ._default_no_one_validator = bv .Void ()
1690
1704
SharedLinkCreatePolicy ._other_validator = bv .Void ()
1691
1705
SharedLinkCreatePolicy ._tagmap = {
1692
1706
'default_public' : SharedLinkCreatePolicy ._default_public_validator ,
1693
1707
'default_team_only' : SharedLinkCreatePolicy ._default_team_only_validator ,
1694
1708
'team_only' : SharedLinkCreatePolicy ._team_only_validator ,
1709
+ 'default_no_one' : SharedLinkCreatePolicy ._default_no_one_validator ,
1695
1710
'other' : SharedLinkCreatePolicy ._other_validator ,
1696
1711
}
1697
1712
1698
1713
SharedLinkCreatePolicy .default_public = SharedLinkCreatePolicy ('default_public' )
1699
1714
SharedLinkCreatePolicy .default_team_only = SharedLinkCreatePolicy ('default_team_only' )
1700
1715
SharedLinkCreatePolicy .team_only = SharedLinkCreatePolicy ('team_only' )
1716
+ SharedLinkCreatePolicy .default_no_one = SharedLinkCreatePolicy ('default_no_one' )
1701
1717
SharedLinkCreatePolicy .other = SharedLinkCreatePolicy ('other' )
1702
1718
1703
1719
ShowcaseDownloadPolicy ._disabled_validator = bv .Void ()
0 commit comments