# coding: utf-8

"""
    Memsource REST API

    Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis-qa-with-the-memsource-api-team/).    If you have any questions, please contact [Memsource Support](<mailto:<EMAIL>>).  # noqa: E501

    OpenAPI spec version: Latest
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

# from memsource_cli.models.async_request_dto import AsyncRequestDto
from memsource_cli.models.async_response_dto import AsyncResponseDto  # noqa: F401,E501
from memsource_cli.models.project_reference import ProjectReference  # noqa: F401,E501
from memsource_cli.models.user_reference import UserReference  # noqa: F401,E501


class AsyncRequestDto(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'id': 'str',
        'created_by': 'UserReference',
        'date_created': 'datetime',
        'action': 'str',
        'async_response': 'AsyncResponseDto',
        'parent': 'AsyncRequestDto',
        'project': 'ProjectReference'
    }

    attribute_map = {
        'id': 'id',
        'created_by': 'createdBy',
        'date_created': 'dateCreated',
        'action': 'action',
        'async_response': 'asyncResponse',
        'parent': 'parent',
        'project': 'project'
    }

    def __init__(self, id=None, created_by=None, date_created=None, action=None, async_response=None, parent=None, project=None):  # noqa: E501
        """AsyncRequestDto - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._created_by = None
        self._date_created = None
        self._action = None
        self._async_response = None
        self._parent = None
        self._project = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if created_by is not None:
            self.created_by = created_by
        if date_created is not None:
            self.date_created = date_created
        if action is not None:
            self.action = action
        if async_response is not None:
            self.async_response = async_response
        if parent is not None:
            self.parent = parent
        if project is not None:
            self.project = project

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


        :return: The id of this AsyncRequestDto.  # noqa: E501
        :rtype: str
        """
        return self._id

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


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

        self._id = id

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


        :return: The created_by of this AsyncRequestDto.  # noqa: E501
        :rtype: UserReference
        """
        return self._created_by

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


        :param created_by: The created_by of this AsyncRequestDto.  # noqa: E501
        :type: UserReference
        """

        self._created_by = created_by

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


        :return: The date_created of this AsyncRequestDto.  # noqa: E501
        :rtype: datetime
        """
        return self._date_created

    @date_created.setter
    def date_created(self, date_created):
        """Sets the date_created of this AsyncRequestDto.


        :param date_created: The date_created of this AsyncRequestDto.  # noqa: E501
        :type: datetime
        """

        self._date_created = date_created

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


        :return: The action of this AsyncRequestDto.  # noqa: E501
        :rtype: str
        """
        return self._action

    @action.setter
    def action(self, action):
        """Sets the action of this AsyncRequestDto.


        :param action: The action of this AsyncRequestDto.  # noqa: E501
        :type: str
        """
        allowed_values = ["PRE_ANALYSE", "POST_ANALYSE", "COMPARE_ANALYSE", "PRE_TRANSLATE", "ASYNC_TRANSLATE", "IMPORT_JOB", "IMPORT_FILE", "ALIGN", "EXPORT_TMX_BY_QUERY", "IMPORT_TMX", "INSERT_INTO_TM", "QA", "UPDATE_CONTINUOUS_JOB"]  # noqa: E501
        if action not in allowed_values:
            raise ValueError(
                "Invalid value for `action` ({0}), must be one of {1}"  # noqa: E501
                .format(action, allowed_values)
            )

        self._action = action

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


        :return: The async_response of this AsyncRequestDto.  # noqa: E501
        :rtype: AsyncResponseDto
        """
        return self._async_response

    @async_response.setter
    def async_response(self, async_response):
        """Sets the async_response of this AsyncRequestDto.


        :param async_response: The async_response of this AsyncRequestDto.  # noqa: E501
        :type: AsyncResponseDto
        """

        self._async_response = async_response

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


        :return: The parent of this AsyncRequestDto.  # noqa: E501
        :rtype: AsyncRequestDto
        """
        return self._parent

    @parent.setter
    def parent(self, parent):
        """Sets the parent of this AsyncRequestDto.


        :param parent: The parent of this AsyncRequestDto.  # noqa: E501
        :type: AsyncRequestDto
        """

        self._parent = parent

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


        :return: The project of this AsyncRequestDto.  # noqa: E501
        :rtype: ProjectReference
        """
        return self._project

    @project.setter
    def project(self, project):
        """Sets the project of this AsyncRequestDto.


        :param project: The project of this AsyncRequestDto.  # noqa: E501
        :type: ProjectReference
        """

        self._project = project

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

        for attr, _ in six.iteritems(self.swagger_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
        if issubclass(AsyncRequestDto, dict):
            for key, value in self.items():
                result[key] = 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, AsyncRequestDto):
            return False

        return self.__dict__ == other.__dict__

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

