File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ class TokenStatus(str, Enum):
767
767
REVOKED = "revoked"
768
768
769
769
770
- class TokenScopes (str , Enum ):
770
+ class TokenScope (str , Enum ):
771
771
SCAN = "scan"
772
772
INCIDENTS_READ = "incidents:read"
773
773
INCIDENTS_WRITE = "incidents:write"
@@ -800,7 +800,7 @@ class ApiTokensResponseSchema(BaseSchema):
800
800
revoked_at = fields .AwareDateTime (allow_none = True )
801
801
member_id = fields .Int (allow_none = True )
802
802
creator_id = fields .Int (allow_none = True )
803
- scopes = fields .List (fields .Enum (TokenScopes , by_value = True ), required = False )
803
+ scopes = fields .List (fields .Enum (TokenScope , by_value = True ), required = False )
804
804
805
805
@post_load
806
806
def make_api_tokens_response (
@@ -825,7 +825,7 @@ def __init__(
825
825
revoked_at : Optional [datetime ] = None ,
826
826
member_id : Optional [int ] = None ,
827
827
creator_id : Optional [int ] = None ,
828
- scopes : Optional [List [TokenScopes ]] = None ,
828
+ scopes : Optional [List [TokenScope ]] = None ,
829
829
):
830
830
self .id = id
831
831
self .name = name
You can’t perform that action at this time.
0 commit comments