aboutsummaryrefslogtreecommitdiffstats
path: root/python_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-14 13:42:48 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-14 13:42:48 -0700
commit3ee54189b665d37933b6108fb85b28bb823dac4a (patch)
tree354f40d0d3258ea30c811cfb200ccb231c013107 /python_client
parent1337f7ae5c27983c732dd86bf1f11c04918eee62 (diff)
downloadfatcat-3ee54189b665d37933b6108fb85b28bb823dac4a.tar.gz
fatcat-3ee54189b665d37933b6108fb85b28bb823dac4a.zip
python codegen
Diffstat (limited to 'python_client')
-rw-r--r--python_client/README.md13
-rw-r--r--python_client/fatcat_client/__init__.py13
-rw-r--r--python_client/fatcat_client/models/__init__.py13
-rw-r--r--python_client/fatcat_client/models/file_entity.py8
-rw-r--r--python_client/fatcat_client/models/file_url.py140
-rw-r--r--python_client/fatcat_client/models/fileset_entity.py16
-rw-r--r--python_client/fatcat_client/models/fileset_file.py262
-rw-r--r--python_client/fatcat_client/models/fileset_url.py140
-rw-r--r--python_client/fatcat_client/models/release_abstract.py196
-rw-r--r--python_client/fatcat_client/models/release_entity.py16
-rw-r--r--python_client/fatcat_client/models/release_ext_ids.py346
-rw-r--r--python_client/fatcat_client/models/webcapture_cdx_line.py312
-rw-r--r--python_client/fatcat_client/models/webcapture_entity.py16
-rw-r--r--python_client/fatcat_client/models/webcapture_url.py140
-rw-r--r--python_client/tests/codegen/test_file_url.py40
-rw-r--r--python_client/tests/codegen/test_fileset_file.py40
-rw-r--r--python_client/tests/codegen/test_fileset_url.py40
-rw-r--r--python_client/tests/codegen/test_release_abstract.py40
-rw-r--r--python_client/tests/codegen/test_release_ext_ids.py40
-rw-r--r--python_client/tests/codegen/test_webcapture_cdx_line.py40
-rw-r--r--python_client/tests/codegen/test_webcapture_url.py40
21 files changed, 1865 insertions, 46 deletions
diff --git a/python_client/README.md b/python_client/README.md
index 3d95072c..f1313d99 100644
--- a/python_client/README.md
+++ b/python_client/README.md
@@ -184,18 +184,19 @@ Class | Method | HTTP request | Description
- [EntityHistoryEntry](docs/EntityHistoryEntry.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [FileEntity](docs/FileEntity.md)
- - [FileEntityUrls](docs/FileEntityUrls.md)
+ - [FileUrl](docs/FileUrl.md)
- [FilesetEntity](docs/FilesetEntity.md)
- - [FilesetEntityManifest](docs/FilesetEntityManifest.md)
+ - [FilesetFile](docs/FilesetFile.md)
+ - [FilesetUrl](docs/FilesetUrl.md)
+ - [ReleaseAbstract](docs/ReleaseAbstract.md)
- [ReleaseContrib](docs/ReleaseContrib.md)
- [ReleaseEntity](docs/ReleaseEntity.md)
- - [ReleaseEntityAbstracts](docs/ReleaseEntityAbstracts.md)
- - [ReleaseEntityExtIds](docs/ReleaseEntityExtIds.md)
+ - [ReleaseExtIds](docs/ReleaseExtIds.md)
- [ReleaseRef](docs/ReleaseRef.md)
- [Success](docs/Success.md)
+ - [WebcaptureCdxLine](docs/WebcaptureCdxLine.md)
- [WebcaptureEntity](docs/WebcaptureEntity.md)
- - [WebcaptureEntityArchiveUrls](docs/WebcaptureEntityArchiveUrls.md)
- - [WebcaptureEntityCdx](docs/WebcaptureEntityCdx.md)
+ - [WebcaptureUrl](docs/WebcaptureUrl.md)
- [WorkEntity](docs/WorkEntity.md)
diff --git a/python_client/fatcat_client/__init__.py b/python_client/fatcat_client/__init__.py
index 5c1ed7a2..089caf1f 100644
--- a/python_client/fatcat_client/__init__.py
+++ b/python_client/fatcat_client/__init__.py
@@ -35,16 +35,17 @@ from fatcat_client.models.entity_edit import EntityEdit
from fatcat_client.models.entity_history_entry import EntityHistoryEntry
from fatcat_client.models.error_response import ErrorResponse
from fatcat_client.models.file_entity import FileEntity
-from fatcat_client.models.file_entity_urls import FileEntityUrls
+from fatcat_client.models.file_url import FileUrl
from fatcat_client.models.fileset_entity import FilesetEntity
-from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest
+from fatcat_client.models.fileset_file import FilesetFile
+from fatcat_client.models.fileset_url import FilesetUrl
+from fatcat_client.models.release_abstract import ReleaseAbstract
from fatcat_client.models.release_contrib import ReleaseContrib
from fatcat_client.models.release_entity import ReleaseEntity
-from fatcat_client.models.release_entity_abstracts import ReleaseEntityAbstracts
-from fatcat_client.models.release_entity_ext_ids import ReleaseEntityExtIds
+from fatcat_client.models.release_ext_ids import ReleaseExtIds
from fatcat_client.models.release_ref import ReleaseRef
from fatcat_client.models.success import Success
+from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine
from fatcat_client.models.webcapture_entity import WebcaptureEntity
-from fatcat_client.models.webcapture_entity_archive_urls import WebcaptureEntityArchiveUrls
-from fatcat_client.models.webcapture_entity_cdx import WebcaptureEntityCdx
+from fatcat_client.models.webcapture_url import WebcaptureUrl
from fatcat_client.models.work_entity import WorkEntity
diff --git a/python_client/fatcat_client/models/__init__.py b/python_client/fatcat_client/models/__init__.py
index c8430290..ce36c999 100644
--- a/python_client/fatcat_client/models/__init__.py
+++ b/python_client/fatcat_client/models/__init__.py
@@ -28,16 +28,17 @@ from fatcat_client.models.entity_edit import EntityEdit
from fatcat_client.models.entity_history_entry import EntityHistoryEntry
from fatcat_client.models.error_response import ErrorResponse
from fatcat_client.models.file_entity import FileEntity
-from fatcat_client.models.file_entity_urls import FileEntityUrls
+from fatcat_client.models.file_url import FileUrl
from fatcat_client.models.fileset_entity import FilesetEntity
-from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest
+from fatcat_client.models.fileset_file import FilesetFile
+from fatcat_client.models.fileset_url import FilesetUrl
+from fatcat_client.models.release_abstract import ReleaseAbstract
from fatcat_client.models.release_contrib import ReleaseContrib
from fatcat_client.models.release_entity import ReleaseEntity
-from fatcat_client.models.release_entity_abstracts import ReleaseEntityAbstracts
-from fatcat_client.models.release_entity_ext_ids import ReleaseEntityExtIds
+from fatcat_client.models.release_ext_ids import ReleaseExtIds
from fatcat_client.models.release_ref import ReleaseRef
from fatcat_client.models.success import Success
+from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine
from fatcat_client.models.webcapture_entity import WebcaptureEntity
-from fatcat_client.models.webcapture_entity_archive_urls import WebcaptureEntityArchiveUrls
-from fatcat_client.models.webcapture_entity_cdx import WebcaptureEntityCdx
+from fatcat_client.models.webcapture_url import WebcaptureUrl
from fatcat_client.models.work_entity import WorkEntity
diff --git a/python_client/fatcat_client/models/file_entity.py b/python_client/fatcat_client/models/file_entity.py
index 76ea232f..c876c345 100644
--- a/python_client/fatcat_client/models/file_entity.py
+++ b/python_client/fatcat_client/models/file_entity.py
@@ -16,7 +16,7 @@ import re # noqa: F401
import six
-from fatcat_client.models.file_entity_urls import FileEntityUrls # noqa: F401,E501
+from fatcat_client.models.file_url import FileUrl # noqa: F401,E501
class FileEntity(object):
@@ -35,7 +35,7 @@ class FileEntity(object):
swagger_types = {
'release_ids': 'list[str]',
'mimetype': 'str',
- 'urls': 'list[FileEntityUrls]',
+ 'urls': 'list[FileUrl]',
'sha256': 'str',
'sha1': 'str',
'md5': 'str',
@@ -157,7 +157,7 @@ class FileEntity(object):
:return: The urls of this FileEntity. # noqa: E501
- :rtype: list[FileEntityUrls]
+ :rtype: list[FileUrl]
"""
return self._urls
@@ -167,7 +167,7 @@ class FileEntity(object):
:param urls: The urls of this FileEntity. # noqa: E501
- :type: list[FileEntityUrls]
+ :type: list[FileUrl]
"""
self._urls = urls
diff --git a/python_client/fatcat_client/models/file_url.py b/python_client/fatcat_client/models/file_url.py
new file mode 100644
index 00000000..85868810
--- /dev/null
+++ b/python_client/fatcat_client/models/file_url.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FileUrl(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 = {
+ 'url': 'str',
+ 'rel': 'str'
+ }
+
+ attribute_map = {
+ 'url': 'url',
+ 'rel': 'rel'
+ }
+
+ def __init__(self, url=None, rel=None): # noqa: E501
+ """FileUrl - a model defined in Swagger""" # noqa: E501
+
+ self._url = None
+ self._rel = None
+ self.discriminator = None
+
+ self.url = url
+ self.rel = rel
+
+ @property
+ def url(self):
+ """Gets the url of this FileUrl. # noqa: E501
+
+
+ :return: The url of this FileUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this FileUrl.
+
+
+ :param url: The url of this FileUrl. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def rel(self):
+ """Gets the rel of this FileUrl. # noqa: E501
+
+
+ :return: The rel of this FileUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this FileUrl.
+
+
+ :param rel: The rel of this FileUrl. # noqa: E501
+ :type: str
+ """
+ if rel is None:
+ raise ValueError("Invalid value for `rel`, must not be `None`") # noqa: E501
+
+ self._rel = rel
+
+ 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, FileUrl):
+ 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_client/fatcat_client/models/fileset_entity.py b/python_client/fatcat_client/models/fileset_entity.py
index 570d9a13..d4a46a81 100644
--- a/python_client/fatcat_client/models/fileset_entity.py
+++ b/python_client/fatcat_client/models/fileset_entity.py
@@ -16,8 +16,8 @@ import re # noqa: F401
import six
-from fatcat_client.models.file_entity_urls import FileEntityUrls # noqa: F401,E501
-from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest # noqa: F401,E501
+from fatcat_client.models.fileset_file import FilesetFile # noqa: F401,E501
+from fatcat_client.models.fileset_url import FilesetUrl # noqa: F401,E501
class FilesetEntity(object):
@@ -35,8 +35,8 @@ class FilesetEntity(object):
"""
swagger_types = {
'release_ids': 'list[str]',
- 'urls': 'list[FileEntityUrls]',
- 'manifest': 'list[FilesetEntityManifest]',
+ 'urls': 'list[FilesetUrl]',
+ 'manifest': 'list[FilesetFile]',
'state': 'str',
'ident': 'str',
'revision': 'str',
@@ -117,7 +117,7 @@ class FilesetEntity(object):
:return: The urls of this FilesetEntity. # noqa: E501
- :rtype: list[FileEntityUrls]
+ :rtype: list[FilesetUrl]
"""
return self._urls
@@ -127,7 +127,7 @@ class FilesetEntity(object):
:param urls: The urls of this FilesetEntity. # noqa: E501
- :type: list[FileEntityUrls]
+ :type: list[FilesetUrl]
"""
self._urls = urls
@@ -138,7 +138,7 @@ class FilesetEntity(object):
:return: The manifest of this FilesetEntity. # noqa: E501
- :rtype: list[FilesetEntityManifest]
+ :rtype: list[FilesetFile]
"""
return self._manifest
@@ -148,7 +148,7 @@ class FilesetEntity(object):
:param manifest: The manifest of this FilesetEntity. # noqa: E501
- :type: list[FilesetEntityManifest]
+ :type: list[FilesetFile]
"""
self._manifest = manifest
diff --git a/python_client/fatcat_client/models/fileset_file.py b/python_client/fatcat_client/models/fileset_file.py
new file mode 100644
index 00000000..f996a97b
--- /dev/null
+++ b/python_client/fatcat_client/models/fileset_file.py
@@ -0,0 +1,262 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FilesetFile(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 = {
+ 'path': 'str',
+ 'size': 'int',
+ 'md5': 'str',
+ 'sha1': 'str',
+ 'sha256': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'path': 'path',
+ 'size': 'size',
+ 'md5': 'md5',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, path=None, size=None, md5=None, sha1=None, sha256=None, extra=None): # noqa: E501
+ """FilesetFile - a model defined in Swagger""" # noqa: E501
+
+ self._path = None
+ self._size = None
+ self._md5 = None
+ self._sha1 = None
+ self._sha256 = None
+ self._extra = None
+ self.discriminator = None
+
+ self.path = path
+ self.size = size
+ if md5 is not None:
+ self.md5 = md5
+ if sha1 is not None:
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def path(self):
+ """Gets the path of this FilesetFile. # noqa: E501
+
+
+ :return: The path of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """Sets the path of this FilesetFile.
+
+
+ :param path: The path of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if path is None:
+ raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
+
+ self._path = path
+
+ @property
+ def size(self):
+ """Gets the size of this FilesetFile. # noqa: E501
+
+
+ :return: The size of this FilesetFile. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this FilesetFile.
+
+
+ :param size: The size of this FilesetFile. # noqa: E501
+ :type: int
+ """
+ if size is None:
+ raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501
+
+ self._size = size
+
+ @property
+ def md5(self):
+ """Gets the md5 of this FilesetFile. # noqa: E501
+
+
+ :return: The md5 of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._md5
+
+ @md5.setter
+ def md5(self, md5):
+ """Sets the md5 of this FilesetFile.
+
+
+ :param md5: The md5 of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if md5 is not None and len(md5) > 32:
+ raise ValueError("Invalid value for `md5`, length must be less than or equal to `32`") # noqa: E501
+ if md5 is not None and len(md5) < 32:
+ raise ValueError("Invalid value for `md5`, length must be greater than or equal to `32`") # noqa: E501
+ if md5 is not None and not re.search('[a-f0-9]{32}', md5): # noqa: E501
+ raise ValueError("Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
+
+ self._md5 = md5
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this FilesetFile. # noqa: E501
+
+
+ :return: The sha1 of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this FilesetFile.
+
+
+ :param sha1: The sha1 of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this FilesetFile. # noqa: E501
+
+
+ :return: The sha256 of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this FilesetFile.
+
+
+ :param sha256: The sha256 of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if sha256 is not None and len(sha256) > 64:
+ raise ValueError("Invalid value for `sha256`, length must be less than or equal to `64`") # noqa: E501
+ if sha256 is not None and len(sha256) < 64:
+ raise ValueError("Invalid value for `sha256`, length must be greater than or equal to `64`") # noqa: E501
+ if sha256 is not None and not re.search('[a-f0-9]{64}', sha256): # noqa: E501
+ raise ValueError("Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
+
+ self._sha256 = sha256
+
+ @property
+ def extra(self):
+ """Gets the extra of this FilesetFile. # noqa: E501
+
+
+ :return: The extra of this FilesetFile. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FilesetFile.
+
+
+ :param extra: The extra of this FilesetFile. # 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, FilesetFile):
+ 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_client/fatcat_client/models/fileset_url.py b/python_client/fatcat_client/models/fileset_url.py
new file mode 100644
index 00000000..e3c757e8
--- /dev/null
+++ b/python_client/fatcat_client/models/fileset_url.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FilesetUrl(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 = {
+ 'url': 'str',
+ 'rel': 'str'
+ }
+
+ attribute_map = {
+ 'url': 'url',
+ 'rel': 'rel'
+ }
+
+ def __init__(self, url=None, rel=None): # noqa: E501
+ """FilesetUrl - a model defined in Swagger""" # noqa: E501
+
+ self._url = None
+ self._rel = None
+ self.discriminator = None
+
+ self.url = url
+ self.rel = rel
+
+ @property
+ def url(self):
+ """Gets the url of this FilesetUrl. # noqa: E501
+
+
+ :return: The url of this FilesetUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this FilesetUrl.
+
+
+ :param url: The url of this FilesetUrl. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def rel(self):
+ """Gets the rel of this FilesetUrl. # noqa: E501
+
+
+ :return: The rel of this FilesetUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this FilesetUrl.
+
+
+ :param rel: The rel of this FilesetUrl. # noqa: E501
+ :type: str
+ """
+ if rel is None:
+ raise ValueError("Invalid value for `rel`, must not be `None`") # noqa: E501
+
+ self._rel = rel
+
+ 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, FilesetUrl):
+ 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_client/fatcat_client/models/release_abstract.py b/python_client/fatcat_client/models/release_abstract.py
new file mode 100644
index 00000000..39960aec
--- /dev/null
+++ b/python_client/fatcat_client/models/release_abstract.py
@@ -0,0 +1,196 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseAbstract(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 = {
+ 'sha1': 'str',
+ 'content': 'str',
+ 'mimetype': 'str',
+ 'lang': 'str'
+ }
+
+ attribute_map = {
+ 'sha1': 'sha1',
+ 'content': 'content',
+ 'mimetype': 'mimetype',
+ 'lang': 'lang'
+ }
+
+ def __init__(self, sha1=None, content=None, mimetype=None, lang=None): # noqa: E501
+ """ReleaseAbstract - a model defined in Swagger""" # noqa: E501
+
+ self._sha1 = None
+ self._content = None
+ self._mimetype = None
+ self._lang = None
+ self.discriminator = None
+
+ if sha1 is not None:
+ self.sha1 = sha1
+ if content is not None:
+ self.content = content
+ if mimetype is not None:
+ self.mimetype = mimetype
+ if lang is not None:
+ self.lang = lang
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The sha1 of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this ReleaseAbstract.
+
+
+ :param sha1: The sha1 of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def content(self):
+ """Gets the content of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The content of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._content
+
+ @content.setter
+ def content(self, content):
+ """Sets the content of this ReleaseAbstract.
+
+
+ :param content: The content of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+
+ self._content = content
+
+ @property
+ def mimetype(self):
+ """Gets the mimetype of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The mimetype of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this ReleaseAbstract.
+
+
+ :param mimetype: The mimetype of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
+ def lang(self):
+ """Gets the lang of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The lang of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._lang
+
+ @lang.setter
+ def lang(self, lang):
+ """Sets the lang of this ReleaseAbstract.
+
+
+ :param lang: The lang of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+
+ self._lang = lang
+
+ 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, ReleaseAbstract):
+ 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_client/fatcat_client/models/release_entity.py b/python_client/fatcat_client/models/release_entity.py
index d3764e7a..27685362 100644
--- a/python_client/fatcat_client/models/release_entity.py
+++ b/python_client/fatcat_client/models/release_entity.py
@@ -19,9 +19,9 @@ import six
from fatcat_client.models.container_entity import ContainerEntity # noqa: F401,E501
from fatcat_client.models.file_entity import FileEntity # noqa: F401,E501
from fatcat_client.models.fileset_entity import FilesetEntity # noqa: F401,E501
+from fatcat_client.models.release_abstract import ReleaseAbstract # noqa: F401,E501
from fatcat_client.models.release_contrib import ReleaseContrib # noqa: F401,E501
-from fatcat_client.models.release_entity_abstracts import ReleaseEntityAbstracts # noqa: F401,E501
-from fatcat_client.models.release_entity_ext_ids import ReleaseEntityExtIds # noqa: F401,E501
+from fatcat_client.models.release_ext_ids import ReleaseExtIds # noqa: F401,E501
from fatcat_client.models.release_ref import ReleaseRef # noqa: F401,E501
from fatcat_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
@@ -40,7 +40,7 @@ class ReleaseEntity(object):
and the value is json key in definition.
"""
swagger_types = {
- 'abstracts': 'list[ReleaseEntityAbstracts]',
+ 'abstracts': 'list[ReleaseAbstract]',
'refs': 'list[ReleaseRef]',
'contribs': 'list[ReleaseContrib]',
'license_slug': 'str',
@@ -51,7 +51,7 @@ class ReleaseEntity(object):
'pages': 'str',
'issue': 'str',
'volume': 'str',
- 'ext_ids': 'ReleaseEntityExtIds',
+ 'ext_ids': 'ReleaseExtIds',
'withdrawn_year': 'int',
'withdrawn_date': 'date',
'withdrawn_status': 'str',
@@ -226,7 +226,7 @@ class ReleaseEntity(object):
:return: The abstracts of this ReleaseEntity. # noqa: E501
- :rtype: list[ReleaseEntityAbstracts]
+ :rtype: list[ReleaseAbstract]
"""
return self._abstracts
@@ -236,7 +236,7 @@ class ReleaseEntity(object):
:param abstracts: The abstracts of this ReleaseEntity. # noqa: E501
- :type: list[ReleaseEntityAbstracts]
+ :type: list[ReleaseAbstract]
"""
self._abstracts = abstracts
@@ -461,7 +461,7 @@ class ReleaseEntity(object):
:return: The ext_ids of this ReleaseEntity. # noqa: E501
- :rtype: ReleaseEntityExtIds
+ :rtype: ReleaseExtIds
"""
return self._ext_ids
@@ -471,7 +471,7 @@ class ReleaseEntity(object):
:param ext_ids: The ext_ids of this ReleaseEntity. # noqa: E501
- :type: ReleaseEntityExtIds
+ :type: ReleaseExtIds
"""
if ext_ids is None:
raise ValueError("Invalid value for `ext_ids`, must not be `None`") # noqa: E501
diff --git a/python_client/fatcat_client/models/release_ext_ids.py b/python_client/fatcat_client/models/release_ext_ids.py
new file mode 100644
index 00000000..fad91c58
--- /dev/null
+++ b/python_client/fatcat_client/models/release_ext_ids.py
@@ -0,0 +1,346 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseExtIds(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 = {
+ 'doi': 'str',
+ 'wikidata_qid': 'str',
+ 'isbn13': 'str',
+ 'pmid': 'str',
+ 'pmcid': 'str',
+ 'core': 'str',
+ 'arxiv': 'str',
+ 'jstor': 'str',
+ 'ark': 'str',
+ 'mag': 'str'
+ }
+
+ attribute_map = {
+ 'doi': 'doi',
+ 'wikidata_qid': 'wikidata_qid',
+ 'isbn13': 'isbn13',
+ 'pmid': 'pmid',
+ 'pmcid': 'pmcid',
+ 'core': 'core',
+ 'arxiv': 'arxiv',
+ 'jstor': 'jstor',
+ 'ark': 'ark',
+ 'mag': 'mag'
+ }
+
+ def __init__(self, doi=None, wikidata_qid=None, isbn13=None, pmid=None, pmcid=None, core=None, arxiv=None, jstor=None, ark=None, mag=None): # noqa: E501
+ """ReleaseExtIds - a model defined in Swagger""" # noqa: E501
+
+ self._doi = None
+ self._wikidata_qid = None
+ self._isbn13 = None
+ self._pmid = None
+ self._pmcid = None
+ self._core = None
+ self._arxiv = None
+ self._jstor = None
+ self._ark = None
+ self._mag = None
+ self.discriminator = None
+
+ if doi is not None:
+ self.doi = doi
+ if wikidata_qid is not None:
+ self.wikidata_qid = wikidata_qid
+ if isbn13 is not None:
+ self.isbn13 = isbn13
+ if pmid is not None:
+ self.pmid = pmid
+ if pmcid is not None:
+ self.pmcid = pmcid
+ if core is not None:
+ self.core = core
+ if arxiv is not None:
+ self.arxiv = arxiv
+ if jstor is not None:
+ self.jstor = jstor
+ if ark is not None:
+ self.ark = ark
+ if mag is not None:
+ self.mag = mag
+
+ @property
+ def doi(self):
+ """Gets the doi of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The doi of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._doi
+
+ @doi.setter
+ def doi(self, doi):
+ """Sets the doi of this ReleaseExtIds.
+
+
+ :param doi: The doi of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._doi = doi
+
+ @property
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The wikidata_qid of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._wikidata_qid
+
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this ReleaseExtIds.
+
+
+ :param wikidata_qid: The wikidata_qid of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._wikidata_qid = wikidata_qid
+
+ @property
+ def isbn13(self):
+ """Gets the isbn13 of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The isbn13 of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._isbn13
+
+ @isbn13.setter
+ def isbn13(self, isbn13):
+ """Sets the isbn13 of this ReleaseExtIds.
+
+
+ :param isbn13: The isbn13 of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._isbn13 = isbn13
+
+ @property
+ def pmid(self):
+ """Gets the pmid of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The pmid of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._pmid
+
+ @pmid.setter
+ def pmid(self, pmid):
+ """Sets the pmid of this ReleaseExtIds.
+
+
+ :param pmid: The pmid of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._pmid = pmid
+
+ @property
+ def pmcid(self):
+ """Gets the pmcid of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The pmcid of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._pmcid
+
+ @pmcid.setter
+ def pmcid(self, pmcid):
+ """Sets the pmcid of this ReleaseExtIds.
+
+
+ :param pmcid: The pmcid of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._pmcid = pmcid
+
+ @property
+ def core(self):
+ """Gets the core of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The core of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._core
+
+ @core.setter
+ def core(self, core):
+ """Sets the core of this ReleaseExtIds.
+
+
+ :param core: The core of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._core = core
+
+ @property
+ def arxiv(self):
+ """Gets the arxiv of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The arxiv of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._arxiv
+
+ @arxiv.setter
+ def arxiv(self, arxiv):
+ """Sets the arxiv of this ReleaseExtIds.
+
+
+ :param arxiv: The arxiv of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._arxiv = arxiv
+
+ @property
+ def jstor(self):
+ """Gets the jstor of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The jstor of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._jstor
+
+ @jstor.setter
+ def jstor(self, jstor):
+ """Sets the jstor of this ReleaseExtIds.
+
+
+ :param jstor: The jstor of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._jstor = jstor
+
+ @property
+ def ark(self):
+ """Gets the ark of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The ark of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._ark
+
+ @ark.setter
+ def ark(self, ark):
+ """Sets the ark of this ReleaseExtIds.
+
+
+ :param ark: The ark of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._ark = ark
+
+ @property
+ def mag(self):
+ """Gets the mag of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The mag of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._mag
+
+ @mag.setter
+ def mag(self, mag):
+ """Sets the mag of this ReleaseExtIds.
+
+
+ :param mag: The mag of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._mag = mag
+
+ 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, ReleaseExtIds):
+ 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_client/fatcat_client/models/webcapture_cdx_line.py b/python_client/fatcat_client/models/webcapture_cdx_line.py
new file mode 100644
index 00000000..fa9e264f
--- /dev/null
+++ b/python_client/fatcat_client/models/webcapture_cdx_line.py
@@ -0,0 +1,312 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureCdxLine(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 = {
+ 'surt': 'str',
+ 'timestamp': 'datetime',
+ 'url': 'str',
+ 'mimetype': 'str',
+ 'status_code': 'int',
+ 'size': 'int',
+ 'sha1': 'str',
+ 'sha256': 'str'
+ }
+
+ attribute_map = {
+ 'surt': 'surt',
+ 'timestamp': 'timestamp',
+ 'url': 'url',
+ 'mimetype': 'mimetype',
+ 'status_code': 'status_code',
+ 'size': 'size',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256'
+ }
+
+ def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, size=None, sha1=None, sha256=None): # noqa: E501
+ """WebcaptureCdxLine - a model defined in Swagger""" # noqa: E501
+
+ self._surt = None
+ self._timestamp = None
+ self._url = None
+ self._mimetype = None
+ self._status_code = None
+ self._size = None
+ self._sha1 = None
+ self._sha256 = None
+ self.discriminator = None
+
+ self.surt = surt
+ self.timestamp = timestamp
+ self.url = url
+ if mimetype is not None:
+ self.mimetype = mimetype
+ if status_code is not None:
+ self.status_code = status_code
+ if size is not None:
+ self.size = size
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+
+ @property
+ def surt(self):
+ """Gets the surt of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The surt of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._surt
+
+ @surt.setter
+ def surt(self, surt):
+ """Sets the surt of this WebcaptureCdxLine.
+
+
+ :param surt: The surt of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if surt is None:
+ raise ValueError("Invalid value for `surt`, must not be `None`") # noqa: E501
+
+ self._surt = surt
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this WebcaptureCdxLine. # noqa: E501
+
+ UTC, 'Z'-terminated, second (or better) precision # noqa: E501
+
+ :return: The timestamp of this WebcaptureCdxLine. # noqa: E501
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this WebcaptureCdxLine.
+
+ UTC, 'Z'-terminated, second (or better) precision # noqa: E501
+
+ :param timestamp: The timestamp of this WebcaptureCdxLine. # noqa: E501
+ :type: datetime
+ """
+ if timestamp is None:
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
+
+ self._timestamp = timestamp
+
+ @property
+ def url(self):
+ """Gets the url of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The url of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureCdxLine.
+
+
+ :param url: The url of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def mimetype(self):
+ """Gets the mimetype of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The mimetype of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this WebcaptureCdxLine.
+
+
+ :param mimetype: The mimetype of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
+ def status_code(self):
+ """Gets the status_code of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The status_code of this WebcaptureCdxLine. # noqa: E501
+ :rtype: int
+ """
+ return self._status_code
+
+ @status_code.setter
+ def status_code(self, status_code):
+ """Sets the status_code of this WebcaptureCdxLine.
+
+
+ :param status_code: The status_code of this WebcaptureCdxLine. # noqa: E501
+ :type: int
+ """
+
+ self._status_code = status_code
+
+ @property
+ def size(self):
+ """Gets the size of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The size of this WebcaptureCdxLine. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this WebcaptureCdxLine.
+
+
+ :param size: The size of this WebcaptureCdxLine. # noqa: E501
+ :type: int
+ """
+
+ self._size = size
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The sha1 of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this WebcaptureCdxLine.
+
+
+ :param sha1: The sha1 of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if sha1 is None:
+ raise ValueError("Invalid value for `sha1`, must not be `None`") # noqa: E501
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The sha256 of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this WebcaptureCdxLine.
+
+
+ :param sha256: The sha256 of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if sha256 is not None and len(sha256) > 64:
+ raise ValueError("Invalid value for `sha256`, length must be less than or equal to `64`") # noqa: E501
+ if sha256 is not None and len(sha256) < 64:
+ raise ValueError("Invalid value for `sha256`, length must be greater than or equal to `64`") # noqa: E501
+ if sha256 is not None and not re.search('[a-f0-9]{64}', sha256): # noqa: E501
+ raise ValueError("Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
+
+ self._sha256 = sha256
+
+ 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, WebcaptureCdxLine):
+ 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_client/fatcat_client/models/webcapture_entity.py b/python_client/fatcat_client/models/webcapture_entity.py
index 1f3b1fa5..03c0e595 100644
--- a/python_client/fatcat_client/models/webcapture_entity.py
+++ b/python_client/fatcat_client/models/webcapture_entity.py
@@ -16,8 +16,8 @@ import re # noqa: F401
import six
-from fatcat_client.models.webcapture_entity_archive_urls import WebcaptureEntityArchiveUrls # noqa: F401,E501
-from fatcat_client.models.webcapture_entity_cdx import WebcaptureEntityCdx # noqa: F401,E501
+from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
+from fatcat_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501
class WebcaptureEntity(object):
@@ -37,8 +37,8 @@ class WebcaptureEntity(object):
'release_ids': 'list[str]',
'timestamp': 'datetime',
'original_url': 'str',
- 'archive_urls': 'list[WebcaptureEntityArchiveUrls]',
- 'cdx': 'list[WebcaptureEntityCdx]',
+ 'archive_urls': 'list[WebcaptureUrl]',
+ 'cdx': 'list[WebcaptureCdxLine]',
'edit_extra': 'object',
'extra': 'object',
'redirect': 'str',
@@ -171,7 +171,7 @@ class WebcaptureEntity(object):
:return: The archive_urls of this WebcaptureEntity. # noqa: E501
- :rtype: list[WebcaptureEntityArchiveUrls]
+ :rtype: list[WebcaptureUrl]
"""
return self._archive_urls
@@ -181,7 +181,7 @@ class WebcaptureEntity(object):
:param archive_urls: The archive_urls of this WebcaptureEntity. # noqa: E501
- :type: list[WebcaptureEntityArchiveUrls]
+ :type: list[WebcaptureUrl]
"""
self._archive_urls = archive_urls
@@ -192,7 +192,7 @@ class WebcaptureEntity(object):
:return: The cdx of this WebcaptureEntity. # noqa: E501
- :rtype: list[WebcaptureEntityCdx]
+ :rtype: list[WebcaptureCdxLine]
"""
return self._cdx
@@ -202,7 +202,7 @@ class WebcaptureEntity(object):
:param cdx: The cdx of this WebcaptureEntity. # noqa: E501
- :type: list[WebcaptureEntityCdx]
+ :type: list[WebcaptureCdxLine]
"""
self._cdx = cdx
diff --git a/python_client/fatcat_client/models/webcapture_url.py b/python_client/fatcat_client/models/webcapture_url.py
new file mode 100644
index 00000000..3efc71a3
--- /dev/null
+++ b/python_client/fatcat_client/models/webcapture_url.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureUrl(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 = {
+ 'url': 'str',
+ 'rel': 'str'
+ }
+
+ attribute_map = {
+ 'url': 'url',
+ 'rel': 'rel'
+ }
+
+ def __init__(self, url=None, rel=None): # noqa: E501
+ """WebcaptureUrl - a model defined in Swagger""" # noqa: E501
+
+ self._url = None
+ self._rel = None
+ self.discriminator = None
+
+ self.url = url
+ self.rel = rel
+
+ @property
+ def url(self):
+ """Gets the url of this WebcaptureUrl. # noqa: E501
+
+
+ :return: The url of this WebcaptureUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureUrl.
+
+
+ :param url: The url of this WebcaptureUrl. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def rel(self):
+ """Gets the rel of this WebcaptureUrl. # noqa: E501
+
+
+ :return: The rel of this WebcaptureUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this WebcaptureUrl.
+
+
+ :param rel: The rel of this WebcaptureUrl. # noqa: E501
+ :type: str
+ """
+ if rel is None:
+ raise ValueError("Invalid value for `rel`, must not be `None`") # noqa: E501
+
+ self._rel = rel
+
+ 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, WebcaptureUrl):
+ 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_client/tests/codegen/test_file_url.py b/python_client/tests/codegen/test_file_url.py
new file mode 100644
index 00000000..59cb6aad
--- /dev/null
+++ b/python_client/tests/codegen/test_file_url.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.file_url import FileUrl # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestFileUrl(unittest.TestCase):
+ """FileUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFileUrl(self):
+ """Test FileUrl"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.file_url.FileUrl() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_client/tests/codegen/test_fileset_file.py b/python_client/tests/codegen/test_fileset_file.py
new file mode 100644
index 00000000..73442213
--- /dev/null
+++ b/python_client/tests/codegen/test_fileset_file.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.fileset_file import FilesetFile # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestFilesetFile(unittest.TestCase):
+ """FilesetFile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFilesetFile(self):
+ """Test FilesetFile"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.fileset_file.FilesetFile() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_client/tests/codegen/test_fileset_url.py b/python_client/tests/codegen/test_fileset_url.py
new file mode 100644
index 00000000..1ae67c1c
--- /dev/null
+++ b/python_client/tests/codegen/test_fileset_url.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.fileset_url import FilesetUrl # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestFilesetUrl(unittest.TestCase):
+ """FilesetUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFilesetUrl(self):
+ """Test FilesetUrl"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.fileset_url.FilesetUrl() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_client/tests/codegen/test_release_abstract.py b/python_client/tests/codegen/test_release_abstract.py
new file mode 100644
index 00000000..2964202a
--- /dev/null
+++ b/python_client/tests/codegen/test_release_abstract.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.release_abstract import ReleaseAbstract # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestReleaseAbstract(unittest.TestCase):
+ """ReleaseAbstract unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseAbstract(self):
+ """Test ReleaseAbstract"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.release_abstract.ReleaseAbstract() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_client/tests/codegen/test_release_ext_ids.py b/python_client/tests/codegen/test_release_ext_ids.py
new file mode 100644
index 00000000..1f90d905
--- /dev/null
+++ b/python_client/tests/codegen/test_release_ext_ids.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.release_ext_ids import ReleaseExtIds # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestReleaseExtIds(unittest.TestCase):
+ """ReleaseExtIds unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseExtIds(self):
+ """Test ReleaseExtIds"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.release_ext_ids.ReleaseExtIds() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_client/tests/codegen/test_webcapture_cdx_line.py b/python_client/tests/codegen/test_webcapture_cdx_line.py
new file mode 100644
index 00000000..51f0a99c
--- /dev/null
+++ b/python_client/tests/codegen/test_webcapture_cdx_line.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestWebcaptureCdxLine(unittest.TestCase):
+ """WebcaptureCdxLine unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWebcaptureCdxLine(self):
+ """Test WebcaptureCdxLine"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.webcapture_cdx_line.WebcaptureCdxLine() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_client/tests/codegen/test_webcapture_url.py b/python_client/tests/codegen/test_webcapture_url.py
new file mode 100644
index 00000000..b866ee54
--- /dev/null
+++ b/python_client/tests/codegen/test_webcapture_url.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.2.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_client
+from fatcat_client.models.webcapture_url import WebcaptureUrl # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestWebcaptureUrl(unittest.TestCase):
+ """WebcaptureUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWebcaptureUrl(self):
+ """Test WebcaptureUrl"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.webcapture_url.WebcaptureUrl() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()