# coding: utf-8

"""
    Memsource REST API

    Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis-qa-with-the-memsource-api-team/).    If you have any questions, please contact [Memsource Support](<mailto:<EMAIL>>).  # noqa: E501

    OpenAPI spec version: Latest
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

# from memsource_cli.models.async_request_dto import AsyncRequestDto
from memsource_cli.models.async_response_dto import AsyncResponseDto  # noqa: F401,E501
from memsource_cli.models.project_reference import ProjectReference  # noqa: F401,E501
from memsource_cli.models.user_reference import UserReference  # noqa: F401,E501


class AsyncRequestDto(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'id': 'str',
        'created_by': 'UserReference',
        'date_created': 'datetime',
        'action': 'str',
        'async_response': 'AsyncResponseDto',
        'parent': 'AsyncRequestDto',
        'project': 'ProjectReference'
    }

    attribute_map = {
        'id': 'id',
        'created_by': 'createdBy',
        'date_created': 'dateCreated',
        'action': 'action',
        'async_response': 'asyncResponse',
        'parent': 'parent',
        'project': 'project'
    }

    def __init__(self, id=None, created_by=None, date_created=None, action=None, async_response=None, parent=None, project=None):  # noqa: E501
        """AsyncRequestDto - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._created_by = None
        self._date_created = None
        self._action = None
        self._async_response = None
        self._parent = None
        self._project = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if created_by is not None:
            self.created_by = created_by
        if date_created is not None:
            self.date_created = date_created
        if action is not None:
            self.action = action
        if async_response is not None:
            self.async_response = async_response
        if parent is not None:
            self.parent = parent
        if project is not None:
            self.project = project

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


        :return: The id of this AsyncRequestDto.  # noqa: E501
        :rtype: str
        """
        return self._id

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


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

        self._id = id

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


        :return: The created_by of this AsyncRequestDto.  # noqa: E501
        :rtype: UserReference
        """
        return self._created_by

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


        :param created_by: The created_by of this AsyncRequestDto.  # noqa: E501
        :type: UserReference
        """

        self._created_by = created_by

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


        :return: The date_created of this AsyncRequestDto.  # noqa: E501
        :rtype: datetime
        """
        return self._date_created

    @date_created.setter
    def date_created(self, date_created):
        """Sets the date_created of this AsyncRequestDto.


        :param date_created: The date_created of this AsyncRequestDto.  # noqa: E501
        :type: datetime
        """

        self._date_created = date_created

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


        :return: The action of this AsyncRequestDto.  # noqa: E501
        :rtype: str
        """
        return self._action

    @action.setter
    def action(self, action):
        """Sets the action of this AsyncRequestDto.


        :param action: The action of this AsyncRequestDto.  # noqa: E501
        :type: str
        """
        allowed_values = ["PRE_ANALYSE", "POST_ANALYSE", "COMPARE_ANALYSE", "PRE_TRANSLATE", "ASYNC_TRANSLATE", "IMPORT_JOB", "IMPORT_FILE", "ALIGN", "EXPORT_TMX_BY_QUERY", "IMPORT_TMX", "INSERT_INTO_TM", "QA", "UPDATE_CONTINUOUS_JOB"]  # noqa: E501
        if action not in allowed_values:
            raise ValueError(
                "Invalid value for `action` ({0}), must be one of {1}"  # noqa: E501
                .format(action, allowed_values)
            )

        self._action = action

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


        :return: The async_response of this AsyncRequestDto.  # noqa: E501
        :rtype: AsyncResponseDto
        """
        return self._async_response

    @async_response.setter
    def async_response(self, async_response):
        """Sets the async_response of this AsyncRequestDto.


        :param async_response: The async_response of this AsyncRequestDto.  # noqa: E501
        :type: AsyncResponseDto
        """

        self._async_response = async_response

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


        :return: The parent of this AsyncRequestDto.  # noqa: E501
        :rtype: AsyncRequestDto
        """
        return self._parent

    @parent.setter
    def parent(self, parent):
        """Sets the parent of this AsyncRequestDto.


        :param parent: The parent of this AsyncRequestDto.  # noqa: E501
        :type: AsyncRequestDto
        """

        self._parent = parent

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


        :return: The project of this AsyncRequestDto.  # noqa: E501
        :rtype: ProjectReference
        """
        return self._project

    @project.setter
    def project(self, project):
        """Sets the project of this AsyncRequestDto.


        :param project: The project of this AsyncRequestDto.  # noqa: E501
        :type: ProjectReference
        """

        self._project = project

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

        for attr, _ in six.iteritems(self.swagger_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
        if issubclass(AsyncRequestDto, dict):
            for key, value in self.items():
                result[key] = 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, AsyncRequestDto):
            return False

        return self.__dict__ == other.__dict__

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

