Files
kittycad.py/kittycad/models/new_address.py
Jess Frazelle 8d476bbec6 pydantic cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2024-01-06 18:32:34 -08:00

27 lines
614 B
Python

from typing import Optional
from pydantic import BaseModel, ConfigDict
from ..models.country_code import CountryCode
from ..models.uuid import Uuid
class NewAddress(BaseModel):
"""The struct that is used to create a new record. This is automatically generated and has all the same fields as the main struct only it is missing the `id`."""
city: Optional[str] = None
country: CountryCode
state: Optional[str] = None
street1: Optional[str] = None
street2: Optional[str] = None
user_id: Uuid
zip: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())