| 1 |
|
| 2 |
|
| 3 |
import typing |
| 4 |
|
| 5 |
import pydantic |
| 6 |
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel |
| 7 |
from .token_quota_client_credentials import TokenQuotaClientCredentials |
| 8 |
|
| 9 |
|
| 10 |
class TokenQuota(UniversalBaseModel): |
| 11 |
client_credentials: TokenQuotaClientCredentials |
| 12 |
|
| 13 |
if IS_PYDANTIC_V2: |
| 14 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 15 |
else: |
| 16 |
|
| 17 |
class Config: |
| 18 |
frozen = True |
| 19 |
smart_union = True |
| 20 |
extra = pydantic.Extra.allow |