diff options
Diffstat (limited to 'python/fatcat_client/models')
-rw-r--r-- | python/fatcat_client/models/container_entity.py | 62 | ||||
-rw-r--r-- | python/fatcat_client/models/creator_entity.py | 64 | ||||
-rw-r--r-- | python/fatcat_client/models/file_entity.py | 62 | ||||
-rw-r--r-- | python/fatcat_client/models/release_entity.py | 64 | ||||
-rw-r--r-- | python/fatcat_client/models/work_entity.py | 62 |
5 files changed, 137 insertions, 177 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): diff --git a/python/fatcat_client/models/creator_entity.py b/python/fatcat_client/models/creator_entity.py index de096281..34035f81 100644 --- a/python/fatcat_client/models/creator_entity.py +++ b/python/fatcat_client/models/creator_entity.py @@ -40,8 +40,8 @@ class CreatorEntity(object): 'ident': 'str', 'revision': 'str', 'redirect': 'str', - 'editgroup_id': 'str', - 'extra': 'object' + 'extra': 'object', + 'edit_extra': 'object' } attribute_map = { @@ -54,11 +54,11 @@ class CreatorEntity(object): 'ident': 'ident', 'revision': 'revision', 'redirect': 'redirect', - 'editgroup_id': 'editgroup_id', - 'extra': 'extra' + 'extra': 'extra', + 'edit_extra': 'edit_extra' } - def __init__(self, wikidata_qid=None, orcid=None, surname=None, given_name=None, display_name=None, state=None, ident=None, revision=None, redirect=None, editgroup_id=None, extra=None): # noqa: E501 + def __init__(self, wikidata_qid=None, orcid=None, surname=None, given_name=None, display_name=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501 """CreatorEntity - a model defined in Swagger""" # noqa: E501 self._wikidata_qid = None @@ -70,8 +70,8 @@ class CreatorEntity(object): self._ident = None self._revision = None self._redirect = None - self._editgroup_id = None self._extra = None + self._edit_extra = None self.discriminator = None if wikidata_qid is not None: @@ -91,10 +91,10 @@ class CreatorEntity(object): self.revision = revision if redirect is not None: self.redirect = redirect - if editgroup_id is not None: - self.editgroup_id = editgroup_id if extra is not None: self.extra = extra + if edit_extra is not None: + self.edit_extra = edit_extra @property def wikidata_qid(self): @@ -324,54 +324,46 @@ class CreatorEntity(object): self._redirect = redirect @property - def editgroup_id(self): - """Gets the editgroup_id of this CreatorEntity. # noqa: E501 + def extra(self): + """Gets the extra of this CreatorEntity. # noqa: E501 - base32-encoded unique identifier # noqa: E501 - :return: The editgroup_id of this CreatorEntity. # noqa: E501 - :rtype: str + :return: The extra of this CreatorEntity. # 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 CreatorEntity. + @extra.setter + def extra(self, extra): + """Sets the extra of this CreatorEntity. - base32-encoded unique identifier # noqa: E501 - :param editgroup_id: The editgroup_id of this CreatorEntity. # noqa: E501 - :type: str + :param extra: The extra of this CreatorEntity. # 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 extra(self): - """Gets the extra of this CreatorEntity. # noqa: E501 + def edit_extra(self): + """Gets the edit_extra of this CreatorEntity. # noqa: E501 - :return: The extra of this CreatorEntity. # noqa: E501 + :return: The edit_extra of this CreatorEntity. # noqa: E501 :rtype: object """ - return self._extra + return self._edit_extra - @extra.setter - def extra(self, extra): - """Sets the extra of this CreatorEntity. + @edit_extra.setter + def edit_extra(self, edit_extra): + """Sets the edit_extra of this CreatorEntity. - :param extra: The extra of this CreatorEntity. # noqa: E501 + :param edit_extra: The edit_extra of this CreatorEntity. # noqa: E501 :type: object """ - self._extra = extra + self._edit_extra = edit_extra def to_dict(self): """Returns the model properties as a dict""" diff --git a/python/fatcat_client/models/file_entity.py b/python/fatcat_client/models/file_entity.py index 475b914b..40073f62 100644 --- a/python/fatcat_client/models/file_entity.py +++ b/python/fatcat_client/models/file_entity.py @@ -40,8 +40,8 @@ class FileEntity(object): 'md5': 'str', 'sha1': 'str', 'size': 'int', + 'edit_extra': 'object', 'extra': 'object', - 'editgroup_id': 'str', 'redirect': 'str', 'revision': 'str', 'ident': 'str', @@ -56,15 +56,15 @@ class FileEntity(object): 'md5': 'md5', 'sha1': 'sha1', 'size': 'size', + 'edit_extra': 'edit_extra', 'extra': 'extra', - 'editgroup_id': 'editgroup_id', 'redirect': 'redirect', 'revision': 'revision', 'ident': 'ident', 'state': 'state' } - def __init__(self, releases=None, mimetype=None, urls=None, sha256=None, md5=None, sha1=None, size=None, extra=None, editgroup_id=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 + def __init__(self, releases=None, mimetype=None, urls=None, sha256=None, md5=None, sha1=None, size=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 """FileEntity - a model defined in Swagger""" # noqa: E501 self._releases = None @@ -74,8 +74,8 @@ class FileEntity(object): self._md5 = None self._sha1 = None self._size = None + self._edit_extra = None self._extra = None - self._editgroup_id = None self._redirect = None self._revision = None self._ident = None @@ -96,10 +96,10 @@ class FileEntity(object): self.sha1 = sha1 if size is not None: self.size = size + 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: @@ -257,54 +257,46 @@ class FileEntity(object): self._size = size @property - def extra(self): - """Gets the extra of this FileEntity. # noqa: E501 + def edit_extra(self): + """Gets the edit_extra of this FileEntity. # noqa: E501 - :return: The extra of this FileEntity. # noqa: E501 + :return: The edit_extra of this FileEntity. # noqa: E501 :rtype: object """ - return self._extra + return self._edit_extra - @extra.setter - def extra(self, extra): - """Sets the extra of this FileEntity. + @edit_extra.setter + def edit_extra(self, edit_extra): + """Sets the edit_extra of this FileEntity. - :param extra: The extra of this FileEntity. # noqa: E501 + :param edit_extra: The edit_extra of this FileEntity. # noqa: E501 :type: object """ - self._extra = extra + self._edit_extra = edit_extra @property - def editgroup_id(self): - """Gets the editgroup_id of this FileEntity. # noqa: E501 + def extra(self): + """Gets the extra of this FileEntity. # noqa: E501 - base32-encoded unique identifier # noqa: E501 - :return: The editgroup_id of this FileEntity. # noqa: E501 - :rtype: str + :return: The extra of this FileEntity. # 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 FileEntity. + @extra.setter + def extra(self, extra): + """Sets the extra of this FileEntity. - base32-encoded unique identifier # noqa: E501 - :param editgroup_id: The editgroup_id of this FileEntity. # noqa: E501 - :type: str + :param extra: The extra of this FileEntity. # 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): diff --git a/python/fatcat_client/models/release_entity.py b/python/fatcat_client/models/release_entity.py index 79e2c64f..a35ced5e 100644 --- a/python/fatcat_client/models/release_entity.py +++ b/python/fatcat_client/models/release_entity.py @@ -63,8 +63,8 @@ class ReleaseEntity(object): 'ident': 'str', 'revision': 'str', 'redirect': 'str', - 'editgroup_id': 'str', - 'extra': 'object' + 'extra': 'object', + 'edit_extra': 'object' } attribute_map = { @@ -94,11 +94,11 @@ class ReleaseEntity(object): 'ident': 'ident', 'revision': 'revision', 'redirect': 'redirect', - 'editgroup_id': 'editgroup_id', - 'extra': 'extra' + 'extra': 'extra', + 'edit_extra': 'edit_extra' } - def __init__(self, abstracts=None, refs=None, contribs=None, language=None, publisher=None, pages=None, issue=None, volume=None, wikidata_qid=None, pmcid=None, pmid=None, core_id=None, isbn13=None, doi=None, release_date=None, release_status=None, release_type=None, container_id=None, files=None, container=None, work_id=None, title=None, state=None, ident=None, revision=None, redirect=None, editgroup_id=None, extra=None): # noqa: E501 + def __init__(self, abstracts=None, refs=None, contribs=None, language=None, publisher=None, pages=None, issue=None, volume=None, wikidata_qid=None, pmcid=None, pmid=None, core_id=None, isbn13=None, doi=None, release_date=None, release_status=None, release_type=None, container_id=None, files=None, container=None, work_id=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501 """ReleaseEntity - a model defined in Swagger""" # noqa: E501 self._abstracts = None @@ -127,8 +127,8 @@ class ReleaseEntity(object): self._ident = None self._revision = None self._redirect = None - self._editgroup_id = None self._extra = None + self._edit_extra = None self.discriminator = None if abstracts is not None: @@ -182,10 +182,10 @@ class ReleaseEntity(object): self.revision = revision if redirect is not None: self.redirect = redirect - if editgroup_id is not None: - self.editgroup_id = editgroup_id if extra is not None: self.extra = extra + if edit_extra is not None: + self.edit_extra = edit_extra @property def abstracts(self): @@ -772,54 +772,46 @@ class ReleaseEntity(object): self._redirect = redirect @property - def editgroup_id(self): - """Gets the editgroup_id of this ReleaseEntity. # noqa: E501 + def extra(self): + """Gets the extra of this ReleaseEntity. # noqa: E501 - base32-encoded unique identifier # noqa: E501 - :return: The editgroup_id of this ReleaseEntity. # noqa: E501 - :rtype: str + :return: The extra of this ReleaseEntity. # 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 ReleaseEntity. + @extra.setter + def extra(self, extra): + """Sets the extra of this ReleaseEntity. - base32-encoded unique identifier # noqa: E501 - :param editgroup_id: The editgroup_id of this ReleaseEntity. # noqa: E501 - :type: str + :param extra: The extra of this ReleaseEntity. # 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 extra(self): - """Gets the extra of this ReleaseEntity. # noqa: E501 + def edit_extra(self): + """Gets the edit_extra of this ReleaseEntity. # noqa: E501 - :return: The extra of this ReleaseEntity. # noqa: E501 + :return: The edit_extra of this ReleaseEntity. # noqa: E501 :rtype: object """ - return self._extra + return self._edit_extra - @extra.setter - def extra(self, extra): - """Sets the extra of this ReleaseEntity. + @edit_extra.setter + def edit_extra(self, edit_extra): + """Sets the edit_extra of this ReleaseEntity. - :param extra: The extra of this ReleaseEntity. # noqa: E501 + :param edit_extra: The edit_extra of this ReleaseEntity. # noqa: E501 :type: object """ - self._extra = extra + self._edit_extra = edit_extra def to_dict(self): """Returns the model properties as a dict""" 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): |