from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model import Model from openapi_server import util class PatchNotesInput(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually. """ def __init__(self, title=None, changes=None, version=None, patch_date=None, project=None): # noqa: E501 """PatchNotesInput - a model defined in OpenAPI :param title: The title of this PatchNotesInput. # noqa: E501 :type title: str :param changes: The changes of this PatchNotesInput. # noqa: E501 :type changes: str :param version: The version of this PatchNotesInput. # noqa: E501 :type version: str :param patch_date: The patch_date of this PatchNotesInput. # noqa: E501 :type patch_date: date :param project: The project of this PatchNotesInput. # noqa: E501 :type project: str """ self.openapi_types = { 'title': str, 'changes': str, 'version': str, 'patch_date': date, 'project': str } self.attribute_map = { 'title': 'title', 'changes': 'changes', 'version': 'version', 'patch_date': 'patch_date', 'project': 'project' } self._title = title self._changes = changes self._version = version self._patch_date = patch_date self._project = project @classmethod def from_dict(cls, dikt) -> 'PatchNotesInput': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The patch_notes_input of this PatchNotesInput. # noqa: E501 :rtype: PatchNotesInput """ return util.deserialize_model(dikt, cls) @property def title(self) -> str: """Gets the title of this PatchNotesInput. :return: The title of this PatchNotesInput. :rtype: str """ return self._title @title.setter def title(self, title: str): """Sets the title of this PatchNotesInput. :param title: The title of this PatchNotesInput. :type title: str """ if title is None: raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 self._title = title @property def changes(self) -> str: """Gets the changes of this PatchNotesInput. :return: The changes of this PatchNotesInput. :rtype: str """ return self._changes @changes.setter def changes(self, changes: str): """Sets the changes of this PatchNotesInput. :param changes: The changes of this PatchNotesInput. :type changes: str """ if changes is None: raise ValueError("Invalid value for `changes`, must not be `None`") # noqa: E501 self._changes = changes @property def version(self) -> str: """Gets the version of this PatchNotesInput. :return: The version of this PatchNotesInput. :rtype: str """ return self._version @version.setter def version(self, version: str): """Sets the version of this PatchNotesInput. :param version: The version of this PatchNotesInput. :type version: str """ if version is None: raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version @property def patch_date(self) -> date: """Gets the patch_date of this PatchNotesInput. :return: The patch_date of this PatchNotesInput. :rtype: date """ return self._patch_date @patch_date.setter def patch_date(self, patch_date: date): """Sets the patch_date of this PatchNotesInput. :param patch_date: The patch_date of this PatchNotesInput. :type patch_date: date """ if patch_date is None: raise ValueError("Invalid value for `patch_date`, must not be `None`") # noqa: E501 self._patch_date = patch_date @property def project(self) -> str: """Gets the project of this PatchNotesInput. :return: The project of this PatchNotesInput. :rtype: str """ return self._project @project.setter def project(self, project: str): """Sets the project of this PatchNotesInput. :param project: The project of this PatchNotesInput. :type project: str """ if project is None: raise ValueError("Invalid value for `project`, must not be `None`") # noqa: E501 self._project = project