# coding: utf-8

from __future__ import annotations
from datetime import date, datetime  # noqa: F401

import re  # noqa: F401
from typing import Any, Dict, List, Optional  # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator  # noqa: F401


class RouteRecord(BaseModel):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.

    RouteRecord - a model defined in OpenAPI

        connection_id: The connection_id of this RouteRecord [Optional].
        created_at: The created_at of this RouteRecord [Optional].
        recipient_key: The recipient_key of this RouteRecord.
        record_id: The record_id of this RouteRecord [Optional].
        role: The role of this RouteRecord [Optional].
        state: The state of this RouteRecord [Optional].
        updated_at: The updated_at of this RouteRecord [Optional].
        wallet_id: The wallet_id of this RouteRecord [Optional].
    """

    connection_id: Optional[str] = None
    created_at: Optional[str] = None
    recipient_key: str
    record_id: Optional[str] = None
    role: Optional[str] = None
    state: Optional[str] = None
    updated_at: Optional[str] = None
    wallet_id: Optional[str] = None

    @validator("created_at")
    def created_at_pattern(cls, value):
        assert value is not None and re.match(
            r"^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$",
            value,
        )
        return value

    @validator("updated_at")
    def updated_at_pattern(cls, value):
        assert value is not None and re.match(
            r"^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$",
            value,
        )
        return value


RouteRecord.update_forward_refs()

# coding: utf-8

from __future__ import annotations
from datetime import date, datetime  # noqa: F401

import re  # noqa: F401
from typing import Any, Dict, List, Optional  # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator  # noqa: F401


class RouteRecord(BaseModel):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.

    RouteRecord - a model defined in OpenAPI

        connection_id: The connection_id of this RouteRecord [Optional].
        created_at: The created_at of this RouteRecord [Optional].
        recipient_key: The recipient_key of this RouteRecord.
        record_id: The record_id of this RouteRecord [Optional].
        role: The role of this RouteRecord [Optional].
        state: The state of this RouteRecord [Optional].
        updated_at: The updated_at of this RouteRecord [Optional].
        wallet_id: The wallet_id of this RouteRecord [Optional].
    """

    connection_id: Optional[str] = None
    created_at: Optional[str] = None
    recipient_key: str
    record_id: Optional[str] = None
    role: Optional[str] = None
    state: Optional[str] = None
    updated_at: Optional[str] = None
    wallet_id: Optional[str] = None

    @validator("created_at")
    def created_at_pattern(cls, value):
        assert value is not None and re.match(
            r"^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$",
            value,
        )
        return value

    @validator("updated_at")
    def updated_at_pattern(cls, value):
        assert value is not None and re.match(
            r"^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$",
            value,
        )
        return value


RouteRecord.update_forward_refs()

# coding: utf-8 # noqa: F401 # noqa: F401 # noqa: F401 # noqa: F401 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).      Do not edit the class manually.      RouteRecord - a model defined in OpenAPI          connection_id: The connection_id of this RouteRecord [Optional].         created_at: The created_at of this RouteRecord [Optional].         recipient_key: The recipient_key of this RouteRecord.         record_id: The record_id of this RouteRecord [Optional].         role: The role of this RouteRecord [Optional].         state: The state of this RouteRecord [Optional].         updated_at: The updated_at of this RouteRecord [Optional].         wallet_id: The wallet_id of this RouteRecord [Optional].