Announcement_Service/gen/openapi_server/models/patch_notes.py

140 lines
3.3 KiB
Python

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 PatchNotes(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
"""
def __init__(self, patch_id=None, title=None, changes=None, _date=None): # noqa: E501
"""PatchNotes - a model defined in OpenAPI
:param patch_id: The patch_id of this PatchNotes. # noqa: E501
:type patch_id: str
:param title: The title of this PatchNotes. # noqa: E501
:type title: str
:param changes: The changes of this PatchNotes. # noqa: E501
:type changes: str
:param _date: The _date of this PatchNotes. # noqa: E501
:type _date: str
"""
self.openapi_types = {
'patch_id': str,
'title': str,
'changes': str,
'_date': str
}
self.attribute_map = {
'patch_id': 'patchID',
'title': 'title',
'changes': 'changes',
'_date': 'date'
}
self._patch_id = patch_id
self._title = title
self._changes = changes
self.__date = _date
@classmethod
def from_dict(cls, dikt) -> 'PatchNotes':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The patch_notes of this PatchNotes. # noqa: E501
:rtype: PatchNotes
"""
return util.deserialize_model(dikt, cls)
@property
def patch_id(self) -> str:
"""Gets the patch_id of this PatchNotes.
:return: The patch_id of this PatchNotes.
:rtype: str
"""
return self._patch_id
@patch_id.setter
def patch_id(self, patch_id: str):
"""Sets the patch_id of this PatchNotes.
:param patch_id: The patch_id of this PatchNotes.
:type patch_id: str
"""
self._patch_id = patch_id
@property
def title(self) -> str:
"""Gets the title of this PatchNotes.
:return: The title of this PatchNotes.
:rtype: str
"""
return self._title
@title.setter
def title(self, title: str):
"""Sets the title of this PatchNotes.
:param title: The title of this PatchNotes.
:type title: str
"""
self._title = title
@property
def changes(self) -> str:
"""Gets the changes of this PatchNotes.
:return: The changes of this PatchNotes.
:rtype: str
"""
return self._changes
@changes.setter
def changes(self, changes: str):
"""Sets the changes of this PatchNotes.
:param changes: The changes of this PatchNotes.
:type changes: str
"""
self._changes = changes
@property
def _date(self) -> str:
"""Gets the _date of this PatchNotes.
:return: The _date of this PatchNotes.
:rtype: str
"""
return self.__date
@_date.setter
def _date(self, _date: str):
"""Sets the _date of this PatchNotes.
:param _date: The _date of this PatchNotes.
:type _date: str
"""
self.__date = _date