# coding: utf-8

"""
    Knetik Platform API Documentation latest 

    This is the spec for the Knetik API.  Use this in conjunction with the documentation found at https://knetikcloud.com.

    OpenAPI spec version: latest 
    Contact: support@knetik.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class DateOperationResource(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 = {
        'args': 'list[ExpressionResource]',
        'definition': 'str',
        'op': 'str',
        'return_type': 'str',
        'supported_operators': 'list[OperationDefinitionResource]',
        'type': 'str'
    }

    attribute_map = {
        'args': 'args',
        'definition': 'definition',
        'op': 'op',
        'return_type': 'return_type',
        'supported_operators': 'supported_operators',
        'type': 'type'
    }

    def __init__(self, args=None, definition=None, op=None, return_type=None, supported_operators=None, type=None):
        """
        DateOperationResource - a model defined in Swagger
        """

        self._args = None
        self._definition = None
        self._op = None
        self._return_type = None
        self._supported_operators = None
        self._type = None
        self.discriminator = None

        self.args = args
        if definition is not None:
          self.definition = definition
        self.op = op
        if return_type is not None:
          self.return_type = return_type
        if supported_operators is not None:
          self.supported_operators = supported_operators
        if type is not None:
          self.type = type

    @property
    def args(self):
        """
        Gets the args of this DateOperationResource.
        The arguments the operator apply to. See notes for details.

        :return: The args of this DateOperationResource.
        :rtype: list[ExpressionResource]
        """
        return self._args

    @args.setter
    def args(self, args):
        """
        Sets the args of this DateOperationResource.
        The arguments the operator apply to. See notes for details.

        :param args: The args of this DateOperationResource.
        :type: list[ExpressionResource]
        """
        if args is None:
            raise ValueError("Invalid value for `args`, must not be `None`")

        self._args = args

    @property
    def definition(self):
        """
        Gets the definition of this DateOperationResource.

        :return: The definition of this DateOperationResource.
        :rtype: str
        """
        return self._definition

    @definition.setter
    def definition(self, definition):
        """
        Sets the definition of this DateOperationResource.

        :param definition: The definition of this DateOperationResource.
        :type: str
        """

        self._definition = definition

    @property
    def op(self):
        """
        Gets the op of this DateOperationResource.
        The operator to be used in this predicate. See notes for details.

        :return: The op of this DateOperationResource.
        :rtype: str
        """
        return self._op

    @op.setter
    def op(self, op):
        """
        Sets the op of this DateOperationResource.
        The operator to be used in this predicate. See notes for details.

        :param op: The op of this DateOperationResource.
        :type: str
        """
        if op is None:
            raise ValueError("Invalid value for `op`, must not be `None`")

        self._op = op

    @property
    def return_type(self):
        """
        Gets the return_type of this DateOperationResource.

        :return: The return_type of this DateOperationResource.
        :rtype: str
        """
        return self._return_type

    @return_type.setter
    def return_type(self, return_type):
        """
        Sets the return_type of this DateOperationResource.

        :param return_type: The return_type of this DateOperationResource.
        :type: str
        """

        self._return_type = return_type

    @property
    def supported_operators(self):
        """
        Gets the supported_operators of this DateOperationResource.
        The operators supported by this expression

        :return: The supported_operators of this DateOperationResource.
        :rtype: list[OperationDefinitionResource]
        """
        return self._supported_operators

    @supported_operators.setter
    def supported_operators(self, supported_operators):
        """
        Sets the supported_operators of this DateOperationResource.
        The operators supported by this expression

        :param supported_operators: The supported_operators of this DateOperationResource.
        :type: list[OperationDefinitionResource]
        """

        self._supported_operators = supported_operators

    @property
    def type(self):
        """
        Gets the type of this DateOperationResource.

        :return: The type of this DateOperationResource.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this DateOperationResource.

        :param type: The type of this DateOperationResource.
        :type: str
        """

        self._type = type

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

        for attr, _ in 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 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, DateOperationResource):
            return False

        return self.__dict__ == other.__dict__

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