# coding: utf-8

"""
    Mender API

    Combined API specification for the features of the different Mender backend services, suitable for code generation applications 

    The version of the OpenAPI document: 1
    Contact: support@mender.io
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class Scope(str, Enum):
    """
    The scope of the attribute.  Scope is a string and acts as namespace for the attribute name.  * __inventory__: Attributes reported by the device. * __system__: Attributes populated by the mender-server. * __identity__: Device's identity attributes provided in the device's auth request. * __monitor__: Attributes populated by the monitoring add-on. * __tags__: User-defined attributes associated with the device. 
    """

    """
    allowed enum values
    """
    SYSTEM = 'system'
    IDENTITY = 'identity'
    INVENTORY = 'inventory'
    MONITOR = 'monitor'
    TAGS = 'tags'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of Scope from a JSON string"""
        return cls(json.loads(json_str))


