<reponame>openlattice/api-clients
# coding: utf-8

"""
    OpenLattice API

    OpenLattice API  # noqa: E501

    The version of the OpenAPI document: 0.0.1
    Contact: <EMAIL>
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from openlattice.configuration import Configuration


class SearchDetails(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 = {
        'search_term': 'str',
        '_property': 'str',
        'exact': 'bool'
    }

    attribute_map = {
        'search_term': 'searchTerm',
        '_property': 'property',
        'exact': 'exact'
    }

    def __init__(self, search_term=None, _property=None, exact=None, local_vars_configuration=None):  # noqa: E501
        """SearchDetails - 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._search_term = None
        self.__property = None
        self._exact = None
        self.discriminator = None

        if search_term is not None:
            self.search_term = search_term
        if _property is not None:
            self._property = _property
        if exact is not None:
            self.exact = exact

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


        :return: The search_term of this SearchDetails.  # noqa: E501
        :rtype: str
        """
        return self._search_term

    @search_term.setter
    def search_term(self, search_term):
        """Sets the search_term of this SearchDetails.


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

        self._search_term = search_term

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


        :return: The _property of this SearchDetails.  # noqa: E501
        :rtype: str
        """
        return self.__property

    @_property.setter
    def _property(self, _property):
        """Sets the _property of this SearchDetails.


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

        self.__property = _property

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


        :return: The exact of this SearchDetails.  # noqa: E501
        :rtype: bool
        """
        return self._exact

    @exact.setter
    def exact(self, exact):
        """Sets the exact of this SearchDetails.


        :param exact: The exact of this SearchDetails.  # noqa: E501
        :type exact: bool
        """

        self._exact = exact

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

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

# coding: utf-8

"""
    OpenLattice API

    OpenLattice API  # noqa: E501

    The version of the OpenAPI document: 0.0.1
    Contact: <EMAIL>
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from openlattice.configuration import Configuration


class SearchDetails(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 = {
        'search_term': 'str',
        '_property': 'str',
        'exact': 'bool'
    }

    attribute_map = {
        'search_term': 'searchTerm',
        '_property': 'property',
        'exact': 'exact'
    }

    def __init__(self, search_term=None, _property=None, exact=None, local_vars_configuration=None):  # noqa: E501
        """SearchDetails - 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._search_term = None
        self.__property = None
        self._exact = None
        self.discriminator = None

        if search_term is not None:
            self.search_term = search_term
        if _property is not None:
            self._property = _property
        if exact is not None:
            self.exact = exact

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


        :return: The search_term of this SearchDetails.  # noqa: E501
        :rtype: str
        """
        return self._search_term

    @search_term.setter
    def search_term(self, search_term):
        """Sets the search_term of this SearchDetails.


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

        self._search_term = search_term

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


        :return: The _property of this SearchDetails.  # noqa: E501
        :rtype: str
        """
        return self.__property

    @_property.setter
    def _property(self, _property):
        """Sets the _property of this SearchDetails.


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

        self.__property = _property

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


        :return: The exact of this SearchDetails.  # noqa: E501
        :rtype: bool
        """
        return self._exact

    @exact.setter
    def exact(self, exact):
        """Sets the exact of this SearchDetails.


        :param exact: The exact of this SearchDetails.  # noqa: E501
        :type exact: bool
        """

        self._exact = exact

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

        return self.to_dict() != other.to_dict()
# coding: utf-8 OpenLattice API      OpenLattice API  # noqa: E501      The version of the OpenAPI document: 0.0.1     Contact: <EMAIL>     Generated by: https://openapi-generator.tech # noqa: F401 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. # noqa: E501 SearchDetails - a model defined in OpenAPI # noqa: E501 Gets the search_term of this SearchDetails.  # noqa: E501           :return: The search_term of this SearchDetails.  # noqa: E501         :rtype: str Sets the search_term of this SearchDetails.           :param search_term: The search_term of this SearchDetails.  # noqa: E501         :type search_term: str Gets the _property of this SearchDetails.  # noqa: E501           :return: The _property of this SearchDetails.  # noqa: E501         :rtype: str Sets the _property of this SearchDetails.           :param _property: The _property of this SearchDetails.  # noqa: E501         :type _property: str Gets the exact of this SearchDetails.  # noqa: E501           :return: The exact of this SearchDetails.  # noqa: E501         :rtype: bool Sets the exact of this SearchDetails.           :param exact: The exact of this SearchDetails.  # noqa: E501         :type exact: bool 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