text: # coding: utf-8
  
  """
      Idomoo API
  
  
  
      OpenAPI spec version: 2.0
      Contact: dev.support@idomoo.com
  
  """
  
  
  import pprint
  
  import six
  
  from idomoo.models.error import Error
  
  
  class ErrorResponse(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 = {
          'status': 'str',
          'request_id': 'str',
          'errors': 'list[Error]'
      }
  
      attribute_map = {
          'status': 'status',
          'request_id': 'request_id',
          'errors': 'errors'
      }
  
      def __init__(self, status=None, request_id=None, errors=None):
          """ErrorResponse - a model defined in Swagger"""
  
          self._status = None
          self._request_id = None
          self._errors = None
          self.discriminator = None
  
          self.status = status
          self.request_id = request_id
          self.errors = errors
  
      @property
      def status(self):
          """Gets the status of this ErrorResponse.
  
          The error status
  
          :return: The status of this ErrorResponse.
          :rtype: str
          """
          return self._status
  
      @status.setter
      def status(self, status):
          """Sets the status of this ErrorResponse.
  
          The error status
  
          :param status: The status of this ErrorResponse.
          :type: str
          """
          if status is None:
              raise ValueError("Invalid value for `status`, must not be `None`")
          allowed_values = ["GENERATION_FAILED", "Error"]
          if status not in allowed_values:
              raise ValueError(
                  "Invalid value for `status` ({0}), must be one of {1}"
                  .format(status, allowed_values)
              )
  
          self._status = status
  
      @property
      def request_id(self):
          """Gets the request_id of this ErrorResponse.
  
          ID of this specific request. Helps Idomoo support find the call if issues happen.
  
          :return: The request_id of this ErrorResponse.
          :rtype: str
          """
          return self._request_id
  
      @request_id.setter
      def request_id(self, request_id):
          """Sets the request_id of this ErrorResponse.
  
          ID of this specific request. Helps Idomoo support find the call if issues happen.
  
          :param request_id: The request_id of this ErrorResponse.
          :type: str
          """
          if request_id is None:
              raise ValueError("Invalid value for `request_id`, must not be `None`")
  
          self._request_id = request_id
  
      @property
      def errors(self):
          """Gets the errors of this ErrorResponse.
  
          The content of the error.
  
          :return: The errors of this ErrorResponse.
          :rtype: list[Error]
          """
          return self._errors
  
      @errors.setter
      def errors(self, errors):
          """Sets the errors of this ErrorResponse.
  
          The content of the error.
  
          :param errors: The errors of this ErrorResponse.
          :type: list[Error]
          """
          if errors is None:
              raise ValueError("Invalid value for `errors`, must not be `None`")
  
          self._errors = errors
  
      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
  
          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, ErrorResponse):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  