# coding: utf-8

"""
    Akeyless API

    The purpose of this application is to provide access to Akeyless API.  # noqa: E501

    The version of the OpenAPI document: 2.0
    Contact: support@akeyless.io
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from akeyless.configuration import Configuration


class MigrationsConfigLastChange(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 = {
        'changed_migrations': 'list[str]',
        'created_migrations': 'list[str]',
        'deleted_migrations': 'list[str]'
    }

    attribute_map = {
        'changed_migrations': 'changed_migrations',
        'created_migrations': 'created_migrations',
        'deleted_migrations': 'deleted_migrations'
    }

    def __init__(self, changed_migrations=None, created_migrations=None, deleted_migrations=None, local_vars_configuration=None):  # noqa: E501
        """MigrationsConfigLastChange - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._changed_migrations = None
        self._created_migrations = None
        self._deleted_migrations = None
        self.discriminator = None

        if changed_migrations is not None:
            self.changed_migrations = changed_migrations
        if created_migrations is not None:
            self.created_migrations = created_migrations
        if deleted_migrations is not None:
            self.deleted_migrations = deleted_migrations

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


        :return: The changed_migrations of this MigrationsConfigLastChange.  # noqa: E501
        :rtype: list[str]
        """
        return self._changed_migrations

    @changed_migrations.setter
    def changed_migrations(self, changed_migrations):
        """Sets the changed_migrations of this MigrationsConfigLastChange.


        :param changed_migrations: The changed_migrations of this MigrationsConfigLastChange.  # noqa: E501
        :type: list[str]
        """

        self._changed_migrations = changed_migrations

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


        :return: The created_migrations of this MigrationsConfigLastChange.  # noqa: E501
        :rtype: list[str]
        """
        return self._created_migrations

    @created_migrations.setter
    def created_migrations(self, created_migrations):
        """Sets the created_migrations of this MigrationsConfigLastChange.


        :param created_migrations: The created_migrations of this MigrationsConfigLastChange.  # noqa: E501
        :type: list[str]
        """

        self._created_migrations = created_migrations

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


        :return: The deleted_migrations of this MigrationsConfigLastChange.  # noqa: E501
        :rtype: list[str]
        """
        return self._deleted_migrations

    @deleted_migrations.setter
    def deleted_migrations(self, deleted_migrations):
        """Sets the deleted_migrations of this MigrationsConfigLastChange.


        :param deleted_migrations: The deleted_migrations of this MigrationsConfigLastChange.  # noqa: E501
        :type: list[str]
        """

        self._deleted_migrations = deleted_migrations

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

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = 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, MigrationsConfigLastChange):
            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, MigrationsConfigLastChange):
            return True

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