# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.


from datadog_api_client.v1.model_utils import (
    ModelSimple,
    cached_property,
)


class AccessRole(ModelSimple):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    allowed_values = {
        "value": {
            "STANDARD": "st",
            "ADMIN": "adm",
            "READ_ONLY": "ro",
            "ERROR": "ERROR",
        },
    }

    validations = {}

    @cached_property
    def openapi_types():
        return {
            "value": (str,),
        }

    def __init__(self, *args, **kwargs):
        """AccessRole - a model defined in OpenAPI

        Note that value can be passed either in args or in kwargs, but not in both.

        Args:
            args[0] (str): The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). If omitted defaults to "st". Must be one of ["st", "adm", "ro", "ERROR"].

        Keyword Args:
            value (str): The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). If omitted defaults to "st". Must be one of ["st", "adm", "ro", "ERROR"].
        """
        super().__init__(kwargs)

        if "value" in kwargs:
            value = kwargs.pop("value")
        elif args:
            args = list(args)
            value = args.pop(0)
        else:
            value = "st"

        self._check_pos_args(args)

        self.value = value

        self._check_kw_args(kwargs)

    @classmethod
    def _from_openapi_data(cls, *args, **kwargs):
        """Helper creating a new instance from a response."""
        return cls(*args, **kwargs)

# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.


from datadog_api_client.v1.model_utils import (
    ModelSimple,
    cached_property,
)


class AccessRole(ModelSimple):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    allowed_values = {
        "value": {
            "STANDARD": "st",
            "ADMIN": "adm",
            "READ_ONLY": "ro",
            "ERROR": "ERROR",
        },
    }

    validations = {}

    @cached_property
    def openapi_types():
        return {
            "value": (str,),
        }

    def __init__(self, *args, **kwargs):
        """AccessRole - a model defined in OpenAPI

        Note that value can be passed either in args or in kwargs, but not in both.

        Args:
            args[0] (str): The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). If omitted defaults to "st". Must be one of ["st", "adm", "ro", "ERROR"].

        Keyword Args:
            value (str): The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). If omitted defaults to "st". Must be one of ["st", "adm", "ro", "ERROR"].
        """
        super().__init__(kwargs)

        if "value" in kwargs:
            value = kwargs.pop("value")
        elif args:
            args = list(args)
            value = args.pop(0)
        else:
            value = "st"

        self._check_pos_args(args)

        self.value = value

        self._check_kw_args(kwargs)

    @classmethod
    def _from_openapi_data(cls, *args, **kwargs):
        """Helper creating a new instance from a response."""
        return cls(*args, **kwargs)

# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. NOTE: This class is auto generated by OpenAPI Generator.     Ref: https://openapi-generator.tech      Do not edit the class manually. AccessRole - a model defined in OpenAPI          Note that value can be passed either in args or in kwargs, but not in both.          Args:             args[0] (str): The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). If omitted defaults to "st". Must be one of ["st", "adm", "ro", "ERROR"].          Keyword Args:             value (str): The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). If omitted defaults to "st". Must be one of ["st", "adm", "ro", "ERROR"]. Helper creating a new instance from a response.