Files
kittycad.py/kittycad/models/service_account.py
zoo-github-actions-auth[bot] 64fc99943e Update api spec (#263)
* YOYO NEW API SPEC!

* new files

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Greg Sweeney <greg@kittycad.io>
Co-authored-by: Jess Frazelle <github@jessfraz.com>
2024-09-10 09:17:32 -07:00

33 lines
678 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=())