* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
32 lines
657 B
Python
32 lines
657 B
Python
import datetime
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.service_account_uuid import ServiceAccountUuid
|
|
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: ServiceAccountUuid
|
|
|
|
updated_at: datetime.datetime
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|