@@ -22,6 +22,7 @@ class AuthError(bb.Union):
2222 is no longer on the team.
2323 :ivar invalid_select_admin: The user specified in 'Dropbox-API-Select-Admin'
2424 is not a Dropbox Business team admin.
25+ :ivar user_suspended: The user has been suspended.
2526 """
2627
2728 _catch_all = 'other'
@@ -32,6 +33,8 @@ class AuthError(bb.Union):
3233 # Attribute is overwritten below the class definition
3334 invalid_select_admin = None
3435 # Attribute is overwritten below the class definition
36+ user_suspended = None
37+ # Attribute is overwritten below the class definition
3538 other = None
3639
3740 def is_invalid_access_token (self ):
@@ -58,6 +61,14 @@ def is_invalid_select_admin(self):
5861 """
5962 return self ._tag == 'invalid_select_admin'
6063
64+ def is_user_suspended (self ):
65+ """
66+ Check if the union tag is ``user_suspended``.
67+
68+ :rtype: bool
69+ """
70+ return self ._tag == 'user_suspended'
71+
6172 def is_other (self ):
6273 """
6374 Check if the union tag is ``other``.
@@ -208,17 +219,20 @@ def __repr__(self):
208219AuthError ._invalid_access_token_validator = bv .Void ()
209220AuthError ._invalid_select_user_validator = bv .Void ()
210221AuthError ._invalid_select_admin_validator = bv .Void ()
222+ AuthError ._user_suspended_validator = bv .Void ()
211223AuthError ._other_validator = bv .Void ()
212224AuthError ._tagmap = {
213225 'invalid_access_token' : AuthError ._invalid_access_token_validator ,
214226 'invalid_select_user' : AuthError ._invalid_select_user_validator ,
215227 'invalid_select_admin' : AuthError ._invalid_select_admin_validator ,
228+ 'user_suspended' : AuthError ._user_suspended_validator ,
216229 'other' : AuthError ._other_validator ,
217230}
218231
219232AuthError .invalid_access_token = AuthError ('invalid_access_token' )
220233AuthError .invalid_select_user = AuthError ('invalid_select_user' )
221234AuthError .invalid_select_admin = AuthError ('invalid_select_admin' )
235+ AuthError .user_suspended = AuthError ('user_suspended' )
222236AuthError .other = AuthError ('other' )
223237
224238RateLimitError ._reason_validator = RateLimitReason_validator
0 commit comments