# 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 ResponseSecret(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': 'ResponseSimpleUser',
        'created_dt': 'float',
        'credentials_description': 'str',
        'credentials_id': 'int',
        'credentials_kind': 'str',
        'credentials_name': 'str',
        'organization_id': 'int'
    }

    attribute_map = {
        'created_by': 'created_by',
        'created_dt': 'created_dt',
        'credentials_description': 'credentials_description',
        'credentials_id': 'credentials_id',
        'credentials_kind': 'credentials_kind',
        'credentials_name': 'credentials_name',
        'organization_id': 'organization_id'
    }

    def __init__(self, created_by=None, created_dt=None, credentials_description=None, credentials_id=None, credentials_kind=None, credentials_name=None, organization_id=None, local_vars_configuration=None):  # noqa: E501
        """ResponseSecret - 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_dt = None
        self._credentials_description = None
        self._credentials_id = None
        self._credentials_kind = None
        self._credentials_name = None
        self._organization_id = None
        self.discriminator = None

        if created_by is not None:
            self.created_by = created_by
        self.created_dt = created_dt
        self.credentials_description = credentials_description
        self.credentials_id = credentials_id
        self.credentials_kind = credentials_kind
        self.credentials_name = credentials_name
        self.organization_id = organization_id

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


        :return: The created_by of this ResponseSecret.  # noqa: E501
        :rtype: ResponseSimpleUser
        """
        return self._created_by

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


        :param created_by: The created_by of this ResponseSecret.  # noqa: E501
        :type created_by: ResponseSimpleUser
        """

        self._created_by = created_by

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


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

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


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

        self._created_dt = created_dt

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


        :return: The credentials_description of this ResponseSecret.  # noqa: E501
        :rtype: str
        """
        return self._credentials_description

    @credentials_description.setter
    def credentials_description(self, credentials_description):
        """Sets the credentials_description of this ResponseSecret.


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

        self._credentials_description = credentials_description

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


        :return: The credentials_id of this ResponseSecret.  # noqa: E501
        :rtype: int
        """
        return self._credentials_id

    @credentials_id.setter
    def credentials_id(self, credentials_id):
        """Sets the credentials_id of this ResponseSecret.


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

        self._credentials_id = credentials_id

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


        :return: The credentials_kind of this ResponseSecret.  # noqa: E501
        :rtype: str
        """
        return self._credentials_kind

    @credentials_kind.setter
    def credentials_kind(self, credentials_kind):
        """Sets the credentials_kind of this ResponseSecret.


        :param credentials_kind: The credentials_kind of this ResponseSecret.  # noqa: E501
        :type credentials_kind: str
        """
        if self.local_vars_configuration.client_side_validation and credentials_kind is None:  # noqa: E501
            raise ValueError("Invalid value for `credentials_kind`, must not be `None`")  # noqa: E501
        allowed_values = ["aws", "gcp", "docker", "github", "gitlab", "bitbucket", "slack", "generic-secret"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and credentials_kind not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `credentials_kind` ({0}), must be one of {1}"  # noqa: E501
                .format(credentials_kind, allowed_values)
            )

        self._credentials_kind = credentials_kind

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


        :return: The credentials_name of this ResponseSecret.  # noqa: E501
        :rtype: str
        """
        return self._credentials_name

    @credentials_name.setter
    def credentials_name(self, credentials_name):
        """Sets the credentials_name of this ResponseSecret.


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

        self._credentials_name = credentials_name

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


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

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


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

        self._organization_id = organization_id

    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, ResponseSecret):
            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, ResponseSecret):
            return True

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