# coding: utf-8 Memsource REST API      Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis-qa-with-the-memsource-api-team/).    If you have any questions, please contact [Memsource Support](<mailto:<EMAIL>>).  # noqa: E501      OpenAPI spec version: Latest          Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 # from memsource_cli.models.async_request_dto import AsyncRequestDto # noqa: F401,E501 # noqa: F401,E501 # noqa: F401,E501 NOTE: This class is auto generated by the swagger code generator program.      Do not edit the class manually. Attributes:       swagger_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. # noqa: E501 AsyncRequestDto - a model defined in Swagger # noqa: E501 Gets the id of this AsyncRequestDto.  # noqa: E501           :return: The id of this AsyncRequestDto.  # noqa: E501         :rtype: str Sets the id of this AsyncRequestDto.           :param id: The id of this AsyncRequestDto.  # noqa: E501         :type: str Gets the created_by of this AsyncRequestDto.  # noqa: E501           :return: The created_by of this AsyncRequestDto.  # noqa: E501         :rtype: UserReference Sets the created_by of this AsyncRequestDto.           :param created_by: The created_by of this AsyncRequestDto.  # noqa: E501         :type: UserReference Gets the date_created of this AsyncRequestDto.  # noqa: E501           :return: The date_created of this AsyncRequestDto.  # noqa: E501         :rtype: datetime Sets the date_created of this AsyncRequestDto.           :param date_created: The date_created of this AsyncRequestDto.  # noqa: E501         :type: datetime Gets the action of this AsyncRequestDto.  # noqa: E501           :return: The action of this AsyncRequestDto.  # noqa: E501         :rtype: str Sets the action of this AsyncRequestDto.           :param action: The action of this AsyncRequestDto.  # noqa: E501         :type: str # noqa: E501 # noqa: E501 Gets the async_response of this AsyncRequestDto.  # noqa: E501           :return: The async_response of this AsyncRequestDto.  # noqa: E501         :rtype: AsyncResponseDto Sets the async_response of this AsyncRequestDto.           :param async_response: The async_response of this AsyncRequestDto.  # noqa: E501         :type: AsyncResponseDto Gets the parent of this AsyncRequestDto.  # noqa: E501           :return: The parent of this AsyncRequestDto.  # noqa: E501         :rtype: AsyncRequestDto Sets the parent of this AsyncRequestDto.           :param parent: The parent of this AsyncRequestDto.  # noqa: E501         :type: AsyncRequestDto Gets the project of this AsyncRequestDto.  # noqa: E501           :return: The project of this AsyncRequestDto.  # noqa: E501         :rtype: ProjectReference Sets the project of this AsyncRequestDto.           :param project: The project of this AsyncRequestDto.  # noqa: E501         :type: ProjectReference Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal