# coding: utf-8

"""
    Corpus Processing Service (CPS) API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 2.0.0
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from deepsearch.cps.apis.public.configuration import Configuration


class DataCatalogue(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 = {
        'category_schemas': 'list[DataCatalogCategorySchema]',
        'collections': 'list[DataCatalogCollection]',
        'collections_data_flows': 'list[DataCatalogDataFlow]',
        'copy_of': 'str',
        'created_at': 'float',
        'created_by': 'str',
        'dc_key': 'str',
        'description': 'str',
        'name': 'str',
        'proj_key': 'str',
        'provenance_logs': 'list[DataCatalogProvenanceLog]',
        'public': 'bool',
        'topology': 'DataCatalogTopology'
    }

    attribute_map = {
        'category_schemas': 'category_schemas',
        'collections': 'collections',
        'collections_data_flows': 'collections_data_flows',
        'copy_of': 'copy_of',
        'created_at': 'created_at',
        'created_by': 'created_by',
        'dc_key': 'dc_key',
        'description': 'description',
        'name': 'name',
        'proj_key': 'proj_key',
        'provenance_logs': 'provenance_logs',
        'public': 'public',
        'topology': 'topology'
    }

    def __init__(self, category_schemas=None, collections=None, collections_data_flows=None, copy_of=None, created_at=None, created_by=None, dc_key=None, description=None, name=None, proj_key=None, provenance_logs=None, public=None, topology=None, local_vars_configuration=None):  # noqa: E501
        """DataCatalogue - 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._category_schemas = None
        self._collections = None
        self._collections_data_flows = None
        self._copy_of = None
        self._created_at = None
        self._created_by = None
        self._dc_key = None
        self._description = None
        self._name = None
        self._proj_key = None
        self._provenance_logs = None
        self._public = None
        self._topology = None
        self.discriminator = None

        self.category_schemas = category_schemas
        if collections is not None:
            self.collections = collections
        self.collections_data_flows = collections_data_flows
        self.copy_of = copy_of
        self.created_at = created_at
        self.created_by = created_by
        self.dc_key = dc_key
        self.description = description
        self.name = name
        self.proj_key = proj_key
        self.provenance_logs = provenance_logs
        self.public = public
        self.topology = topology

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


        :return: The category_schemas of this DataCatalogue.  # noqa: E501
        :rtype: list[DataCatalogCategorySchema]
        """
        return self._category_schemas

    @category_schemas.setter
    def category_schemas(self, category_schemas):
        """Sets the category_schemas of this DataCatalogue.


        :param category_schemas: The category_schemas of this DataCatalogue.  # noqa: E501
        :type: list[DataCatalogCategorySchema]
        """
        if self.local_vars_configuration.client_side_validation and category_schemas is None:  # noqa: E501
            raise ValueError("Invalid value for `category_schemas`, must not be `None`")  # noqa: E501

        self._category_schemas = category_schemas

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


        :return: The collections of this DataCatalogue.  # noqa: E501
        :rtype: list[DataCatalogCollection]
        """
        return self._collections

    @collections.setter
    def collections(self, collections):
        """Sets the collections of this DataCatalogue.


        :param collections: The collections of this DataCatalogue.  # noqa: E501
        :type: list[DataCatalogCollection]
        """

        self._collections = collections

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


        :return: The collections_data_flows of this DataCatalogue.  # noqa: E501
        :rtype: list[DataCatalogDataFlow]
        """
        return self._collections_data_flows

    @collections_data_flows.setter
    def collections_data_flows(self, collections_data_flows):
        """Sets the collections_data_flows of this DataCatalogue.


        :param collections_data_flows: The collections_data_flows of this DataCatalogue.  # noqa: E501
        :type: list[DataCatalogDataFlow]
        """
        if self.local_vars_configuration.client_side_validation and collections_data_flows is None:  # noqa: E501
            raise ValueError("Invalid value for `collections_data_flows`, must not be `None`")  # noqa: E501

        self._collections_data_flows = collections_data_flows

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


        :return: The copy_of of this DataCatalogue.  # noqa: E501
        :rtype: str
        """
        return self._copy_of

    @copy_of.setter
    def copy_of(self, copy_of):
        """Sets the copy_of of this DataCatalogue.


        :param copy_of: The copy_of of this DataCatalogue.  # noqa: E501
        :type: str
        """

        self._copy_of = copy_of

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


        :return: The created_at of this DataCatalogue.  # noqa: E501
        :rtype: float
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this DataCatalogue.


        :param created_at: The created_at of this DataCatalogue.  # noqa: E501
        :type: float
        """
        if self.local_vars_configuration.client_side_validation and created_at is None:  # noqa: E501
            raise ValueError("Invalid value for `created_at`, must not be `None`")  # noqa: E501

        self._created_at = created_at

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


        :return: The created_by of this DataCatalogue.  # noqa: E501
        :rtype: str
        """
        return self._created_by

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


        :param created_by: The created_by of this DataCatalogue.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and created_by is None:  # noqa: E501
            raise ValueError("Invalid value for `created_by`, must not be `None`")  # noqa: E501

        self._created_by = created_by

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


        :return: The dc_key of this DataCatalogue.  # noqa: E501
        :rtype: str
        """
        return self._dc_key

    @dc_key.setter
    def dc_key(self, dc_key):
        """Sets the dc_key of this DataCatalogue.


        :param dc_key: The dc_key of this DataCatalogue.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and dc_key is None:  # noqa: E501
            raise ValueError("Invalid value for `dc_key`, must not be `None`")  # noqa: E501

        self._dc_key = dc_key

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


        :return: The description of this DataCatalogue.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this DataCatalogue.


        :param description: The description of this DataCatalogue.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The name of this DataCatalogue.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this DataCatalogue.


        :param name: The name of this DataCatalogue.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and name is None:  # noqa: E501
            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501

        self._name = name

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


        :return: The proj_key of this DataCatalogue.  # noqa: E501
        :rtype: str
        """
        return self._proj_key

    @proj_key.setter
    def proj_key(self, proj_key):
        """Sets the proj_key of this DataCatalogue.


        :param proj_key: The proj_key of this DataCatalogue.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and proj_key is None:  # noqa: E501
            raise ValueError("Invalid value for `proj_key`, must not be `None`")  # noqa: E501

        self._proj_key = proj_key

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


        :return: The provenance_logs of this DataCatalogue.  # noqa: E501
        :rtype: list[DataCatalogProvenanceLog]
        """
        return self._provenance_logs

    @provenance_logs.setter
    def provenance_logs(self, provenance_logs):
        """Sets the provenance_logs of this DataCatalogue.


        :param provenance_logs: The provenance_logs of this DataCatalogue.  # noqa: E501
        :type: list[DataCatalogProvenanceLog]
        """
        if self.local_vars_configuration.client_side_validation and provenance_logs is None:  # noqa: E501
            raise ValueError("Invalid value for `provenance_logs`, must not be `None`")  # noqa: E501

        self._provenance_logs = provenance_logs

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


        :return: The public of this DataCatalogue.  # noqa: E501
        :rtype: bool
        """
        return self._public

    @public.setter
    def public(self, public):
        """Sets the public of this DataCatalogue.


        :param public: The public of this DataCatalogue.  # noqa: E501
        :type: bool
        """
        if self.local_vars_configuration.client_side_validation and public is None:  # noqa: E501
            raise ValueError("Invalid value for `public`, must not be `None`")  # noqa: E501

        self._public = public

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


        :return: The topology of this DataCatalogue.  # noqa: E501
        :rtype: DataCatalogTopology
        """
        return self._topology

    @topology.setter
    def topology(self, topology):
        """Sets the topology of this DataCatalogue.


        :param topology: The topology of this DataCatalogue.  # noqa: E501
        :type: DataCatalogTopology
        """
        if self.local_vars_configuration.client_side_validation and topology is None:  # noqa: E501
            raise ValueError("Invalid value for `topology`, must not be `None`")  # noqa: E501

        self._topology = topology

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

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