from datetime import date, datetime  # noqa: F401
from typing import Dict, List  # noqa: F401

from timestep.api.openai.v1 import util
from timestep.api.openai.v1.models.assistant_tools_file_search_file_search import \
    AssistantToolsFileSearchFileSearch  # noqa: E501
from timestep.api.openai.v1.models.base_model import Model


class AssistantToolsFileSearch(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, type=None, file_search=None):  # noqa: E501
        """AssistantToolsFileSearch - a model defined in OpenAPI

        :param type: The type of this AssistantToolsFileSearch.  # noqa: E501
        :type type: str
        :param file_search: The file_search of this AssistantToolsFileSearch.  # noqa: E501
        :type file_search: AssistantToolsFileSearchFileSearch
        """
        self.openapi_types = {
            'type': str,
            'file_search': AssistantToolsFileSearchFileSearch
        }

        self.attribute_map = {
            'type': 'type',
            'file_search': 'file_search'
        }

        self._type = type
        self._file_search = file_search

    @classmethod
    def from_dict(cls, dikt) -> 'AssistantToolsFileSearch':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The AssistantToolsFileSearch of this AssistantToolsFileSearch.  # noqa: E501
        :rtype: AssistantToolsFileSearch
        """
        return util.deserialize_model(dikt, cls)

    @property
    def type(self) -> str:
        """Gets the type of this AssistantToolsFileSearch.

        The type of tool being defined: `file_search`  # noqa: E501

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

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

        The type of tool being defined: `file_search`  # noqa: E501

        :param type: The type of this AssistantToolsFileSearch.
        :type type: str
        """
        allowed_values = ["file_search"]  # noqa: E501
        if type not in allowed_values:
            raise ValueError(
                "Invalid value for `type` ({0}), must be one of {1}"
                .format(type, allowed_values)
            )

        self._type = type

    @property
    def file_search(self) -> AssistantToolsFileSearchFileSearch:
        """Gets the file_search of this AssistantToolsFileSearch.


        :return: The file_search of this AssistantToolsFileSearch.
        :rtype: AssistantToolsFileSearchFileSearch
        """
        return self._file_search

    @file_search.setter
    def file_search(self, file_search: AssistantToolsFileSearchFileSearch):
        """Sets the file_search of this AssistantToolsFileSearch.


        :param file_search: The file_search of this AssistantToolsFileSearch.
        :type file_search: AssistantToolsFileSearchFileSearch
        """

        self._file_search = file_search
