# 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 OrmModelService(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 = {
        'auth_key': 'str',
        'created_by_id': 'int',
        'created_dt': 'datetime',
        'description': 'str',
        'edges': 'OrmModelServiceEdges',
        'id': 'int',
        'immutable_slug': 'str',
        'kernel_cluster_id': 'int',
        'last_updated_by_id': 'int',
        'last_updated_dt': 'datetime',
        'name': 'str',
        'organization_id': 'int',
        'secret_id': 'int',
        'status': 'str',
        'type': 'str',
        'updated_dt': 'datetime'
    }

    attribute_map = {
        'auth_key': 'auth_key',
        'created_by_id': 'created_by_id',
        'created_dt': 'created_dt',
        'description': 'description',
        'edges': 'edges',
        'id': 'id',
        'immutable_slug': 'immutable_slug',
        'kernel_cluster_id': 'kernel_cluster_id',
        'last_updated_by_id': 'last_updated_by_id',
        'last_updated_dt': 'last_updated_dt',
        'name': 'name',
        'organization_id': 'organization_id',
        'secret_id': 'secret_id',
        'status': 'status',
        'type': 'type',
        'updated_dt': 'updated_dt'
    }

    def __init__(self, auth_key=None, created_by_id=None, created_dt=None, description=None, edges=None, id=None, immutable_slug=None, kernel_cluster_id=None, last_updated_by_id=None, last_updated_dt=None, name=None, organization_id=None, secret_id=None, status=None, type=None, updated_dt=None, local_vars_configuration=None):  # noqa: E501
        """OrmModelService - 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._auth_key = None
        self._created_by_id = None
        self._created_dt = None
        self._description = None
        self._edges = None
        self._id = None
        self._immutable_slug = None
        self._kernel_cluster_id = None
        self._last_updated_by_id = None
        self._last_updated_dt = None
        self._name = None
        self._organization_id = None
        self._secret_id = None
        self._status = None
        self._type = None
        self._updated_dt = None
        self.discriminator = None

        if auth_key is not None:
            self.auth_key = auth_key
        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 description is not None:
            self.description = description
        if edges is not None:
            self.edges = edges
        if id is not None:
            self.id = id
        if immutable_slug is not None:
            self.immutable_slug = immutable_slug
        if kernel_cluster_id is not None:
            self.kernel_cluster_id = kernel_cluster_id
        if last_updated_by_id is not None:
            self.last_updated_by_id = last_updated_by_id
        if last_updated_dt is not None:
            self.last_updated_dt = last_updated_dt
        if name is not None:
            self.name = name
        if organization_id is not None:
            self.organization_id = organization_id
        self.secret_id = secret_id
        if status is not None:
            self.status = status
        if type is not None:
            self.type = type
        if updated_dt is not None:
            self.updated_dt = updated_dt

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


        :return: The auth_key of this OrmModelService.  # noqa: E501
        :rtype: str
        """
        return self._auth_key

    @auth_key.setter
    def auth_key(self, auth_key):
        """Sets the auth_key of this OrmModelService.


        :param auth_key: The auth_key of this OrmModelService.  # noqa: E501
        :type auth_key: str
        """

        self._auth_key = auth_key

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


        :return: The created_by_id of this OrmModelService.  # 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 OrmModelService.


        :param created_by_id: The created_by_id of this OrmModelService.  # 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 OrmModelService.  # noqa: E501


        :return: The created_dt of this OrmModelService.  # noqa: E501
        :rtype: datetime
        """
        return self._created_dt

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


        :param created_dt: The created_dt of this OrmModelService.  # noqa: E501
        :type created_dt: datetime
        """

        self._created_dt = created_dt

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


        :return: The description of this OrmModelService.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this OrmModelService.


        :param description: The description of this OrmModelService.  # noqa: E501
        :type description: str
        """

        self._description = description

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


        :return: The edges of this OrmModelService.  # noqa: E501
        :rtype: OrmModelServiceEdges
        """
        return self._edges

    @edges.setter
    def edges(self, edges):
        """Sets the edges of this OrmModelService.


        :param edges: The edges of this OrmModelService.  # noqa: E501
        :type edges: OrmModelServiceEdges
        """

        self._edges = edges

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


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

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


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

        self._id = id

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


        :return: The immutable_slug of this OrmModelService.  # noqa: E501
        :rtype: str
        """
        return self._immutable_slug

    @immutable_slug.setter
    def immutable_slug(self, immutable_slug):
        """Sets the immutable_slug of this OrmModelService.


        :param immutable_slug: The immutable_slug of this OrmModelService.  # noqa: E501
        :type immutable_slug: str
        """

        self._immutable_slug = immutable_slug

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


        :return: The kernel_cluster_id of this OrmModelService.  # noqa: E501
        :rtype: int
        """
        return self._kernel_cluster_id

    @kernel_cluster_id.setter
    def kernel_cluster_id(self, kernel_cluster_id):
        """Sets the kernel_cluster_id of this OrmModelService.


        :param kernel_cluster_id: The kernel_cluster_id of this OrmModelService.  # noqa: E501
        :type kernel_cluster_id: int
        """

        self._kernel_cluster_id = kernel_cluster_id

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


        :return: The last_updated_by_id of this OrmModelService.  # noqa: E501
        :rtype: int
        """
        return self._last_updated_by_id

    @last_updated_by_id.setter
    def last_updated_by_id(self, last_updated_by_id):
        """Sets the last_updated_by_id of this OrmModelService.


        :param last_updated_by_id: The last_updated_by_id of this OrmModelService.  # noqa: E501
        :type last_updated_by_id: int
        """

        self._last_updated_by_id = last_updated_by_id

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


        :return: The last_updated_dt of this OrmModelService.  # noqa: E501
        :rtype: datetime
        """
        return self._last_updated_dt

    @last_updated_dt.setter
    def last_updated_dt(self, last_updated_dt):
        """Sets the last_updated_dt of this OrmModelService.


        :param last_updated_dt: The last_updated_dt of this OrmModelService.  # noqa: E501
        :type last_updated_dt: datetime
        """

        self._last_updated_dt = last_updated_dt

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


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

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


        :param name: The name of this OrmModelService.  # noqa: E501
        :type name: str
        """

        self._name = name

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


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

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


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

        self._organization_id = organization_id

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


        :return: The secret_id of this OrmModelService.  # noqa: E501
        :rtype: int
        """
        return self._secret_id

    @secret_id.setter
    def secret_id(self, secret_id):
        """Sets the secret_id of this OrmModelService.


        :param secret_id: The secret_id of this OrmModelService.  # noqa: E501
        :type secret_id: int
        """

        self._secret_id = secret_id

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


        :return: The status of this OrmModelService.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this OrmModelService.


        :param status: The status of this OrmModelService.  # noqa: E501
        :type status: str
        """

        self._status = status

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


        :return: The type of this OrmModelService.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this OrmModelService.


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

        self._type = type

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


        :return: The updated_dt of this OrmModelService.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_dt

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


        :param updated_dt: The updated_dt of this OrmModelService.  # noqa: E501
        :type updated_dt: datetime
        """

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

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