# 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 OrmModelServiceRollout(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_id': 'int',
        'created_dt': 'datetime',
        'current_step': 'int',
        'edges': 'OrmModelServiceRolloutEdges',
        'id': 'int',
        'immutable_slug': 'str',
        'message': 'str',
        'model_service_id': 'int',
        'number': 'int',
        'previous_state': 'dict[str, object]',
        'rollout_spec': 'dict[str, object]',
        'status': 'str',
        'step_statuses': 'dict[str, object]',
        'updated_dt': 'datetime'
    }

    attribute_map = {
        'created_by_id': 'created_by_id',
        'created_dt': 'created_dt',
        'current_step': 'current_step',
        'edges': 'edges',
        'id': 'id',
        'immutable_slug': 'immutable_slug',
        'message': 'message',
        'model_service_id': 'model_service_id',
        'number': 'number',
        'previous_state': 'previous_state',
        'rollout_spec': 'rollout_spec',
        'status': 'status',
        'step_statuses': 'step_statuses',
        'updated_dt': 'updated_dt'
    }

    def __init__(self, created_by_id=None, created_dt=None, current_step=None, edges=None, id=None, immutable_slug=None, message=None, model_service_id=None, number=None, previous_state=None, rollout_spec=None, status=None, step_statuses=None, updated_dt=None, local_vars_configuration=None):  # noqa: E501
        """OrmModelServiceRollout - 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_id = None
        self._created_dt = None
        self._current_step = None
        self._edges = None
        self._id = None
        self._immutable_slug = None
        self._message = None
        self._model_service_id = None
        self._number = None
        self._previous_state = None
        self._rollout_spec = None
        self._status = None
        self._step_statuses = None
        self._updated_dt = None
        self.discriminator = None

        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 current_step is not None:
            self.current_step = current_step
        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 message is not None:
            self.message = message
        if model_service_id is not None:
            self.model_service_id = model_service_id
        if number is not None:
            self.number = number
        if previous_state is not None:
            self.previous_state = previous_state
        if rollout_spec is not None:
            self.rollout_spec = rollout_spec
        if status is not None:
            self.status = status
        if step_statuses is not None:
            self.step_statuses = step_statuses
        if updated_dt is not None:
            self.updated_dt = updated_dt

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


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


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


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

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


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

        self._created_dt = created_dt

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


        :return: The current_step of this OrmModelServiceRollout.  # noqa: E501
        :rtype: int
        """
        return self._current_step

    @current_step.setter
    def current_step(self, current_step):
        """Sets the current_step of this OrmModelServiceRollout.


        :param current_step: The current_step of this OrmModelServiceRollout.  # noqa: E501
        :type current_step: int
        """

        self._current_step = current_step

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


        :return: The edges of this OrmModelServiceRollout.  # noqa: E501
        :rtype: OrmModelServiceRolloutEdges
        """
        return self._edges

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


        :param edges: The edges of this OrmModelServiceRollout.  # noqa: E501
        :type edges: OrmModelServiceRolloutEdges
        """

        self._edges = edges

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


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

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


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

        self._id = id

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


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

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


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

        self._immutable_slug = immutable_slug

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


        :return: The message of this OrmModelServiceRollout.  # noqa: E501
        :rtype: str
        """
        return self._message

    @message.setter
    def message(self, message):
        """Sets the message of this OrmModelServiceRollout.


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

        self._message = message

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


        :return: The model_service_id of this OrmModelServiceRollout.  # noqa: E501
        :rtype: int
        """
        return self._model_service_id

    @model_service_id.setter
    def model_service_id(self, model_service_id):
        """Sets the model_service_id of this OrmModelServiceRollout.


        :param model_service_id: The model_service_id of this OrmModelServiceRollout.  # noqa: E501
        :type model_service_id: int
        """

        self._model_service_id = model_service_id

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


        :return: The number of this OrmModelServiceRollout.  # noqa: E501
        :rtype: int
        """
        return self._number

    @number.setter
    def number(self, number):
        """Sets the number of this OrmModelServiceRollout.


        :param number: The number of this OrmModelServiceRollout.  # noqa: E501
        :type number: int
        """

        self._number = number

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


        :return: The previous_state of this OrmModelServiceRollout.  # noqa: E501
        :rtype: dict[str, object]
        """
        return self._previous_state

    @previous_state.setter
    def previous_state(self, previous_state):
        """Sets the previous_state of this OrmModelServiceRollout.


        :param previous_state: The previous_state of this OrmModelServiceRollout.  # noqa: E501
        :type previous_state: dict[str, object]
        """

        self._previous_state = previous_state

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


        :return: The rollout_spec of this OrmModelServiceRollout.  # noqa: E501
        :rtype: dict[str, object]
        """
        return self._rollout_spec

    @rollout_spec.setter
    def rollout_spec(self, rollout_spec):
        """Sets the rollout_spec of this OrmModelServiceRollout.


        :param rollout_spec: The rollout_spec of this OrmModelServiceRollout.  # noqa: E501
        :type rollout_spec: dict[str, object]
        """

        self._rollout_spec = rollout_spec

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


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

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


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

        self._status = status

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


        :return: The step_statuses of this OrmModelServiceRollout.  # noqa: E501
        :rtype: dict[str, object]
        """
        return self._step_statuses

    @step_statuses.setter
    def step_statuses(self, step_statuses):
        """Sets the step_statuses of this OrmModelServiceRollout.


        :param step_statuses: The step_statuses of this OrmModelServiceRollout.  # noqa: E501
        :type step_statuses: dict[str, object]
        """

        self._step_statuses = step_statuses

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


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

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


        :param updated_dt: The updated_dt of this OrmModelServiceRollout.  # 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, OrmModelServiceRollout):
            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, OrmModelServiceRollout):
            return True

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