diff options
Diffstat (limited to 'python/fatcat_client/models/work_entity.py')
-rw-r--r-- | python/fatcat_client/models/work_entity.py | 62 |
1 files changed, 27 insertions, 35 deletions
diff --git a/python/fatcat_client/models/work_entity.py b/python/fatcat_client/models/work_entity.py index f49ccadf..13b40de5 100644 --- a/python/fatcat_client/models/work_entity.py +++ b/python/fatcat_client/models/work_entity.py @@ -31,8 +31,8 @@ class WorkEntity(object): and the value is json key in definition. """ swagger_types = { + 'edit_extra': 'object', 'extra': 'object', - 'editgroup_id': 'str', 'redirect': 'str', 'revision': 'str', 'ident': 'str', @@ -40,29 +40,29 @@ class WorkEntity(object): } attribute_map = { + 'edit_extra': 'edit_extra', 'extra': 'extra', - 'editgroup_id': 'editgroup_id', 'redirect': 'redirect', 'revision': 'revision', 'ident': 'ident', 'state': 'state' } - def __init__(self, extra=None, editgroup_id=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 + def __init__(self, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 """WorkEntity - a model defined in Swagger""" # noqa: E501 + self._edit_extra = None self._extra = None - self._editgroup_id = None self._redirect = None self._revision = None self._ident = None self._state = None self.discriminator = None + if edit_extra is not None: + self.edit_extra = edit_extra if extra is not None: self.extra = extra - if editgroup_id is not None: - self.editgroup_id = editgroup_id if redirect is not None: self.redirect = redirect if revision is not None: @@ -73,54 +73,46 @@ class WorkEntity(object): self.state = state @property - def extra(self): - """Gets the extra of this WorkEntity. # noqa: E501 + def edit_extra(self): + """Gets the edit_extra of this WorkEntity. # noqa: E501 - :return: The extra of this WorkEntity. # noqa: E501 + :return: The edit_extra of this WorkEntity. # noqa: E501 :rtype: object """ - return self._extra + return self._edit_extra - @extra.setter - def extra(self, extra): - """Sets the extra of this WorkEntity. + @edit_extra.setter + def edit_extra(self, edit_extra): + """Sets the edit_extra of this WorkEntity. - :param extra: The extra of this WorkEntity. # noqa: E501 + :param edit_extra: The edit_extra of this WorkEntity. # noqa: E501 :type: object """ - self._extra = extra + self._edit_extra = edit_extra @property - def editgroup_id(self): - """Gets the editgroup_id of this WorkEntity. # noqa: E501 + def extra(self): + """Gets the extra of this WorkEntity. # noqa: E501 - base32-encoded unique identifier # noqa: E501 - :return: The editgroup_id of this WorkEntity. # noqa: E501 - :rtype: str + :return: The extra of this WorkEntity. # noqa: E501 + :rtype: object """ - return self._editgroup_id + return self._extra - @editgroup_id.setter - def editgroup_id(self, editgroup_id): - """Sets the editgroup_id of this WorkEntity. + @extra.setter + def extra(self, extra): + """Sets the extra of this WorkEntity. - base32-encoded unique identifier # noqa: E501 - :param editgroup_id: The editgroup_id of this WorkEntity. # noqa: E501 - :type: str + :param extra: The extra of this WorkEntity. # noqa: E501 + :type: object """ - if editgroup_id is not None and len(editgroup_id) > 26: - raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501 - if editgroup_id is not None and len(editgroup_id) < 26: - raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501 - if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501 - raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501 - - self._editgroup_id = editgroup_id + + self._extra = extra @property def redirect(self): |