2024-02-24 17:03:55 -08:00
|
|
|
import datetime
|
2024-07-28 15:21:51 -07:00
|
|
|
from typing import Optional
|
2024-02-24 17:03:55 -08:00
|
|
|
|
2024-07-28 15:21:51 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2024-02-24 17:03:55 -08:00
|
|
|
|
2024-09-10 09:17:32 -07:00
|
|
|
from ..models.service_account_token_uuid import ServiceAccountTokenUuid
|
2024-02-24 17:03:55 -08:00
|
|
|
from ..models.uuid import Uuid
|
|
|
|
|
|
|
|
|
|
|
|
class ServiceAccount(BaseModel):
|
|
|
|
"""A service account.
|
|
|
|
|
|
|
|
These are used to authenticate orgs with Bearer authentication.
|
|
|
|
|
2024-09-10 12:52:57 -07:00
|
|
|
This works just like an API token, but it is tied to an organization versus an individual user."""
|
2024-02-24 17:03:55 -08:00
|
|
|
|
|
|
|
created_at: datetime.datetime
|
|
|
|
|
|
|
|
id: Uuid
|
|
|
|
|
|
|
|
is_valid: bool
|
|
|
|
|
|
|
|
label: Optional[str] = None
|
|
|
|
|
|
|
|
org_id: Uuid
|
|
|
|
|
2024-09-10 09:17:32 -07:00
|
|
|
token: ServiceAccountTokenUuid
|
2024-02-24 17:03:55 -08:00
|
|
|
|
|
|
|
updated_at: datetime.datetime
|
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|