patchnotes_controller.py done

This commit is contained in:
2025-03-31 16:06:00 +02:00
parent ace005248d
commit a13081cd71
7 changed files with 81 additions and 87 deletions
+18 -18
View File
@@ -12,7 +12,7 @@ class PatchNotes(Model):
Do not edit the class manually.
"""
def __init__(self, patch_id=None, title=None, changes=None, _date=None): # noqa: E501
def __init__(self, patch_id=None, title=None, changes=None, patch_date=None): # noqa: E501
"""PatchNotes - a model defined in OpenAPI
:param patch_id: The patch_id of this PatchNotes. # noqa: E501
@@ -21,27 +21,27 @@ class PatchNotes(Model):
: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
:param patch_date: The patch_date of this PatchNotes. # noqa: E501
:type patch_date: str
"""
self.openapi_types = {
'patch_id': str,
'title': str,
'changes': str,
'_date': str
'patch_date': str
}
self.attribute_map = {
'patch_id': 'patchID',
'title': 'title',
'changes': 'changes',
'_date': 'date'
'patch_date': 'patch_date'
}
self._patch_id = patch_id
self._title = title
self._changes = changes
self.__date = _date
self._patch_date = patch_date
@classmethod
def from_dict(cls, dikt) -> 'PatchNotes':
@@ -122,24 +122,24 @@ class PatchNotes(Model):
self._changes = changes
@property
def _date(self) -> str:
"""Gets the _date of this PatchNotes.
def patch_date(self) -> str:
"""Gets the patch_date of this PatchNotes.
:return: The _date of this PatchNotes.
:return: The patch_date of this PatchNotes.
:rtype: str
"""
return self.__date
return self._patch_date
@_date.setter
def _date(self, _date: str):
"""Sets the _date of this PatchNotes.
@patch_date.setter
def patch_date(self, patch_date: str):
"""Sets the patch_date of this PatchNotes.
:param _date: The _date of this PatchNotes.
:type _date: str
:param patch_date: The patch_date of this PatchNotes.
:type patch_date: str
"""
if _date is None:
raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501
if patch_date is None:
raise ValueError("Invalid value for `patch_date`, must not be `None`") # noqa: E501
self.__date = _date
self._patch_date = patch_date