generated from Luis/nextjs-python-web-template
42 lines
751 B
Python
42 lines
751 B
Python
# coding: utf-8
|
|
|
|
"""
|
|
FastAPI
|
|
|
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
|
|
The version of the OpenAPI document: 0.1.0
|
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
|
|
Do not edit the class manually.
|
|
""" # noqa: E501
|
|
|
|
|
|
import json
|
|
import pprint
|
|
import re # noqa: F401
|
|
from aenum import Enum, no_arg
|
|
|
|
|
|
|
|
|
|
|
|
class Status(str, Enum):
|
|
"""
|
|
An enumeration.
|
|
"""
|
|
|
|
"""
|
|
allowed enum values
|
|
"""
|
|
ONLINE = 'online'
|
|
OFFLINE = 'offline'
|
|
UNKNOWN = 'unknown'
|
|
|
|
@classmethod
|
|
def from_json(cls, json_str: str) -> Status:
|
|
"""Create an instance of Status from a JSON string"""
|
|
return Status(json.loads(json_str))
|
|
|
|
|