* upgrade pydantic Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * update other deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * update other deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * ruff Signed-off-by: Jess Frazelle <github@jessfraz.com> * bump more deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * format Signed-off-by: Jess Frazelle <github@jessfraz.com> * bump Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
32 lines
673 B
Python
32 lines
673 B
Python
import datetime
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.service_account_token_uuid import ServiceAccountTokenUuid
|
|
from ..models.uuid import Uuid
|
|
|
|
|
|
class ServiceAccount(BaseModel):
|
|
"""A service account.
|
|
|
|
These are used to authenticate orgs with Bearer authentication.
|
|
|
|
This works just like an API token, but it is tied to an organization versus an individual user."""
|
|
|
|
created_at: datetime.datetime
|
|
|
|
id: Uuid
|
|
|
|
is_valid: bool
|
|
|
|
label: Optional[str] = None
|
|
|
|
org_id: Uuid
|
|
|
|
token: ServiceAccountTokenUuid
|
|
|
|
updated_at: datetime.datetime
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|