generated from Luis/nextjs-python-web-template
Fixed up test_db_api
This commit is contained in:
41
pkgs/clan-cli/tests/openapi_client/models/role.py
Normal file
41
pkgs/clan-cli/tests/openapi_client/models/role.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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 Role(str, Enum):
|
||||
"""
|
||||
An enumeration.
|
||||
"""
|
||||
|
||||
"""
|
||||
allowed enum values
|
||||
"""
|
||||
SERVICE_PROSUMER = 'service_prosumer'
|
||||
AP = 'AP'
|
||||
DLG = 'DLG'
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json_str: str) -> Role:
|
||||
"""Create an instance of Role from a JSON string"""
|
||||
return Role(json.loads(json_str))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user