# coding: utf-8

"""
    Aron API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


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

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'created_by': 'ProtoUser',
        'created_by_id': 'int',
        'created_dt': 'float',
        'id': 'int',
        'llm_user_group_id': 'int',
        'name': 'str',
        'organization_id': 'int',
        'secret_key_once': 'str',
        'secret_preview': 'str',
        'updated_dt': 'float'
    }

    attribute_map = {
        'created_by': 'created_by',
        'created_by_id': 'created_by_id',
        'created_dt': 'created_dt',
        'id': 'id',
        'llm_user_group_id': 'llm_user_group_id',
        'name': 'name',
        'organization_id': 'organization_id',
        'secret_key_once': 'secret_key_once',
        'secret_preview': 'secret_preview',
        'updated_dt': 'updated_dt'
    }

    def __init__(self, created_by=None, created_by_id=None, created_dt=None, id=None, llm_user_group_id=None, name=None, organization_id=None, secret_key_once=None, secret_preview=None, updated_dt=None, local_vars_configuration=None):  # noqa: E501
        """ProtoLLMAPIKey - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._created_by = None
        self._created_by_id = None
        self._created_dt = None
        self._id = None
        self._llm_user_group_id = None
        self._name = None
        self._organization_id = None
        self._secret_key_once = None
        self._secret_preview = None
        self._updated_dt = None
        self.discriminator = None

        if created_by is not None:
            self.created_by = created_by
        if created_by_id is not None:
            self.created_by_id = created_by_id
        if created_dt is not None:
            self.created_dt = created_dt
        if id is not None:
            self.id = id
        if llm_user_group_id is not None:
            self.llm_user_group_id = llm_user_group_id
        self.name = name
        if organization_id is not None:
            self.organization_id = organization_id
        if secret_key_once is not None:
            self.secret_key_once = secret_key_once
        if secret_preview is not None:
            self.secret_preview = secret_preview
        if updated_dt is not None:
            self.updated_dt = updated_dt

    @property
    def created_by(self):
        """Gets the created_by of this ProtoLLMAPIKey.  # noqa: E501


        :return: The created_by of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: ProtoUser
        """
        return self._created_by

    @created_by.setter
    def created_by(self, created_by):
        """Sets the created_by of this ProtoLLMAPIKey.


        :param created_by: The created_by of this ProtoLLMAPIKey.  # noqa: E501
        :type created_by: ProtoUser
        """

        self._created_by = created_by

    @property
    def created_by_id(self):
        """Gets the created_by_id of this ProtoLLMAPIKey.  # noqa: E501


        :return: The created_by_id of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: int
        """
        return self._created_by_id

    @created_by_id.setter
    def created_by_id(self, created_by_id):
        """Sets the created_by_id of this ProtoLLMAPIKey.


        :param created_by_id: The created_by_id of this ProtoLLMAPIKey.  # noqa: E501
        :type created_by_id: int
        """

        self._created_by_id = created_by_id

    @property
    def created_dt(self):
        """Gets the created_dt of this ProtoLLMAPIKey.  # noqa: E501


        :return: The created_dt of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: float
        """
        return self._created_dt

    @created_dt.setter
    def created_dt(self, created_dt):
        """Sets the created_dt of this ProtoLLMAPIKey.


        :param created_dt: The created_dt of this ProtoLLMAPIKey.  # noqa: E501
        :type created_dt: float
        """

        self._created_dt = created_dt

    @property
    def id(self):
        """Gets the id of this ProtoLLMAPIKey.  # noqa: E501


        :return: The id of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this ProtoLLMAPIKey.


        :param id: The id of this ProtoLLMAPIKey.  # noqa: E501
        :type id: int
        """

        self._id = id

    @property
    def llm_user_group_id(self):
        """Gets the llm_user_group_id of this ProtoLLMAPIKey.  # noqa: E501


        :return: The llm_user_group_id of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: int
        """
        return self._llm_user_group_id

    @llm_user_group_id.setter
    def llm_user_group_id(self, llm_user_group_id):
        """Sets the llm_user_group_id of this ProtoLLMAPIKey.


        :param llm_user_group_id: The llm_user_group_id of this ProtoLLMAPIKey.  # noqa: E501
        :type llm_user_group_id: int
        """

        self._llm_user_group_id = llm_user_group_id

    @property
    def name(self):
        """Gets the name of this ProtoLLMAPIKey.  # noqa: E501


        :return: The name of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this ProtoLLMAPIKey.


        :param name: The name of this ProtoLLMAPIKey.  # noqa: E501
        :type name: str
        """
        if self.local_vars_configuration.client_side_validation and name is None:  # noqa: E501
            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501

        self._name = name

    @property
    def organization_id(self):
        """Gets the organization_id of this ProtoLLMAPIKey.  # noqa: E501


        :return: The organization_id of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: int
        """
        return self._organization_id

    @organization_id.setter
    def organization_id(self, organization_id):
        """Sets the organization_id of this ProtoLLMAPIKey.


        :param organization_id: The organization_id of this ProtoLLMAPIKey.  # noqa: E501
        :type organization_id: int
        """

        self._organization_id = organization_id

    @property
    def secret_key_once(self):
        """Gets the secret_key_once of this ProtoLLMAPIKey.  # noqa: E501


        :return: The secret_key_once of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: str
        """
        return self._secret_key_once

    @secret_key_once.setter
    def secret_key_once(self, secret_key_once):
        """Sets the secret_key_once of this ProtoLLMAPIKey.


        :param secret_key_once: The secret_key_once of this ProtoLLMAPIKey.  # noqa: E501
        :type secret_key_once: str
        """

        self._secret_key_once = secret_key_once

    @property
    def secret_preview(self):
        """Gets the secret_preview of this ProtoLLMAPIKey.  # noqa: E501


        :return: The secret_preview of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: str
        """
        return self._secret_preview

    @secret_preview.setter
    def secret_preview(self, secret_preview):
        """Sets the secret_preview of this ProtoLLMAPIKey.


        :param secret_preview: The secret_preview of this ProtoLLMAPIKey.  # noqa: E501
        :type secret_preview: str
        """

        self._secret_preview = secret_preview

    @property
    def updated_dt(self):
        """Gets the updated_dt of this ProtoLLMAPIKey.  # noqa: E501


        :return: The updated_dt of this ProtoLLMAPIKey.  # noqa: E501
        :rtype: float
        """
        return self._updated_dt

    @updated_dt.setter
    def updated_dt(self, updated_dt):
        """Sets the updated_dt of this ProtoLLMAPIKey.


        :param updated_dt: The updated_dt of this ProtoLLMAPIKey.  # noqa: E501
        :type updated_dt: float
        """

        self._updated_dt = updated_dt

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(value)

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, ProtoLLMAPIKey):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, ProtoLLMAPIKey):
            return True

        return self.to_dict() != other.to_dict()
