@@ -844,6 +844,9 @@ class SharedLinkCreatePolicy(bb.Union):
844844 :ivar team_policies.SharedLinkCreatePolicy.team_only: Only members of the
845845 same team can access all shared links. Login will be required to access
846846 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.
847850 """
848851
849852 _catch_all = 'other'
@@ -854,6 +857,8 @@ class SharedLinkCreatePolicy(bb.Union):
854857 # Attribute is overwritten below the class definition
855858 team_only = None
856859 # Attribute is overwritten below the class definition
860+ default_no_one = None
861+ # Attribute is overwritten below the class definition
857862 other = None
858863
859864 def is_default_public (self ):
@@ -880,6 +885,14 @@ def is_team_only(self):
880885 """
881886 return self ._tag == 'team_only'
882887
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+
883896 def is_other (self ):
884897 """
885898 Check if the union tag is ``other``.
@@ -1687,17 +1700,20 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
16871700SharedLinkCreatePolicy ._default_public_validator = bv .Void ()
16881701SharedLinkCreatePolicy ._default_team_only_validator = bv .Void ()
16891702SharedLinkCreatePolicy ._team_only_validator = bv .Void ()
1703+ SharedLinkCreatePolicy ._default_no_one_validator = bv .Void ()
16901704SharedLinkCreatePolicy ._other_validator = bv .Void ()
16911705SharedLinkCreatePolicy ._tagmap = {
16921706 'default_public' : SharedLinkCreatePolicy ._default_public_validator ,
16931707 'default_team_only' : SharedLinkCreatePolicy ._default_team_only_validator ,
16941708 'team_only' : SharedLinkCreatePolicy ._team_only_validator ,
1709+ 'default_no_one' : SharedLinkCreatePolicy ._default_no_one_validator ,
16951710 'other' : SharedLinkCreatePolicy ._other_validator ,
16961711}
16971712
16981713SharedLinkCreatePolicy .default_public = SharedLinkCreatePolicy ('default_public' )
16991714SharedLinkCreatePolicy .default_team_only = SharedLinkCreatePolicy ('default_team_only' )
17001715SharedLinkCreatePolicy .team_only = SharedLinkCreatePolicy ('team_only' )
1716+ SharedLinkCreatePolicy .default_no_one = SharedLinkCreatePolicy ('default_no_one' )
17011717SharedLinkCreatePolicy .other = SharedLinkCreatePolicy ('other' )
17021718
17031719ShowcaseDownloadPolicy ._disabled_validator = bv .Void ()
0 commit comments