174 lines
4.5 KiB
Python
174 lines
4.5 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, version=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 version: The version of this PatchNotes. # noqa: E501
|
|
:type version: 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,
|
|
'version': str,
|
|
'patch_date': str
|
|
}
|
|
|
|
self.attribute_map = {
|
|
'patch_id': 'patchID',
|
|
'title': 'title',
|
|
'changes': 'changes',
|
|
'version': 'version',
|
|
'patch_date': 'patch_date'
|
|
}
|
|
|
|
self._patch_id = patch_id
|
|
self._title = title
|
|
self._changes = changes
|
|
self._version = version
|
|
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 version(self) -> str:
|
|
"""Gets the version of this PatchNotes.
|
|
|
|
|
|
:return: The version of this PatchNotes.
|
|
:rtype: str
|
|
"""
|
|
return self._version
|
|
|
|
@version.setter
|
|
def version(self, version: str):
|
|
"""Sets the version of this PatchNotes.
|
|
|
|
|
|
:param version: The version of this PatchNotes.
|
|
: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) -> 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
|