# 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 Plug(BaseModel):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.

    Plug - a model defined in OpenAPI

        id: The id of this Plug.
        plug_type: The plug_type of this Plug.
        generic_controller_state: The generic_controller_state of this Plug.
        current: The current of this Plug.
        voltage: The voltage of this Plug.
        power_limit: The power_limit of this Plug [Optional].
        smart_charge: The smart_charge of this Plug [Optional].
    """
    class Config:
        orm_mode = True

    id: int = Field(alias="id")
    plug_type: str = Field(alias="plugType")
    generic_controller_state: str = Field(alias="genericControllerState")
    current: float = Field(alias="current")
    voltage: float = Field(alias="voltage")
    power_limit: Optional[float] = Field(alias="powerLimit", default=None)
    smart_charge: Optional[str] = Field(alias="smartCharge", default=None)

Plug.update_forward_refs()
