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

    Do not edit the class manually.

    DutyCycle - a model defined in OpenAPI

        duty_cycle: The duty_cycle of this DutyCycle [Optional].
    """
    class Config:
        orm_mode = True

    duty_cycle: Optional[int] = Field(alias="dutyCycle", default=None)

    @validator("duty_cycle")
    def duty_cycle_max(cls, value):
        assert value <= 100
        return value

    @validator("duty_cycle")
    def duty_cycle_min(cls, value):
        assert value >= 0
        return value

DutyCycle.update_forward_refs()
