diff options
Diffstat (limited to 'python/fatcat_client/models/container_entity.py')
-rw-r--r-- | python/fatcat_client/models/container_entity.py | 62 |
1 files changed, 27 insertions, 35 deletions
diff --git a/python/fatcat_client/models/container_entity.py b/python/fatcat_client/models/container_entity.py index 4ca2653e..5fc48a7e 100644 --- a/python/fatcat_client/models/container_entity.py +++ b/python/fatcat_client/models/container_entity.py @@ -37,8 +37,8 @@ class ContainerEntity(object): 'issnl': 'str', 'publisher': 'str', 'name': 'str', + 'edit_extra': 'object', 'extra': 'object', - 'editgroup_id': 'str', 'redirect': 'str', 'revision': 'str', 'ident': 'str', @@ -52,15 +52,15 @@ class ContainerEntity(object): 'issnl': 'issnl', 'publisher': 'publisher', 'name': 'name', + 'edit_extra': 'edit_extra', 'extra': 'extra', - 'editgroup_id': 'editgroup_id', 'redirect': 'redirect', 'revision': 'revision', 'ident': 'ident', 'state': 'state' } - def __init__(self, coden=None, abbrev=None, wikidata_qid=None, issnl=None, publisher=None, name=None, extra=None, editgroup_id=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 + def __init__(self, coden=None, abbrev=None, wikidata_qid=None, issnl=None, publisher=None, name=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 """ContainerEntity - a model defined in Swagger""" # noqa: E501 self._coden = None @@ -69,8 +69,8 @@ class ContainerEntity(object): self._issnl = None self._publisher = None self._name = None + self._edit_extra = None self._extra = None - self._editgroup_id = None self._redirect = None self._revision = None self._ident = None @@ -88,10 +88,10 @@ class ContainerEntity(object): if publisher is not None: self.publisher = publisher self.name = name + 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: @@ -236,54 +236,46 @@ class ContainerEntity(object): self._name = name @property - def extra(self): - """Gets the extra of this ContainerEntity. # noqa: E501 + def edit_extra(self): + """Gets the edit_extra of this ContainerEntity. # noqa: E501 - :return: The extra of this ContainerEntity. # noqa: E501 + :return: The edit_extra of this ContainerEntity. # noqa: E501 :rtype: object """ - return self._extra + return self._edit_extra - @extra.setter - def extra(self, extra): - """Sets the extra of this ContainerEntity. + @edit_extra.setter + def edit_extra(self, edit_extra): + """Sets the edit_extra of this ContainerEntity. - :param extra: The extra of this ContainerEntity. # noqa: E501 + :param edit_extra: The edit_extra of this ContainerEntity. # noqa: E501 :type: object """ - self._extra = extra + self._edit_extra = edit_extra @property - def editgroup_id(self): - """Gets the editgroup_id of this ContainerEntity. # noqa: E501 + def extra(self): + """Gets the extra of this ContainerEntity. # noqa: E501 - base32-encoded unique identifier # noqa: E501 - :return: The editgroup_id of this ContainerEntity. # noqa: E501 - :rtype: str + :return: The extra of this ContainerEntity. # 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 ContainerEntity. + @extra.setter + def extra(self, extra): + """Sets the extra of this ContainerEntity. - base32-encoded unique identifier # noqa: E501 - :param editgroup_id: The editgroup_id of this ContainerEntity. # noqa: E501 - :type: str + :param extra: The extra of this ContainerEntity. # 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): |