Announcement_Service/gen/openapi_server/models/patch_notes.py

146 lines
3.7 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, patch_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 patch_date: The patch_date of this PatchNotes. # noqa: E501
:type patch_date: str
"""
self.openapi_types = {
'patch_id': str,
'title': str,
'changes': str,
'patch_date': str
}
self.attribute_map = {
'patch_id': 'patchID',
'title': 'title',
'changes': 'changes',
'patch_date': 'patch_date'
}
self._patch_id = patch_id
self._title = title
self._changes = changes
self._patch_date = patch_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
"""
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 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
"""
if changes is None:
raise ValueError("Invalid value for `changes`, must not be `None`") # noqa: E501
self._changes = changes
@property
def patch_date(self) -> str:
"""Gets the patch_date of this PatchNotes.
:return: The patch_date of this PatchNotes.
:rtype: str
"""
return self._patch_date
@patch_date.setter
def patch_date(self, patch_date: str):
"""Sets the patch_date of this PatchNotes.
:param patch_date: The patch_date of this PatchNotes.
:type patch_date: str
"""
if patch_date is None:
raise ValueError("Invalid value for `patch_date`, must not be `None`") # noqa: E501
self._patch_date = patch_date