.yaml changes to add project
controller changes to add project in creation / updates
This commit is contained in:
@@ -12,7 +12,7 @@ class PatchNotes(Model):
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, patch_id=None, title=None, changes=None, version=None, patch_date=None): # noqa: E501
|
||||
def __init__(self, patch_id=None, title=None, changes=None, version=None, patch_date=None, project=None): # noqa: E501
|
||||
"""PatchNotes - a model defined in OpenAPI
|
||||
|
||||
:param patch_id: The patch_id of this PatchNotes. # noqa: E501
|
||||
@@ -25,13 +25,16 @@ class PatchNotes(Model):
|
||||
:type version: str
|
||||
:param patch_date: The patch_date of this PatchNotes. # noqa: E501
|
||||
:type patch_date: date
|
||||
:param project: The project of this PatchNotes. # noqa: E501
|
||||
:type project: str
|
||||
"""
|
||||
self.openapi_types = {
|
||||
'patch_id': str,
|
||||
'title': str,
|
||||
'changes': str,
|
||||
'version': str,
|
||||
'patch_date': date
|
||||
'patch_date': date,
|
||||
'project': str
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
@@ -39,7 +42,8 @@ class PatchNotes(Model):
|
||||
'title': 'title',
|
||||
'changes': 'changes',
|
||||
'version': 'version',
|
||||
'patch_date': 'patch_date'
|
||||
'patch_date': 'patch_date',
|
||||
'project': 'project'
|
||||
}
|
||||
|
||||
self._patch_id = patch_id
|
||||
@@ -47,6 +51,7 @@ class PatchNotes(Model):
|
||||
self._changes = changes
|
||||
self._version = version
|
||||
self._patch_date = patch_date
|
||||
self._project = project
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, dikt) -> 'PatchNotes':
|
||||
@@ -173,3 +178,26 @@ class PatchNotes(Model):
|
||||
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 PatchNotes.
|
||||
|
||||
|
||||
:return: The project of this PatchNotes.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._project
|
||||
|
||||
@project.setter
|
||||
def project(self, project: str):
|
||||
"""Sets the project of this PatchNotes.
|
||||
|
||||
|
||||
:param project: The project of this PatchNotes.
|
||||
:type project: str
|
||||
"""
|
||||
if project is None:
|
||||
raise ValueError("Invalid value for `project`, must not be `None`") # noqa: E501
|
||||
|
||||
self._project = project
|
||||
|
||||
@@ -12,7 +12,7 @@ class PatchNotesInput(Model):
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
def __init__(self, title=None, changes=None, version=None, patch_date=None): # noqa: E501
|
||||
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
|
||||
@@ -23,25 +23,30 @@ class PatchNotesInput(Model):
|
||||
: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
|
||||
'patch_date': date,
|
||||
'project': str
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
'title': 'title',
|
||||
'changes': 'changes',
|
||||
'version': 'version',
|
||||
'patch_date': 'patch_date'
|
||||
'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':
|
||||
@@ -145,3 +150,26 @@ class PatchNotesInput(Model):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user