# coding: utf-8 """ Weheat Backend This is the backend for the Weheat project The version of the OpenAPI document: v1 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 from __future__ import annotations import json import pprint import re # noqa: F401 from enum import Enum try: from typing import Self except ImportError: from typing_extensions import Self class Role(int, Enum): """ Roles that can be assigned to a user.\\ Roles enumeration include: - Admin (0), - Support (1), - Factory (2), - Sales (3), - DataScientist (4), - ProductionObsoleteRole (5), - Installer (6), - Consumer (7) - Distributor (8) """ """ allowed enum values """ NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 NUMBER_3 = 3 NUMBER_4 = 4 NUMBER_5 = 5 NUMBER_6 = 6 NUMBER_7 = 7 NUMBER_8 = 8 @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of Role from a JSON string""" return cls(json.loads(json_str))