# 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, Field, validator  # noqa: F401


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

    Do not edit the class manually.

    System - a model defined in OpenAPI

        status: The status of this System.
        eth0_mac: The eth0_mac of this System [Optional].
    """
    class Config:
        orm_mode = True

    status: str = Field(alias="status")
    eth0_mac: Optional[str] = Field(alias="eth0Mac", default=None)

    @validator("eth0_mac")
    def eth0_mac_pattern(cls, value):
        assert value is not None and re.match(r"^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$", value)
        return value

System.update_forward_refs()
