@@ -22,6 +22,7 @@ class AuthError(bb.Union):
22
22
is no longer on the team.
23
23
:ivar invalid_select_admin: The user specified in 'Dropbox-API-Select-Admin'
24
24
is not a Dropbox Business team admin.
25
+ :ivar user_suspended: The user has been suspended.
25
26
"""
26
27
27
28
_catch_all = 'other'
@@ -32,6 +33,8 @@ class AuthError(bb.Union):
32
33
# Attribute is overwritten below the class definition
33
34
invalid_select_admin = None
34
35
# Attribute is overwritten below the class definition
36
+ user_suspended = None
37
+ # Attribute is overwritten below the class definition
35
38
other = None
36
39
37
40
def is_invalid_access_token (self ):
@@ -58,6 +61,14 @@ def is_invalid_select_admin(self):
58
61
"""
59
62
return self ._tag == 'invalid_select_admin'
60
63
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
+
61
72
def is_other (self ):
62
73
"""
63
74
Check if the union tag is ``other``.
@@ -208,17 +219,20 @@ def __repr__(self):
208
219
AuthError ._invalid_access_token_validator = bv .Void ()
209
220
AuthError ._invalid_select_user_validator = bv .Void ()
210
221
AuthError ._invalid_select_admin_validator = bv .Void ()
222
+ AuthError ._user_suspended_validator = bv .Void ()
211
223
AuthError ._other_validator = bv .Void ()
212
224
AuthError ._tagmap = {
213
225
'invalid_access_token' : AuthError ._invalid_access_token_validator ,
214
226
'invalid_select_user' : AuthError ._invalid_select_user_validator ,
215
227
'invalid_select_admin' : AuthError ._invalid_select_admin_validator ,
228
+ 'user_suspended' : AuthError ._user_suspended_validator ,
216
229
'other' : AuthError ._other_validator ,
217
230
}
218
231
219
232
AuthError .invalid_access_token = AuthError ('invalid_access_token' )
220
233
AuthError .invalid_select_user = AuthError ('invalid_select_user' )
221
234
AuthError .invalid_select_admin = AuthError ('invalid_select_admin' )
235
+ AuthError .user_suspended = AuthError ('user_suspended' )
222
236
AuthError .other = AuthError ('other' )
223
237
224
238
RateLimitError ._reason_validator = RateLimitReason_validator
0 commit comments