aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-28 13:04:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-28 13:04:46 -0700
commitaf542d66d884bd17daa6f40f3556aa4189b23b36 (patch)
tree8b9ab8b62da97f547dea7caf8be3d52917e884de /python/fatcat_client/models
parent6918fced32c7cb8c351692b0fd5e87dd3ed734a2 (diff)
downloadfatcat-af542d66d884bd17daa6f40f3556aa4189b23b36.tar.gz
fatcat-af542d66d884bd17daa6f40f3556aa4189b23b36.zip
python client codegen
Diffstat (limited to 'python/fatcat_client/models')
-rw-r--r--python/fatcat_client/models/__init__.py32
-rw-r--r--python/fatcat_client/models/changelogentries.py86
-rw-r--r--python/fatcat_client/models/changelogentries_inner.py167
-rw-r--r--python/fatcat_client/models/container_entity.py379
-rw-r--r--python/fatcat_client/models/creator_entity.py301
-rw-r--r--python/fatcat_client/models/editgroup.py219
-rw-r--r--python/fatcat_client/models/editgroup_edits.py218
-rw-r--r--python/fatcat_client/models/editor.py113
-rw-r--r--python/fatcat_client/models/entity_edit.py245
-rw-r--r--python/fatcat_client/models/error_response.py113
-rw-r--r--python/fatcat_client/models/file_entity.py378
-rw-r--r--python/fatcat_client/models/release_contrib.py190
-rw-r--r--python/fatcat_client/models/release_entity.py591
-rw-r--r--python/fatcat_client/models/release_ref.py164
-rw-r--r--python/fatcat_client/models/success.py113
-rw-r--r--python/fatcat_client/models/work_entity.py274
16 files changed, 3583 insertions, 0 deletions
diff --git a/python/fatcat_client/models/__init__.py b/python/fatcat_client/models/__init__.py
new file mode 100644
index 00000000..ba62661b
--- /dev/null
+++ b/python/fatcat_client/models/__init__.py
@@ -0,0 +1,32 @@
+# coding: utf-8
+
+# flake8: noqa
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+# import models into model package
+from fatcat_client.models.changelogentries import Changelogentries
+from fatcat_client.models.changelogentries_inner import ChangelogentriesInner
+from fatcat_client.models.container_entity import ContainerEntity
+from fatcat_client.models.creator_entity import CreatorEntity
+from fatcat_client.models.editgroup import Editgroup
+from fatcat_client.models.editgroup_edits import EditgroupEdits
+from fatcat_client.models.editor import Editor
+from fatcat_client.models.entity_edit import EntityEdit
+from fatcat_client.models.error_response import ErrorResponse
+from fatcat_client.models.file_entity import FileEntity
+from fatcat_client.models.release_contrib import ReleaseContrib
+from fatcat_client.models.release_entity import ReleaseEntity
+from fatcat_client.models.release_ref import ReleaseRef
+from fatcat_client.models.success import Success
+from fatcat_client.models.work_entity import WorkEntity
diff --git a/python/fatcat_client/models/changelogentries.py b/python/fatcat_client/models/changelogentries.py
new file mode 100644
index 00000000..acae2ad7
--- /dev/null
+++ b/python/fatcat_client/models/changelogentries.py
@@ -0,0 +1,86 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_client.models.changelogentries_inner import ChangelogentriesInner # noqa: F401,E501
+
+
+class Changelogentries(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ }
+
+ attribute_map = {
+ }
+
+ def __init__(self): # noqa: E501
+ """Changelogentries - a model defined in Swagger""" # noqa: E501
+ self.discriminator = None
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Changelogentries):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/changelogentries_inner.py b/python/fatcat_client/models/changelogentries_inner.py
new file mode 100644
index 00000000..08024f6f
--- /dev/null
+++ b/python/fatcat_client/models/changelogentries_inner.py
@@ -0,0 +1,167 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ChangelogentriesInner(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'index': 'int',
+ 'editgroup_id': 'int',
+ 'timestamp': 'datetime'
+ }
+
+ attribute_map = {
+ 'index': 'index',
+ 'editgroup_id': 'editgroup_id',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, index=None, editgroup_id=None, timestamp=None): # noqa: E501
+ """ChangelogentriesInner - a model defined in Swagger""" # noqa: E501
+
+ self._index = None
+ self._editgroup_id = None
+ self._timestamp = None
+ self.discriminator = None
+
+ self.index = index
+ self.editgroup_id = editgroup_id
+ self.timestamp = timestamp
+
+ @property
+ def index(self):
+ """Gets the index of this ChangelogentriesInner. # noqa: E501
+
+
+ :return: The index of this ChangelogentriesInner. # noqa: E501
+ :rtype: int
+ """
+ return self._index
+
+ @index.setter
+ def index(self, index):
+ """Sets the index of this ChangelogentriesInner.
+
+
+ :param index: The index of this ChangelogentriesInner. # noqa: E501
+ :type: int
+ """
+ if index is None:
+ raise ValueError("Invalid value for `index`, must not be `None`") # noqa: E501
+
+ self._index = index
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this ChangelogentriesInner. # noqa: E501
+
+
+ :return: The editgroup_id of this ChangelogentriesInner. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this ChangelogentriesInner.
+
+
+ :param editgroup_id: The editgroup_id of this ChangelogentriesInner. # noqa: E501
+ :type: int
+ """
+ if editgroup_id is None:
+ raise ValueError("Invalid value for `editgroup_id`, must not be `None`") # noqa: E501
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this ChangelogentriesInner. # noqa: E501
+
+
+ :return: The timestamp of this ChangelogentriesInner. # noqa: E501
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this ChangelogentriesInner.
+
+
+ :param timestamp: The timestamp of this ChangelogentriesInner. # noqa: E501
+ :type: datetime
+ """
+ if timestamp is None:
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ChangelogentriesInner):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/container_entity.py b/python/fatcat_client/models/container_entity.py
new file mode 100644
index 00000000..969c046d
--- /dev/null
+++ b/python/fatcat_client/models/container_entity.py
@@ -0,0 +1,379 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ContainerEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'coden': 'str',
+ 'abbrev': 'str',
+ 'issnl': 'str',
+ 'publisher': 'str',
+ 'name': 'str',
+ 'extra': 'object',
+ 'editgroup_id': 'int',
+ 'redirect': 'str',
+ 'revision': 'int',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'coden': 'coden',
+ 'abbrev': 'abbrev',
+ 'issnl': 'issnl',
+ 'publisher': 'publisher',
+ 'name': 'name',
+ 'extra': 'extra',
+ 'editgroup_id': 'editgroup_id',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, coden=None, abbrev=None, issnl=None, publisher=None, name=None, extra=None, editgroup_id=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """ContainerEntity - a model defined in Swagger""" # noqa: E501
+
+ self._coden = None
+ self._abbrev = None
+ self._issnl = None
+ self._publisher = None
+ self._name = None
+ self._extra = None
+ self._editgroup_id = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if coden is not None:
+ self.coden = coden
+ if abbrev is not None:
+ self.abbrev = abbrev
+ if issnl is not None:
+ self.issnl = issnl
+ if publisher is not None:
+ self.publisher = publisher
+ self.name = name
+ 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:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def coden(self):
+ """Gets the coden of this ContainerEntity. # noqa: E501
+
+
+ :return: The coden of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._coden
+
+ @coden.setter
+ def coden(self, coden):
+ """Sets the coden of this ContainerEntity.
+
+
+ :param coden: The coden of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._coden = coden
+
+ @property
+ def abbrev(self):
+ """Gets the abbrev of this ContainerEntity. # noqa: E501
+
+
+ :return: The abbrev of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._abbrev
+
+ @abbrev.setter
+ def abbrev(self, abbrev):
+ """Sets the abbrev of this ContainerEntity.
+
+
+ :param abbrev: The abbrev of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._abbrev = abbrev
+
+ @property
+ def issnl(self):
+ """Gets the issnl of this ContainerEntity. # noqa: E501
+
+
+ :return: The issnl of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._issnl
+
+ @issnl.setter
+ def issnl(self, issnl):
+ """Sets the issnl of this ContainerEntity.
+
+
+ :param issnl: The issnl of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._issnl = issnl
+
+ @property
+ def publisher(self):
+ """Gets the publisher of this ContainerEntity. # noqa: E501
+
+
+ :return: The publisher of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._publisher
+
+ @publisher.setter
+ def publisher(self, publisher):
+ """Sets the publisher of this ContainerEntity.
+
+
+ :param publisher: The publisher of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._publisher = publisher
+
+ @property
+ def name(self):
+ """Gets the name of this ContainerEntity. # noqa: E501
+
+
+ :return: The name of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this ContainerEntity.
+
+
+ :param name: The name of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if name is None:
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
+
+ self._name = name
+
+ @property
+ def extra(self):
+ """Gets the extra of this ContainerEntity. # noqa: E501
+
+
+ :return: The extra of this ContainerEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ContainerEntity.
+
+
+ :param extra: The extra of this ContainerEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this ContainerEntity. # noqa: E501
+
+
+ :return: The editgroup_id of this ContainerEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this ContainerEntity.
+
+
+ :param editgroup_id: The editgroup_id of this ContainerEntity. # noqa: E501
+ :type: int
+ """
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this ContainerEntity. # noqa: E501
+
+
+ :return: The redirect of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this ContainerEntity.
+
+
+ :param redirect: The redirect of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this ContainerEntity. # noqa: E501
+
+
+ :return: The revision of this ContainerEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this ContainerEntity.
+
+
+ :param revision: The revision of this ContainerEntity. # noqa: E501
+ :type: int
+ """
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this ContainerEntity. # noqa: E501
+
+
+ :return: The ident of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this ContainerEntity.
+
+
+ :param ident: The ident of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this ContainerEntity. # noqa: E501
+
+
+ :return: The state of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this ContainerEntity.
+
+
+ :param state: The state of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ContainerEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/creator_entity.py b/python/fatcat_client/models/creator_entity.py
new file mode 100644
index 00000000..79be738b
--- /dev/null
+++ b/python/fatcat_client/models/creator_entity.py
@@ -0,0 +1,301 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class CreatorEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'orcid': 'str',
+ 'full_name': 'str',
+ 'state': 'str',
+ 'ident': 'str',
+ 'revision': 'int',
+ 'redirect': 'str',
+ 'editgroup_id': 'int',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'orcid': 'orcid',
+ 'full_name': 'full_name',
+ 'state': 'state',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'editgroup_id': 'editgroup_id',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, orcid=None, full_name=None, state=None, ident=None, revision=None, redirect=None, editgroup_id=None, extra=None): # noqa: E501
+ """CreatorEntity - a model defined in Swagger""" # noqa: E501
+
+ self._orcid = None
+ self._full_name = None
+ self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._editgroup_id = None
+ self._extra = None
+ self.discriminator = None
+
+ if orcid is not None:
+ self.orcid = orcid
+ self.full_name = full_name
+ if state is not None:
+ self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ 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
+
+ @property
+ def orcid(self):
+ """Gets the orcid of this CreatorEntity. # noqa: E501
+
+
+ :return: The orcid of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._orcid
+
+ @orcid.setter
+ def orcid(self, orcid):
+ """Sets the orcid of this CreatorEntity.
+
+
+ :param orcid: The orcid of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._orcid = orcid
+
+ @property
+ def full_name(self):
+ """Gets the full_name of this CreatorEntity. # noqa: E501
+
+
+ :return: The full_name of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._full_name
+
+ @full_name.setter
+ def full_name(self, full_name):
+ """Sets the full_name of this CreatorEntity.
+
+
+ :param full_name: The full_name of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if full_name is None:
+ raise ValueError("Invalid value for `full_name`, must not be `None`") # noqa: E501
+
+ self._full_name = full_name
+
+ @property
+ def state(self):
+ """Gets the state of this CreatorEntity. # noqa: E501
+
+
+ :return: The state of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this CreatorEntity.
+
+
+ :param state: The state of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ @property
+ def ident(self):
+ """Gets the ident of this CreatorEntity. # noqa: E501
+
+
+ :return: The ident of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this CreatorEntity.
+
+
+ :param ident: The ident of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this CreatorEntity. # noqa: E501
+
+
+ :return: The revision of this CreatorEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this CreatorEntity.
+
+
+ :param revision: The revision of this CreatorEntity. # noqa: E501
+ :type: int
+ """
+
+ self._revision = revision
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this CreatorEntity. # noqa: E501
+
+
+ :return: The redirect of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this CreatorEntity.
+
+
+ :param redirect: The redirect of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._redirect = redirect
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this CreatorEntity. # noqa: E501
+
+
+ :return: The editgroup_id of this CreatorEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this CreatorEntity.
+
+
+ :param editgroup_id: The editgroup_id of this CreatorEntity. # noqa: E501
+ :type: int
+ """
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this CreatorEntity. # noqa: E501
+
+
+ :return: The extra of this CreatorEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this CreatorEntity.
+
+
+ :param extra: The extra of this CreatorEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, CreatorEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/editgroup.py b/python/fatcat_client/models/editgroup.py
new file mode 100644
index 00000000..0855975d
--- /dev/null
+++ b/python/fatcat_client/models/editgroup.py
@@ -0,0 +1,219 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_client.models.editgroup_edits import EditgroupEdits # noqa: F401,E501
+
+
+class Editgroup(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'int',
+ 'editor_id': 'int',
+ 'description': 'str',
+ 'extra': 'object',
+ 'edits': 'EditgroupEdits'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'editor_id': 'editor_id',
+ 'description': 'description',
+ 'extra': 'extra',
+ 'edits': 'edits'
+ }
+
+ def __init__(self, id=None, editor_id=None, description=None, extra=None, edits=None): # noqa: E501
+ """Editgroup - a model defined in Swagger""" # noqa: E501
+
+ self._id = None
+ self._editor_id = None
+ self._description = None
+ self._extra = None
+ self._edits = None
+ self.discriminator = None
+
+ if id is not None:
+ self.id = id
+ self.editor_id = editor_id
+ if description is not None:
+ self.description = description
+ if extra is not None:
+ self.extra = extra
+ if edits is not None:
+ self.edits = edits
+
+ @property
+ def id(self):
+ """Gets the id of this Editgroup. # noqa: E501
+
+
+ :return: The id of this Editgroup. # noqa: E501
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this Editgroup.
+
+
+ :param id: The id of this Editgroup. # noqa: E501
+ :type: int
+ """
+
+ self._id = id
+
+ @property
+ def editor_id(self):
+ """Gets the editor_id of this Editgroup. # noqa: E501
+
+
+ :return: The editor_id of this Editgroup. # noqa: E501
+ :rtype: int
+ """
+ return self._editor_id
+
+ @editor_id.setter
+ def editor_id(self, editor_id):
+ """Sets the editor_id of this Editgroup.
+
+
+ :param editor_id: The editor_id of this Editgroup. # noqa: E501
+ :type: int
+ """
+ if editor_id is None:
+ raise ValueError("Invalid value for `editor_id`, must not be `None`") # noqa: E501
+
+ self._editor_id = editor_id
+
+ @property
+ def description(self):
+ """Gets the description of this Editgroup. # noqa: E501
+
+
+ :return: The description of this Editgroup. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this Editgroup.
+
+
+ :param description: The description of this Editgroup. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
+
+ @property
+ def extra(self):
+ """Gets the extra of this Editgroup. # noqa: E501
+
+
+ :return: The extra of this Editgroup. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this Editgroup.
+
+
+ :param extra: The extra of this Editgroup. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def edits(self):
+ """Gets the edits of this Editgroup. # noqa: E501
+
+
+ :return: The edits of this Editgroup. # noqa: E501
+ :rtype: EditgroupEdits
+ """
+ return self._edits
+
+ @edits.setter
+ def edits(self, edits):
+ """Sets the edits of this Editgroup.
+
+
+ :param edits: The edits of this Editgroup. # noqa: E501
+ :type: EditgroupEdits
+ """
+
+ self._edits = edits
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Editgroup):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/editgroup_edits.py b/python/fatcat_client/models/editgroup_edits.py
new file mode 100644
index 00000000..7fae329d
--- /dev/null
+++ b/python/fatcat_client/models/editgroup_edits.py
@@ -0,0 +1,218 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_client.models.entity_edit import EntityEdit # noqa: F401,E501
+
+
+class EditgroupEdits(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'containers': 'list[EntityEdit]',
+ 'creators': 'list[EntityEdit]',
+ 'files': 'list[EntityEdit]',
+ 'releases': 'list[EntityEdit]',
+ 'works': 'list[EntityEdit]'
+ }
+
+ attribute_map = {
+ 'containers': 'containers',
+ 'creators': 'creators',
+ 'files': 'files',
+ 'releases': 'releases',
+ 'works': 'works'
+ }
+
+ def __init__(self, containers=None, creators=None, files=None, releases=None, works=None): # noqa: E501
+ """EditgroupEdits - a model defined in Swagger""" # noqa: E501
+
+ self._containers = None
+ self._creators = None
+ self._files = None
+ self._releases = None
+ self._works = None
+ self.discriminator = None
+
+ if containers is not None:
+ self.containers = containers
+ if creators is not None:
+ self.creators = creators
+ if files is not None:
+ self.files = files
+ if releases is not None:
+ self.releases = releases
+ if works is not None:
+ self.works = works
+
+ @property
+ def containers(self):
+ """Gets the containers of this EditgroupEdits. # noqa: E501
+
+
+ :return: The containers of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._containers
+
+ @containers.setter
+ def containers(self, containers):
+ """Sets the containers of this EditgroupEdits.
+
+
+ :param containers: The containers of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._containers = containers
+
+ @property
+ def creators(self):
+ """Gets the creators of this EditgroupEdits. # noqa: E501
+
+
+ :return: The creators of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._creators
+
+ @creators.setter
+ def creators(self, creators):
+ """Sets the creators of this EditgroupEdits.
+
+
+ :param creators: The creators of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._creators = creators
+
+ @property
+ def files(self):
+ """Gets the files of this EditgroupEdits. # noqa: E501
+
+
+ :return: The files of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._files
+
+ @files.setter
+ def files(self, files):
+ """Sets the files of this EditgroupEdits.
+
+
+ :param files: The files of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._files = files
+
+ @property
+ def releases(self):
+ """Gets the releases of this EditgroupEdits. # noqa: E501
+
+
+ :return: The releases of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this EditgroupEdits.
+
+
+ :param releases: The releases of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._releases = releases
+
+ @property
+ def works(self):
+ """Gets the works of this EditgroupEdits. # noqa: E501
+
+
+ :return: The works of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._works
+
+ @works.setter
+ def works(self, works):
+ """Sets the works of this EditgroupEdits.
+
+
+ :param works: The works of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._works = works
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EditgroupEdits):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/editor.py b/python/fatcat_client/models/editor.py
new file mode 100644
index 00000000..da2e0204
--- /dev/null
+++ b/python/fatcat_client/models/editor.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class Editor(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'username': 'str'
+ }
+
+ attribute_map = {
+ 'username': 'username'
+ }
+
+ def __init__(self, username=None): # noqa: E501
+ """Editor - a model defined in Swagger""" # noqa: E501
+
+ self._username = None
+ self.discriminator = None
+
+ self.username = username
+
+ @property
+ def username(self):
+ """Gets the username of this Editor. # noqa: E501
+
+
+ :return: The username of this Editor. # noqa: E501
+ :rtype: str
+ """
+ return self._username
+
+ @username.setter
+ def username(self, username):
+ """Sets the username of this Editor.
+
+
+ :param username: The username of this Editor. # noqa: E501
+ :type: str
+ """
+ if username is None:
+ raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501
+
+ self._username = username
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Editor):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/entity_edit.py b/python/fatcat_client/models/entity_edit.py
new file mode 100644
index 00000000..47437af2
--- /dev/null
+++ b/python/fatcat_client/models/entity_edit.py
@@ -0,0 +1,245 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class EntityEdit(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edit_id': 'int',
+ 'ident': 'str',
+ 'revision': 'int',
+ 'redirect_ident': 'str',
+ 'editgroup_id': 'int',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'edit_id': 'edit_id',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'redirect_ident': 'redirect_ident',
+ 'editgroup_id': 'editgroup_id',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, edit_id=None, ident=None, revision=None, redirect_ident=None, editgroup_id=None, extra=None): # noqa: E501
+ """EntityEdit - a model defined in Swagger""" # noqa: E501
+
+ self._edit_id = None
+ self._ident = None
+ self._revision = None
+ self._redirect_ident = None
+ self._editgroup_id = None
+ self._extra = None
+ self.discriminator = None
+
+ self.edit_id = edit_id
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect_ident is not None:
+ self.redirect_ident = redirect_ident
+ self.editgroup_id = editgroup_id
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def edit_id(self):
+ """Gets the edit_id of this EntityEdit. # noqa: E501
+
+
+ :return: The edit_id of this EntityEdit. # noqa: E501
+ :rtype: int
+ """
+ return self._edit_id
+
+ @edit_id.setter
+ def edit_id(self, edit_id):
+ """Sets the edit_id of this EntityEdit.
+
+
+ :param edit_id: The edit_id of this EntityEdit. # noqa: E501
+ :type: int
+ """
+ if edit_id is None:
+ raise ValueError("Invalid value for `edit_id`, must not be `None`") # noqa: E501
+
+ self._edit_id = edit_id
+
+ @property
+ def ident(self):
+ """Gets the ident of this EntityEdit. # noqa: E501
+
+
+ :return: The ident of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this EntityEdit.
+
+
+ :param ident: The ident of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if ident is None:
+ raise ValueError("Invalid value for `ident`, must not be `None`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this EntityEdit. # noqa: E501
+
+
+ :return: The revision of this EntityEdit. # noqa: E501
+ :rtype: int
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this EntityEdit.
+
+
+ :param revision: The revision of this EntityEdit. # noqa: E501
+ :type: int
+ """
+
+ self._revision = revision
+
+ @property
+ def redirect_ident(self):
+ """Gets the redirect_ident of this EntityEdit. # noqa: E501
+
+
+ :return: The redirect_ident of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect_ident
+
+ @redirect_ident.setter
+ def redirect_ident(self, redirect_ident):
+ """Sets the redirect_ident of this EntityEdit.
+
+
+ :param redirect_ident: The redirect_ident of this EntityEdit. # noqa: E501
+ :type: str
+ """
+
+ self._redirect_ident = redirect_ident
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this EntityEdit. # noqa: E501
+
+
+ :return: The editgroup_id of this EntityEdit. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this EntityEdit.
+
+
+ :param editgroup_id: The editgroup_id of this EntityEdit. # noqa: E501
+ :type: int
+ """
+ if editgroup_id is None:
+ raise ValueError("Invalid value for `editgroup_id`, must not be `None`") # noqa: E501
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this EntityEdit. # noqa: E501
+
+
+ :return: The extra of this EntityEdit. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this EntityEdit.
+
+
+ :param extra: The extra of this EntityEdit. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EntityEdit):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/error_response.py b/python/fatcat_client/models/error_response.py
new file mode 100644
index 00000000..3e5d3488
--- /dev/null
+++ b/python/fatcat_client/models/error_response.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ErrorResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'message': 'str'
+ }
+
+ attribute_map = {
+ 'message': 'message'
+ }
+
+ def __init__(self, message=None): # noqa: E501
+ """ErrorResponse - a model defined in Swagger""" # noqa: E501
+
+ self._message = None
+ self.discriminator = None
+
+ self.message = message
+
+ @property
+ def message(self):
+ """Gets the message of this ErrorResponse. # noqa: E501
+
+
+ :return: The message of this ErrorResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """Sets the message of this ErrorResponse.
+
+
+ :param message: The message of this ErrorResponse. # noqa: E501
+ :type: str
+ """
+ if message is None:
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
+
+ self._message = message
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ErrorResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/file_entity.py b/python/fatcat_client/models/file_entity.py
new file mode 100644
index 00000000..d8847ee2
--- /dev/null
+++ b/python/fatcat_client/models/file_entity.py
@@ -0,0 +1,378 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FileEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'releases': 'list[str]',
+ 'url': 'str',
+ 'md5': 'str',
+ 'sha1': 'str',
+ 'size': 'int',
+ 'extra': 'object',
+ 'editgroup_id': 'int',
+ 'redirect': 'str',
+ 'revision': 'int',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'releases': 'releases',
+ 'url': 'url',
+ 'md5': 'md5',
+ 'sha1': 'sha1',
+ 'size': 'size',
+ 'extra': 'extra',
+ 'editgroup_id': 'editgroup_id',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, releases=None, url=None, md5=None, sha1=None, size=None, extra=None, editgroup_id=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """FileEntity - a model defined in Swagger""" # noqa: E501
+
+ self._releases = None
+ self._url = None
+ self._md5 = None
+ self._sha1 = None
+ self._size = None
+ self._extra = None
+ self._editgroup_id = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if releases is not None:
+ self.releases = releases
+ if url is not None:
+ self.url = url
+ if md5 is not None:
+ self.md5 = md5
+ if sha1 is not None:
+ self.sha1 = sha1
+ if size is not None:
+ self.size = size
+ 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:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def releases(self):
+ """Gets the releases of this FileEntity. # noqa: E501
+
+
+ :return: The releases of this FileEntity. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this FileEntity.
+
+
+ :param releases: The releases of this FileEntity. # noqa: E501
+ :type: list[str]
+ """
+
+ self._releases = releases
+
+ @property
+ def url(self):
+ """Gets the url of this FileEntity. # noqa: E501
+
+
+ :return: The url of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this FileEntity.
+
+
+ :param url: The url of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._url = url
+
+ @property
+ def md5(self):
+ """Gets the md5 of this FileEntity. # noqa: E501
+
+
+ :return: The md5 of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._md5
+
+ @md5.setter
+ def md5(self, md5):
+ """Sets the md5 of this FileEntity.
+
+
+ :param md5: The md5 of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._md5 = md5
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this FileEntity. # noqa: E501
+
+
+ :return: The sha1 of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this FileEntity.
+
+
+ :param sha1: The sha1 of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._sha1 = sha1
+
+ @property
+ def size(self):
+ """Gets the size of this FileEntity. # noqa: E501
+
+
+ :return: The size of this FileEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this FileEntity.
+
+
+ :param size: The size of this FileEntity. # noqa: E501
+ :type: int
+ """
+
+ self._size = size
+
+ @property
+ def extra(self):
+ """Gets the extra of this FileEntity. # noqa: E501
+
+
+ :return: The extra of this FileEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FileEntity.
+
+
+ :param extra: The extra of this FileEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this FileEntity. # noqa: E501
+
+
+ :return: The editgroup_id of this FileEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this FileEntity.
+
+
+ :param editgroup_id: The editgroup_id of this FileEntity. # noqa: E501
+ :type: int
+ """
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this FileEntity. # noqa: E501
+
+
+ :return: The redirect of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this FileEntity.
+
+
+ :param redirect: The redirect of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this FileEntity. # noqa: E501
+
+
+ :return: The revision of this FileEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this FileEntity.
+
+
+ :param revision: The revision of this FileEntity. # noqa: E501
+ :type: int
+ """
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this FileEntity. # noqa: E501
+
+
+ :return: The ident of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this FileEntity.
+
+
+ :param ident: The ident of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this FileEntity. # noqa: E501
+
+
+ :return: The state of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this FileEntity.
+
+
+ :param state: The state of this FileEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FileEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/release_contrib.py b/python/fatcat_client/models/release_contrib.py
new file mode 100644
index 00000000..de458e67
--- /dev/null
+++ b/python/fatcat_client/models/release_contrib.py
@@ -0,0 +1,190 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseContrib(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'index': 'int',
+ 'creator_id': 'str',
+ 'creator_stub': 'str',
+ 'role': 'str'
+ }
+
+ attribute_map = {
+ 'index': 'index',
+ 'creator_id': 'creator_id',
+ 'creator_stub': 'creator_stub',
+ 'role': 'role'
+ }
+
+ def __init__(self, index=None, creator_id=None, creator_stub=None, role=None): # noqa: E501
+ """ReleaseContrib - a model defined in Swagger""" # noqa: E501
+
+ self._index = None
+ self._creator_id = None
+ self._creator_stub = None
+ self._role = None
+ self.discriminator = None
+
+ if index is not None:
+ self.index = index
+ if creator_id is not None:
+ self.creator_id = creator_id
+ if creator_stub is not None:
+ self.creator_stub = creator_stub
+ if role is not None:
+ self.role = role
+
+ @property
+ def index(self):
+ """Gets the index of this ReleaseContrib. # noqa: E501
+
+
+ :return: The index of this ReleaseContrib. # noqa: E501
+ :rtype: int
+ """
+ return self._index
+
+ @index.setter
+ def index(self, index):
+ """Sets the index of this ReleaseContrib.
+
+
+ :param index: The index of this ReleaseContrib. # noqa: E501
+ :type: int
+ """
+
+ self._index = index
+
+ @property
+ def creator_id(self):
+ """Gets the creator_id of this ReleaseContrib. # noqa: E501
+
+
+ :return: The creator_id of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._creator_id
+
+ @creator_id.setter
+ def creator_id(self, creator_id):
+ """Sets the creator_id of this ReleaseContrib.
+
+
+ :param creator_id: The creator_id of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._creator_id = creator_id
+
+ @property
+ def creator_stub(self):
+ """Gets the creator_stub of this ReleaseContrib. # noqa: E501
+
+
+ :return: The creator_stub of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._creator_stub
+
+ @creator_stub.setter
+ def creator_stub(self, creator_stub):
+ """Sets the creator_stub of this ReleaseContrib.
+
+
+ :param creator_stub: The creator_stub of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._creator_stub = creator_stub
+
+ @property
+ def role(self):
+ """Gets the role of this ReleaseContrib. # noqa: E501
+
+
+ :return: The role of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._role
+
+ @role.setter
+ def role(self, role):
+ """Sets the role of this ReleaseContrib.
+
+
+ :param role: The role of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._role = role
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseContrib):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/release_entity.py b/python/fatcat_client/models/release_entity.py
new file mode 100644
index 00000000..408d527b
--- /dev/null
+++ b/python/fatcat_client/models/release_entity.py
@@ -0,0 +1,591 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_client.models.release_contrib import ReleaseContrib # noqa: F401,E501
+from fatcat_client.models.release_ref import ReleaseRef # noqa: F401,E501
+
+
+class ReleaseEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'refs': 'list[ReleaseRef]',
+ 'contribs': 'list[ReleaseContrib]',
+ 'publisher': 'str',
+ 'issue': 'str',
+ 'pages': 'str',
+ 'volume': 'str',
+ 'isbn13': 'str',
+ 'doi': 'str',
+ 'date': 'date',
+ 'release_type': 'str',
+ 'container_id': 'str',
+ 'work_id': 'str',
+ 'title': 'str',
+ 'state': 'str',
+ 'ident': 'str',
+ 'revision': 'int',
+ 'redirect': 'str',
+ 'editgroup_id': 'int',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'refs': 'refs',
+ 'contribs': 'contribs',
+ 'publisher': 'publisher',
+ 'issue': 'issue',
+ 'pages': 'pages',
+ 'volume': 'volume',
+ 'isbn13': 'isbn13',
+ 'doi': 'doi',
+ 'date': 'date',
+ 'release_type': 'release_type',
+ 'container_id': 'container_id',
+ 'work_id': 'work_id',
+ 'title': 'title',
+ 'state': 'state',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'editgroup_id': 'editgroup_id',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, refs=None, contribs=None, publisher=None, issue=None, pages=None, volume=None, isbn13=None, doi=None, date=None, release_type=None, container_id=None, work_id=None, title=None, state=None, ident=None, revision=None, redirect=None, editgroup_id=None, extra=None): # noqa: E501
+ """ReleaseEntity - a model defined in Swagger""" # noqa: E501
+
+ self._refs = None
+ self._contribs = None
+ self._publisher = None
+ self._issue = None
+ self._pages = None
+ self._volume = None
+ self._isbn13 = None
+ self._doi = None
+ self._date = None
+ self._release_type = None
+ self._container_id = None
+ self._work_id = None
+ self._title = None
+ self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._editgroup_id = None
+ self._extra = None
+ self.discriminator = None
+
+ if refs is not None:
+ self.refs = refs
+ if contribs is not None:
+ self.contribs = contribs
+ if publisher is not None:
+ self.publisher = publisher
+ if issue is not None:
+ self.issue = issue
+ if pages is not None:
+ self.pages = pages
+ if volume is not None:
+ self.volume = volume
+ if isbn13 is not None:
+ self.isbn13 = isbn13
+ if doi is not None:
+ self.doi = doi
+ if date is not None:
+ self.date = date
+ if release_type is not None:
+ self.release_type = release_type
+ if container_id is not None:
+ self.container_id = container_id
+ self.work_id = work_id
+ self.title = title
+ if state is not None:
+ self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ 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
+
+ @property
+ def refs(self):
+ """Gets the refs of this ReleaseEntity. # noqa: E501
+
+
+ :return: The refs of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseRef]
+ """
+ return self._refs
+
+ @refs.setter
+ def refs(self, refs):
+ """Sets the refs of this ReleaseEntity.
+
+
+ :param refs: The refs of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseRef]
+ """
+
+ self._refs = refs
+
+ @property
+ def contribs(self):
+ """Gets the contribs of this ReleaseEntity. # noqa: E501
+
+
+ :return: The contribs of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseContrib]
+ """
+ return self._contribs
+
+ @contribs.setter
+ def contribs(self, contribs):
+ """Sets the contribs of this ReleaseEntity.
+
+
+ :param contribs: The contribs of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseContrib]
+ """
+
+ self._contribs = contribs
+
+ @property
+ def publisher(self):
+ """Gets the publisher of this ReleaseEntity. # noqa: E501
+
+
+ :return: The publisher of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._publisher
+
+ @publisher.setter
+ def publisher(self, publisher):
+ """Sets the publisher of this ReleaseEntity.
+
+
+ :param publisher: The publisher of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._publisher = publisher
+
+ @property
+ def issue(self):
+ """Gets the issue of this ReleaseEntity. # noqa: E501
+
+
+ :return: The issue of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._issue
+
+ @issue.setter
+ def issue(self, issue):
+ """Sets the issue of this ReleaseEntity.
+
+
+ :param issue: The issue of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._issue = issue
+
+ @property
+ def pages(self):
+ """Gets the pages of this ReleaseEntity. # noqa: E501
+
+
+ :return: The pages of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._pages
+
+ @pages.setter
+ def pages(self, pages):
+ """Sets the pages of this ReleaseEntity.
+
+
+ :param pages: The pages of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._pages = pages
+
+ @property
+ def volume(self):
+ """Gets the volume of this ReleaseEntity. # noqa: E501
+
+
+ :return: The volume of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._volume
+
+ @volume.setter
+ def volume(self, volume):
+ """Sets the volume of this ReleaseEntity.
+
+
+ :param volume: The volume of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._volume = volume
+
+ @property
+ def isbn13(self):
+ """Gets the isbn13 of this ReleaseEntity. # noqa: E501
+
+
+ :return: The isbn13 of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._isbn13
+
+ @isbn13.setter
+ def isbn13(self, isbn13):
+ """Sets the isbn13 of this ReleaseEntity.
+
+
+ :param isbn13: The isbn13 of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._isbn13 = isbn13
+
+ @property
+ def doi(self):
+ """Gets the doi of this ReleaseEntity. # noqa: E501
+
+
+ :return: The doi of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._doi
+
+ @doi.setter
+ def doi(self, doi):
+ """Sets the doi of this ReleaseEntity.
+
+
+ :param doi: The doi of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._doi = doi
+
+ @property
+ def date(self):
+ """Gets the date of this ReleaseEntity. # noqa: E501
+
+
+ :return: The date of this ReleaseEntity. # noqa: E501
+ :rtype: date
+ """
+ return self._date
+
+ @date.setter
+ def date(self, date):
+ """Sets the date of this ReleaseEntity.
+
+
+ :param date: The date of this ReleaseEntity. # noqa: E501
+ :type: date
+ """
+
+ self._date = date
+
+ @property
+ def release_type(self):
+ """Gets the release_type of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_type of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._release_type
+
+ @release_type.setter
+ def release_type(self, release_type):
+ """Sets the release_type of this ReleaseEntity.
+
+
+ :param release_type: The release_type of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._release_type = release_type
+
+ @property
+ def container_id(self):
+ """Gets the container_id of this ReleaseEntity. # noqa: E501
+
+
+ :return: The container_id of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._container_id
+
+ @container_id.setter
+ def container_id(self, container_id):
+ """Sets the container_id of this ReleaseEntity.
+
+
+ :param container_id: The container_id of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._container_id = container_id
+
+ @property
+ def work_id(self):
+ """Gets the work_id of this ReleaseEntity. # noqa: E501
+
+
+ :return: The work_id of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._work_id
+
+ @work_id.setter
+ def work_id(self, work_id):
+ """Sets the work_id of this ReleaseEntity.
+
+
+ :param work_id: The work_id of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ if work_id is None:
+ raise ValueError("Invalid value for `work_id`, must not be `None`") # noqa: E501
+
+ self._work_id = work_id
+
+ @property
+ def title(self):
+ """Gets the title of this ReleaseEntity. # noqa: E501
+
+
+ :return: The title of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._title
+
+ @title.setter
+ def title(self, title):
+ """Sets the title of this ReleaseEntity.
+
+
+ :param title: The title of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ if title is None:
+ raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501
+
+ self._title = title
+
+ @property
+ def state(self):
+ """Gets the state of this ReleaseEntity. # noqa: E501
+
+
+ :return: The state of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this ReleaseEntity.
+
+
+ :param state: The state of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ @property
+ def ident(self):
+ """Gets the ident of this ReleaseEntity. # noqa: E501
+
+
+ :return: The ident of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this ReleaseEntity.
+
+
+ :param ident: The ident of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this ReleaseEntity. # noqa: E501
+
+
+ :return: The revision of this ReleaseEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this ReleaseEntity.
+
+
+ :param revision: The revision of this ReleaseEntity. # noqa: E501
+ :type: int
+ """
+
+ self._revision = revision
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this ReleaseEntity. # noqa: E501
+
+
+ :return: The redirect of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this ReleaseEntity.
+
+
+ :param redirect: The redirect of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._redirect = redirect
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this ReleaseEntity. # noqa: E501
+
+
+ :return: The editgroup_id of this ReleaseEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this ReleaseEntity.
+
+
+ :param editgroup_id: The editgroup_id of this ReleaseEntity. # noqa: E501
+ :type: int
+ """
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this ReleaseEntity. # noqa: E501
+
+
+ :return: The extra of this ReleaseEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ReleaseEntity.
+
+
+ :param extra: The extra of this ReleaseEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/release_ref.py b/python/fatcat_client/models/release_ref.py
new file mode 100644
index 00000000..351c7a21
--- /dev/null
+++ b/python/fatcat_client/models/release_ref.py
@@ -0,0 +1,164 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseRef(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'index': 'int',
+ 'target_release_id': 'str',
+ 'stub': 'str'
+ }
+
+ attribute_map = {
+ 'index': 'index',
+ 'target_release_id': 'target_release_id',
+ 'stub': 'stub'
+ }
+
+ def __init__(self, index=None, target_release_id=None, stub=None): # noqa: E501
+ """ReleaseRef - a model defined in Swagger""" # noqa: E501
+
+ self._index = None
+ self._target_release_id = None
+ self._stub = None
+ self.discriminator = None
+
+ if index is not None:
+ self.index = index
+ if target_release_id is not None:
+ self.target_release_id = target_release_id
+ if stub is not None:
+ self.stub = stub
+
+ @property
+ def index(self):
+ """Gets the index of this ReleaseRef. # noqa: E501
+
+
+ :return: The index of this ReleaseRef. # noqa: E501
+ :rtype: int
+ """
+ return self._index
+
+ @index.setter
+ def index(self, index):
+ """Sets the index of this ReleaseRef.
+
+
+ :param index: The index of this ReleaseRef. # noqa: E501
+ :type: int
+ """
+
+ self._index = index
+
+ @property
+ def target_release_id(self):
+ """Gets the target_release_id of this ReleaseRef. # noqa: E501
+
+
+ :return: The target_release_id of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._target_release_id
+
+ @target_release_id.setter
+ def target_release_id(self, target_release_id):
+ """Sets the target_release_id of this ReleaseRef.
+
+
+ :param target_release_id: The target_release_id of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._target_release_id = target_release_id
+
+ @property
+ def stub(self):
+ """Gets the stub of this ReleaseRef. # noqa: E501
+
+
+ :return: The stub of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._stub
+
+ @stub.setter
+ def stub(self, stub):
+ """Sets the stub of this ReleaseRef.
+
+
+ :param stub: The stub of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._stub = stub
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseRef):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/success.py b/python/fatcat_client/models/success.py
new file mode 100644
index 00000000..56cbd63a
--- /dev/null
+++ b/python/fatcat_client/models/success.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class Success(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'message': 'str'
+ }
+
+ attribute_map = {
+ 'message': 'message'
+ }
+
+ def __init__(self, message=None): # noqa: E501
+ """Success - a model defined in Swagger""" # noqa: E501
+
+ self._message = None
+ self.discriminator = None
+
+ self.message = message
+
+ @property
+ def message(self):
+ """Gets the message of this Success. # noqa: E501
+
+
+ :return: The message of this Success. # noqa: E501
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """Sets the message of this Success.
+
+
+ :param message: The message of this Success. # noqa: E501
+ :type: str
+ """
+ if message is None:
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
+
+ self._message = message
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Success):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python/fatcat_client/models/work_entity.py b/python/fatcat_client/models/work_entity.py
new file mode 100644
index 00000000..ffdc2c43
--- /dev/null
+++ b/python/fatcat_client/models/work_entity.py
@@ -0,0 +1,274 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WorkEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'work_type': 'str',
+ 'extra': 'object',
+ 'editgroup_id': 'int',
+ 'redirect': 'str',
+ 'revision': 'int',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'work_type': 'work_type',
+ 'extra': 'extra',
+ 'editgroup_id': 'editgroup_id',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, work_type=None, extra=None, editgroup_id=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """WorkEntity - a model defined in Swagger""" # noqa: E501
+
+ self._work_type = None
+ self._extra = None
+ self._editgroup_id = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if work_type is not None:
+ self.work_type = work_type
+ 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:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def work_type(self):
+ """Gets the work_type of this WorkEntity. # noqa: E501
+
+
+ :return: The work_type of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._work_type
+
+ @work_type.setter
+ def work_type(self, work_type):
+ """Sets the work_type of this WorkEntity.
+
+
+ :param work_type: The work_type of this WorkEntity. # noqa: E501
+ :type: str
+ """
+
+ self._work_type = work_type
+
+ @property
+ def extra(self):
+ """Gets the extra of this WorkEntity. # noqa: E501
+
+
+ :return: The extra of this WorkEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this WorkEntity.
+
+
+ :param extra: The extra of this WorkEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this WorkEntity. # noqa: E501
+
+
+ :return: The editgroup_id of this WorkEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this WorkEntity.
+
+
+ :param editgroup_id: The editgroup_id of this WorkEntity. # noqa: E501
+ :type: int
+ """
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this WorkEntity. # noqa: E501
+
+
+ :return: The redirect of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this WorkEntity.
+
+
+ :param redirect: The redirect of this WorkEntity. # noqa: E501
+ :type: str
+ """
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this WorkEntity. # noqa: E501
+
+
+ :return: The revision of this WorkEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this WorkEntity.
+
+
+ :param revision: The revision of this WorkEntity. # noqa: E501
+ :type: int
+ """
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this WorkEntity. # noqa: E501
+
+
+ :return: The ident of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this WorkEntity.
+
+
+ :param ident: The ident of this WorkEntity. # noqa: E501
+ :type: str
+ """
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this WorkEntity. # noqa: E501
+
+
+ :return: The state of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this WorkEntity.
+
+
+ :param state: The state of this WorkEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WorkEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other