mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-04 06:35:09 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
294d70e8c6
commit
2ccf253af1
1 changed files with 4 additions and 3 deletions
|
|
@ -12,9 +12,10 @@ class CreateApiTokenRequestDto(BaseModel):
|
|||
serialization_alias="name"
|
||||
)
|
||||
expires_in_days: float = Field(serialization_alias="expiresInDays", ge=1)
|
||||
scopes: List[str] = Field(default_factory=lambda: [Scope.WILDCARD])
|
||||
"""API token scopes. Pass :class:`remnawave.enums.Scope` members (or raw strings).
|
||||
Defaults to ``["*"]`` (full access). See ``GET /api/tokens/scopes`` for the catalog."""
|
||||
scopes: List[str] = Field(
|
||||
default_factory=lambda: [Scope.WILDCARD],
|
||||
description='API token scopes. Pass :class:`remnawave.enums.Scope` members (or raw strings). Defaults to ["*"] (full access). See GET /api/tokens/scopes for the catalog.',
|
||||
)
|
||||
|
||||
def __init__(self, **data):
|
||||
# Backward compatibility: `token_name` was renamed to `name` in v2.8.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue