summaryrefslogtreecommitdiffstats
path: root/python_client
diff options
context:
space:
mode:
Diffstat (limited to 'python_client')
-rw-r--r--python_client/README.md1
-rw-r--r--python_client/fatcat_client/__init__.py1
-rw-r--r--python_client/fatcat_client/api/default_api.py34
-rw-r--r--python_client/fatcat_client/models/__init__.py1
-rw-r--r--python_client/fatcat_client/models/release_contrib.py54
-rw-r--r--python_client/fatcat_client/models/release_entity.py340
-rw-r--r--python_client/fatcat_client/models/release_entity_ext_ids.py346
-rw-r--r--python_client/fatcat_client/models/webcapture_entity_cdx.py28
-rw-r--r--python_client/tests/codegen/test_release_entity_ext_ids.py40
9 files changed, 649 insertions, 196 deletions
diff --git a/python_client/README.md b/python_client/README.md
index e435a34d..3d95072c 100644
--- a/python_client/README.md
+++ b/python_client/README.md
@@ -190,6 +190,7 @@ Class | Method | HTTP request | Description
- [ReleaseContrib](docs/ReleaseContrib.md)
- [ReleaseEntity](docs/ReleaseEntity.md)
- [ReleaseEntityAbstracts](docs/ReleaseEntityAbstracts.md)
+ - [ReleaseEntityExtIds](docs/ReleaseEntityExtIds.md)
- [ReleaseRef](docs/ReleaseRef.md)
- [Success](docs/Success.md)
- [WebcaptureEntity](docs/WebcaptureEntity.md)
diff --git a/python_client/fatcat_client/__init__.py b/python_client/fatcat_client/__init__.py
index 0624012b..5c1ed7a2 100644
--- a/python_client/fatcat_client/__init__.py
+++ b/python_client/fatcat_client/__init__.py
@@ -41,6 +41,7 @@ from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest
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_ref import ReleaseRef
from fatcat_client.models.success import Success
from fatcat_client.models.webcapture_entity import WebcaptureEntity
diff --git a/python_client/fatcat_client/api/default_api.py b/python_client/fatcat_client/api/default_api.py
index 7083ca1b..61efa2a0 100644
--- a/python_client/fatcat_client/api/default_api.py
+++ b/python_client/fatcat_client/api/default_api.py
@@ -8891,9 +8891,11 @@ class DefaultApi(object):
:param str isbn13:
:param str pmid:
:param str pmcid:
- :param str core_id:
- :param str arxiv_id:
- :param str jstor_id:
+ :param str core:
+ :param str arxiv:
+ :param str jstor:
+ :param str ark:
+ :param str mag:
:param str expand: List of sub-entities to expand in response.
:param str hide: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid.
:return: ReleaseEntity
@@ -8921,9 +8923,11 @@ class DefaultApi(object):
:param str isbn13:
:param str pmid:
:param str pmcid:
- :param str core_id:
- :param str arxiv_id:
- :param str jstor_id:
+ :param str core:
+ :param str arxiv:
+ :param str jstor:
+ :param str ark:
+ :param str mag:
:param str expand: List of sub-entities to expand in response.
:param str hide: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid.
:return: ReleaseEntity
@@ -8931,7 +8935,7 @@ class DefaultApi(object):
returns the request thread.
"""
- all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core_id', 'arxiv_id', 'jstor_id', 'expand', 'hide'] # noqa: E501
+ all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core', 'arxiv', 'jstor', 'ark', 'mag', 'expand', 'hide'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -8962,12 +8966,16 @@ class DefaultApi(object):
query_params.append(('pmid', params['pmid'])) # noqa: E501
if 'pmcid' in params:
query_params.append(('pmcid', params['pmcid'])) # noqa: E501
- if 'core_id' in params:
- query_params.append(('core_id', params['core_id'])) # noqa: E501
- if 'arxiv_id' in params:
- query_params.append(('arxiv_id', params['arxiv_id'])) # noqa: E501
- if 'jstor_id' in params:
- query_params.append(('jstor_id', params['jstor_id'])) # noqa: E501
+ if 'core' in params:
+ query_params.append(('core', params['core'])) # noqa: E501
+ if 'arxiv' in params:
+ query_params.append(('arxiv', params['arxiv'])) # noqa: E501
+ if 'jstor' in params:
+ query_params.append(('jstor', params['jstor'])) # noqa: E501
+ if 'ark' in params:
+ query_params.append(('ark', params['ark'])) # noqa: E501
+ if 'mag' in params:
+ query_params.append(('mag', params['mag'])) # noqa: E501
if 'expand' in params:
query_params.append(('expand', params['expand'])) # noqa: E501
if 'hide' in params:
diff --git a/python_client/fatcat_client/models/__init__.py b/python_client/fatcat_client/models/__init__.py
index 564455a4..c8430290 100644
--- a/python_client/fatcat_client/models/__init__.py
+++ b/python_client/fatcat_client/models/__init__.py
@@ -34,6 +34,7 @@ from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest
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_ref import ReleaseRef
from fatcat_client.models.success import Success
from fatcat_client.models.webcapture_entity import WebcaptureEntity
diff --git a/python_client/fatcat_client/models/release_contrib.py b/python_client/fatcat_client/models/release_contrib.py
index 580221a1..d70a7304 100644
--- a/python_client/fatcat_client/models/release_contrib.py
+++ b/python_client/fatcat_client/models/release_contrib.py
@@ -37,6 +37,8 @@ class ReleaseContrib(object):
'creator_id': 'str',
'creator': 'CreatorEntity',
'raw_name': 'str',
+ 'given_name': 'str',
+ 'surname': 'str',
'role': 'str',
'raw_affiliation': 'str',
'extra': 'object'
@@ -47,18 +49,22 @@ class ReleaseContrib(object):
'creator_id': 'creator_id',
'creator': 'creator',
'raw_name': 'raw_name',
+ 'given_name': 'given_name',
+ 'surname': 'surname',
'role': 'role',
'raw_affiliation': 'raw_affiliation',
'extra': 'extra'
}
- def __init__(self, index=None, creator_id=None, creator=None, raw_name=None, role=None, raw_affiliation=None, extra=None): # noqa: E501
+ def __init__(self, index=None, creator_id=None, creator=None, raw_name=None, given_name=None, surname=None, role=None, raw_affiliation=None, extra=None): # noqa: E501
"""ReleaseContrib - a model defined in Swagger""" # noqa: E501
self._index = None
self._creator_id = None
self._creator = None
self._raw_name = None
+ self._given_name = None
+ self._surname = None
self._role = None
self._raw_affiliation = None
self._extra = None
@@ -72,6 +78,10 @@ class ReleaseContrib(object):
self.creator = creator
if raw_name is not None:
self.raw_name = raw_name
+ if given_name is not None:
+ self.given_name = given_name
+ if surname is not None:
+ self.surname = surname
if role is not None:
self.role = role
if raw_affiliation is not None:
@@ -174,6 +184,48 @@ class ReleaseContrib(object):
self._raw_name = raw_name
@property
+ def given_name(self):
+ """Gets the given_name of this ReleaseContrib. # noqa: E501
+
+
+ :return: The given_name of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._given_name
+
+ @given_name.setter
+ def given_name(self, given_name):
+ """Sets the given_name of this ReleaseContrib.
+
+
+ :param given_name: The given_name of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._given_name = given_name
+
+ @property
+ def surname(self):
+ """Gets the surname of this ReleaseContrib. # noqa: E501
+
+
+ :return: The surname of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._surname
+
+ @surname.setter
+ def surname(self, surname):
+ """Sets the surname of this ReleaseContrib.
+
+
+ :param surname: The surname of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._surname = surname
+
+ @property
def role(self):
"""Gets the role of this ReleaseContrib. # noqa: E501
diff --git a/python_client/fatcat_client/models/release_entity.py b/python_client/fatcat_client/models/release_entity.py
index cb5aedcd..d3764e7a 100644
--- a/python_client/fatcat_client/models/release_entity.py
+++ b/python_client/fatcat_client/models/release_entity.py
@@ -21,6 +21,7 @@ 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_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_ref import ReleaseRef # noqa: F401,E501
from fatcat_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
@@ -45,20 +46,18 @@ class ReleaseEntity(object):
'license_slug': 'str',
'language': 'str',
'publisher': 'str',
+ 'version': 'str',
+ 'number': 'str',
'pages': 'str',
'issue': 'str',
'volume': 'str',
- 'jstor_id': 'str',
- 'arxiv_id': 'str',
- 'core_id': 'str',
- 'pmcid': 'str',
- 'pmid': 'str',
- 'isbn13': 'str',
- 'wikidata_qid': 'str',
- 'doi': 'str',
+ 'ext_ids': 'ReleaseEntityExtIds',
+ 'withdrawn_year': 'int',
+ 'withdrawn_date': 'date',
+ 'withdrawn_status': 'str',
'release_year': 'int',
'release_date': 'date',
- 'release_status': 'str',
+ 'release_stage': 'str',
'release_type': 'str',
'container_id': 'str',
'webcaptures': 'list[WebcaptureEntity]',
@@ -67,6 +66,7 @@ class ReleaseEntity(object):
'container': 'ContainerEntity',
'work_id': 'str',
'original_title': 'str',
+ 'subtitle': 'str',
'title': 'str',
'state': 'str',
'ident': 'str',
@@ -83,20 +83,18 @@ class ReleaseEntity(object):
'license_slug': 'license_slug',
'language': 'language',
'publisher': 'publisher',
+ 'version': 'version',
+ 'number': 'number',
'pages': 'pages',
'issue': 'issue',
'volume': 'volume',
- 'jstor_id': 'jstor_id',
- 'arxiv_id': 'arxiv_id',
- 'core_id': 'core_id',
- 'pmcid': 'pmcid',
- 'pmid': 'pmid',
- 'isbn13': 'isbn13',
- 'wikidata_qid': 'wikidata_qid',
- 'doi': 'doi',
+ 'ext_ids': 'ext_ids',
+ 'withdrawn_year': 'withdrawn_year',
+ 'withdrawn_date': 'withdrawn_date',
+ 'withdrawn_status': 'withdrawn_status',
'release_year': 'release_year',
'release_date': 'release_date',
- 'release_status': 'release_status',
+ 'release_stage': 'release_stage',
'release_type': 'release_type',
'container_id': 'container_id',
'webcaptures': 'webcaptures',
@@ -105,6 +103,7 @@ class ReleaseEntity(object):
'container': 'container',
'work_id': 'work_id',
'original_title': 'original_title',
+ 'subtitle': 'subtitle',
'title': 'title',
'state': 'state',
'ident': 'ident',
@@ -114,7 +113,7 @@ class ReleaseEntity(object):
'edit_extra': 'edit_extra'
}
- def __init__(self, abstracts=None, refs=None, contribs=None, license_slug=None, language=None, publisher=None, pages=None, issue=None, volume=None, jstor_id=None, arxiv_id=None, core_id=None, pmcid=None, pmid=None, isbn13=None, wikidata_qid=None, doi=None, release_year=None, release_date=None, release_status=None, release_type=None, container_id=None, webcaptures=None, filesets=None, files=None, container=None, work_id=None, original_title=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ def __init__(self, abstracts=None, refs=None, contribs=None, license_slug=None, language=None, publisher=None, version=None, number=None, pages=None, issue=None, volume=None, ext_ids=None, withdrawn_year=None, withdrawn_date=None, withdrawn_status=None, release_year=None, release_date=None, release_stage=None, release_type=None, container_id=None, webcaptures=None, filesets=None, files=None, container=None, work_id=None, original_title=None, subtitle=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
"""ReleaseEntity - a model defined in Swagger""" # noqa: E501
self._abstracts = None
@@ -123,20 +122,18 @@ class ReleaseEntity(object):
self._license_slug = None
self._language = None
self._publisher = None
+ self._version = None
+ self._number = None
self._pages = None
self._issue = None
self._volume = None
- self._jstor_id = None
- self._arxiv_id = None
- self._core_id = None
- self._pmcid = None
- self._pmid = None
- self._isbn13 = None
- self._wikidata_qid = None
- self._doi = None
+ self._ext_ids = None
+ self._withdrawn_year = None
+ self._withdrawn_date = None
+ self._withdrawn_status = None
self._release_year = None
self._release_date = None
- self._release_status = None
+ self._release_stage = None
self._release_type = None
self._container_id = None
self._webcaptures = None
@@ -145,6 +142,7 @@ class ReleaseEntity(object):
self._container = None
self._work_id = None
self._original_title = None
+ self._subtitle = None
self._title = None
self._state = None
self._ident = None
@@ -166,34 +164,29 @@ class ReleaseEntity(object):
self.language = language
if publisher is not None:
self.publisher = publisher
+ if version is not None:
+ self.version = version
+ if number is not None:
+ self.number = number
if pages is not None:
self.pages = pages
if issue is not None:
self.issue = issue
if volume is not None:
self.volume = volume
- if jstor_id is not None:
- self.jstor_id = jstor_id
- if arxiv_id is not None:
- self.arxiv_id = arxiv_id
- if core_id is not None:
- self.core_id = core_id
- if pmcid is not None:
- self.pmcid = pmcid
- if pmid is not None:
- self.pmid = pmid
- if isbn13 is not None:
- self.isbn13 = isbn13
- if wikidata_qid is not None:
- self.wikidata_qid = wikidata_qid
- if doi is not None:
- self.doi = doi
+ self.ext_ids = ext_ids
+ if withdrawn_year is not None:
+ self.withdrawn_year = withdrawn_year
+ if withdrawn_date is not None:
+ self.withdrawn_date = withdrawn_date
+ if withdrawn_status is not None:
+ self.withdrawn_status = withdrawn_status
if release_year is not None:
self.release_year = release_year
if release_date is not None:
self.release_date = release_date
- if release_status is not None:
- self.release_status = release_status
+ if release_stage is not None:
+ self.release_stage = release_stage
if release_type is not None:
self.release_type = release_type
if container_id is not None:
@@ -210,6 +203,8 @@ class ReleaseEntity(object):
self.work_id = work_id
if original_title is not None:
self.original_title = original_title
+ if subtitle is not None:
+ self.subtitle = subtitle
if title is not None:
self.title = title
if state is not None:
@@ -356,6 +351,48 @@ class ReleaseEntity(object):
self._publisher = publisher
@property
+ def version(self):
+ """Gets the version of this ReleaseEntity. # noqa: E501
+
+
+ :return: The version of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """Sets the version of this ReleaseEntity.
+
+
+ :param version: The version of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._version = version
+
+ @property
+ def number(self):
+ """Gets the number of this ReleaseEntity. # noqa: E501
+
+
+ :return: The number of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._number
+
+ @number.setter
+ def number(self, number):
+ """Sets the number of this ReleaseEntity.
+
+
+ :param number: The number of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._number = number
+
+ @property
def pages(self):
"""Gets the pages of this ReleaseEntity. # noqa: E501
@@ -419,172 +456,90 @@ class ReleaseEntity(object):
self._volume = volume
@property
- def jstor_id(self):
- """Gets the jstor_id of this ReleaseEntity. # noqa: E501
-
-
- :return: The jstor_id of this ReleaseEntity. # noqa: E501
- :rtype: str
- """
- return self._jstor_id
-
- @jstor_id.setter
- def jstor_id(self, jstor_id):
- """Sets the jstor_id of this ReleaseEntity.
-
-
- :param jstor_id: The jstor_id of this ReleaseEntity. # noqa: E501
- :type: str
- """
-
- self._jstor_id = jstor_id
-
- @property
- def arxiv_id(self):
- """Gets the arxiv_id of this ReleaseEntity. # noqa: E501
-
-
- :return: The arxiv_id of this ReleaseEntity. # noqa: E501
- :rtype: str
- """
- return self._arxiv_id
-
- @arxiv_id.setter
- def arxiv_id(self, arxiv_id):
- """Sets the arxiv_id of this ReleaseEntity.
-
-
- :param arxiv_id: The arxiv_id of this ReleaseEntity. # noqa: E501
- :type: str
- """
-
- self._arxiv_id = arxiv_id
-
- @property
- def core_id(self):
- """Gets the core_id of this ReleaseEntity. # noqa: E501
-
-
- :return: The core_id of this ReleaseEntity. # noqa: E501
- :rtype: str
- """
- return self._core_id
-
- @core_id.setter
- def core_id(self, core_id):
- """Sets the core_id of this ReleaseEntity.
-
-
- :param core_id: The core_id of this ReleaseEntity. # noqa: E501
- :type: str
- """
-
- self._core_id = core_id
-
- @property
- def pmcid(self):
- """Gets the pmcid of this ReleaseEntity. # noqa: E501
+ def ext_ids(self):
+ """Gets the ext_ids of this ReleaseEntity. # noqa: E501
- :return: The pmcid of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The ext_ids of this ReleaseEntity. # noqa: E501
+ :rtype: ReleaseEntityExtIds
"""
- return self._pmcid
+ return self._ext_ids
- @pmcid.setter
- def pmcid(self, pmcid):
- """Sets the pmcid of this ReleaseEntity.
+ @ext_ids.setter
+ def ext_ids(self, ext_ids):
+ """Sets the ext_ids of this ReleaseEntity.
- :param pmcid: The pmcid of this ReleaseEntity. # noqa: E501
- :type: str
+ :param ext_ids: The ext_ids of this ReleaseEntity. # noqa: E501
+ :type: ReleaseEntityExtIds
"""
+ if ext_ids is None:
+ raise ValueError("Invalid value for `ext_ids`, must not be `None`") # noqa: E501
- self._pmcid = pmcid
+ self._ext_ids = ext_ids
@property
- def pmid(self):
- """Gets the pmid of this ReleaseEntity. # noqa: E501
-
-
- :return: The pmid of this ReleaseEntity. # noqa: E501
- :rtype: str
- """
- return self._pmid
-
- @pmid.setter
- def pmid(self, pmid):
- """Sets the pmid of this ReleaseEntity.
-
-
- :param pmid: The pmid of this ReleaseEntity. # noqa: E501
- :type: str
- """
+ def withdrawn_year(self):
+ """Gets the withdrawn_year of this ReleaseEntity. # noqa: E501
- self._pmid = pmid
- @property
- def isbn13(self):
- """Gets the isbn13 of this ReleaseEntity. # noqa: E501
-
-
- :return: The isbn13 of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The withdrawn_year of this ReleaseEntity. # noqa: E501
+ :rtype: int
"""
- return self._isbn13
+ return self._withdrawn_year
- @isbn13.setter
- def isbn13(self, isbn13):
- """Sets the isbn13 of this ReleaseEntity.
+ @withdrawn_year.setter
+ def withdrawn_year(self, withdrawn_year):
+ """Sets the withdrawn_year of this ReleaseEntity.
- :param isbn13: The isbn13 of this ReleaseEntity. # noqa: E501
- :type: str
+ :param withdrawn_year: The withdrawn_year of this ReleaseEntity. # noqa: E501
+ :type: int
"""
- self._isbn13 = isbn13
+ self._withdrawn_year = withdrawn_year
@property
- def wikidata_qid(self):
- """Gets the wikidata_qid of this ReleaseEntity. # noqa: E501
+ def withdrawn_date(self):
+ """Gets the withdrawn_date of this ReleaseEntity. # noqa: E501
- :return: The wikidata_qid of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The withdrawn_date of this ReleaseEntity. # noqa: E501
+ :rtype: date
"""
- return self._wikidata_qid
+ return self._withdrawn_date
- @wikidata_qid.setter
- def wikidata_qid(self, wikidata_qid):
- """Sets the wikidata_qid of this ReleaseEntity.
+ @withdrawn_date.setter
+ def withdrawn_date(self, withdrawn_date):
+ """Sets the withdrawn_date of this ReleaseEntity.
- :param wikidata_qid: The wikidata_qid of this ReleaseEntity. # noqa: E501
- :type: str
+ :param withdrawn_date: The withdrawn_date of this ReleaseEntity. # noqa: E501
+ :type: date
"""
- self._wikidata_qid = wikidata_qid
+ self._withdrawn_date = withdrawn_date
@property
- def doi(self):
- """Gets the doi of this ReleaseEntity. # noqa: E501
+ def withdrawn_status(self):
+ """Gets the withdrawn_status of this ReleaseEntity. # noqa: E501
- :return: The doi of this ReleaseEntity. # noqa: E501
+ :return: The withdrawn_status of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._doi
+ return self._withdrawn_status
- @doi.setter
- def doi(self, doi):
- """Sets the doi of this ReleaseEntity.
+ @withdrawn_status.setter
+ def withdrawn_status(self, withdrawn_status):
+ """Sets the withdrawn_status of this ReleaseEntity.
- :param doi: The doi of this ReleaseEntity. # noqa: E501
+ :param withdrawn_status: The withdrawn_status of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._doi = doi
+ self._withdrawn_status = withdrawn_status
@property
def release_year(self):
@@ -629,25 +584,25 @@ class ReleaseEntity(object):
self._release_date = release_date
@property
- def release_status(self):
- """Gets the release_status of this ReleaseEntity. # noqa: E501
+ def release_stage(self):
+ """Gets the release_stage of this ReleaseEntity. # noqa: E501
- :return: The release_status of this ReleaseEntity. # noqa: E501
+ :return: The release_stage of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._release_status
+ return self._release_stage
- @release_status.setter
- def release_status(self, release_status):
- """Sets the release_status of this ReleaseEntity.
+ @release_stage.setter
+ def release_stage(self, release_stage):
+ """Sets the release_stage of this ReleaseEntity.
- :param release_status: The release_status of this ReleaseEntity. # noqa: E501
+ :param release_stage: The release_stage of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._release_status = release_status
+ self._release_stage = release_stage
@property
def release_type(self):
@@ -828,6 +783,29 @@ class ReleaseEntity(object):
self._original_title = original_title
@property
+ def subtitle(self):
+ """Gets the subtitle of this ReleaseEntity. # noqa: E501
+
+ Avoid this field if possible, and merge with title; usually English # noqa: E501
+
+ :return: The subtitle of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._subtitle
+
+ @subtitle.setter
+ def subtitle(self, subtitle):
+ """Sets the subtitle of this ReleaseEntity.
+
+ Avoid this field if possible, and merge with title; usually English # noqa: E501
+
+ :param subtitle: The subtitle of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._subtitle = subtitle
+
+ @property
def title(self):
"""Gets the title of this ReleaseEntity. # noqa: E501
diff --git a/python_client/fatcat_client/models/release_entity_ext_ids.py b/python_client/fatcat_client/models/release_entity_ext_ids.py
new file mode 100644
index 00000000..c7bcf6fe
--- /dev/null
+++ b/python_client/fatcat_client/models/release_entity_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 ReleaseEntityExtIds(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
+ """ReleaseEntityExtIds - 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 ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The doi of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._doi
+
+ @doi.setter
+ def doi(self, doi):
+ """Sets the doi of this ReleaseEntityExtIds.
+
+
+ :param doi: The doi of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._doi = doi
+
+ @property
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The wikidata_qid of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._wikidata_qid
+
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this ReleaseEntityExtIds.
+
+
+ :param wikidata_qid: The wikidata_qid of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._wikidata_qid = wikidata_qid
+
+ @property
+ def isbn13(self):
+ """Gets the isbn13 of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The isbn13 of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._isbn13
+
+ @isbn13.setter
+ def isbn13(self, isbn13):
+ """Sets the isbn13 of this ReleaseEntityExtIds.
+
+
+ :param isbn13: The isbn13 of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._isbn13 = isbn13
+
+ @property
+ def pmid(self):
+ """Gets the pmid of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The pmid of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._pmid
+
+ @pmid.setter
+ def pmid(self, pmid):
+ """Sets the pmid of this ReleaseEntityExtIds.
+
+
+ :param pmid: The pmid of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._pmid = pmid
+
+ @property
+ def pmcid(self):
+ """Gets the pmcid of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The pmcid of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._pmcid
+
+ @pmcid.setter
+ def pmcid(self, pmcid):
+ """Sets the pmcid of this ReleaseEntityExtIds.
+
+
+ :param pmcid: The pmcid of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._pmcid = pmcid
+
+ @property
+ def core(self):
+ """Gets the core of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The core of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._core
+
+ @core.setter
+ def core(self, core):
+ """Sets the core of this ReleaseEntityExtIds.
+
+
+ :param core: The core of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._core = core
+
+ @property
+ def arxiv(self):
+ """Gets the arxiv of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The arxiv of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._arxiv
+
+ @arxiv.setter
+ def arxiv(self, arxiv):
+ """Sets the arxiv of this ReleaseEntityExtIds.
+
+
+ :param arxiv: The arxiv of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._arxiv = arxiv
+
+ @property
+ def jstor(self):
+ """Gets the jstor of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The jstor of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._jstor
+
+ @jstor.setter
+ def jstor(self, jstor):
+ """Sets the jstor of this ReleaseEntityExtIds.
+
+
+ :param jstor: The jstor of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._jstor = jstor
+
+ @property
+ def ark(self):
+ """Gets the ark of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The ark of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._ark
+
+ @ark.setter
+ def ark(self, ark):
+ """Sets the ark of this ReleaseEntityExtIds.
+
+
+ :param ark: The ark of this ReleaseEntityExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._ark = ark
+
+ @property
+ def mag(self):
+ """Gets the mag of this ReleaseEntityExtIds. # noqa: E501
+
+
+ :return: The mag of this ReleaseEntityExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._mag
+
+ @mag.setter
+ def mag(self, mag):
+ """Sets the mag of this ReleaseEntityExtIds.
+
+
+ :param mag: The mag of this ReleaseEntityExtIds. # 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, ReleaseEntityExtIds):
+ 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_cdx.py b/python_client/fatcat_client/models/webcapture_entity_cdx.py
index 7cfb812f..37ce0490 100644
--- a/python_client/fatcat_client/models/webcapture_entity_cdx.py
+++ b/python_client/fatcat_client/models/webcapture_entity_cdx.py
@@ -36,6 +36,7 @@ class WebcaptureEntityCdx(object):
'url': 'str',
'mimetype': 'str',
'status_code': 'int',
+ 'size_bytes': 'int',
'sha1': 'str',
'sha256': 'str'
}
@@ -46,11 +47,12 @@ class WebcaptureEntityCdx(object):
'url': 'url',
'mimetype': 'mimetype',
'status_code': 'status_code',
+ 'size_bytes': 'size_bytes',
'sha1': 'sha1',
'sha256': 'sha256'
}
- def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, sha1=None, sha256=None): # noqa: E501
+ def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, size_bytes=None, sha1=None, sha256=None): # noqa: E501
"""WebcaptureEntityCdx - a model defined in Swagger""" # noqa: E501
self._surt = None
@@ -58,6 +60,7 @@ class WebcaptureEntityCdx(object):
self._url = None
self._mimetype = None
self._status_code = None
+ self._size_bytes = None
self._sha1 = None
self._sha256 = None
self.discriminator = None
@@ -69,6 +72,8 @@ class WebcaptureEntityCdx(object):
self.mimetype = mimetype
if status_code is not None:
self.status_code = status_code
+ if size_bytes is not None:
+ self.size_bytes = size_bytes
self.sha1 = sha1
if sha256 is not None:
self.sha256 = sha256
@@ -187,6 +192,27 @@ class WebcaptureEntityCdx(object):
self._status_code = status_code
@property
+ def size_bytes(self):
+ """Gets the size_bytes of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The size_bytes of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: int
+ """
+ return self._size_bytes
+
+ @size_bytes.setter
+ def size_bytes(self, size_bytes):
+ """Sets the size_bytes of this WebcaptureEntityCdx.
+
+
+ :param size_bytes: The size_bytes of this WebcaptureEntityCdx. # noqa: E501
+ :type: int
+ """
+
+ self._size_bytes = size_bytes
+
+ @property
def sha1(self):
"""Gets the sha1 of this WebcaptureEntityCdx. # noqa: E501
diff --git a/python_client/tests/codegen/test_release_entity_ext_ids.py b/python_client/tests/codegen/test_release_entity_ext_ids.py
new file mode 100644
index 00000000..a33cca28
--- /dev/null
+++ b/python_client/tests/codegen/test_release_entity_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_entity_ext_ids import ReleaseEntityExtIds # noqa: E501
+from fatcat_client.rest import ApiException
+
+
+class TestReleaseEntityExtIds(unittest.TestCase):
+ """ReleaseEntityExtIds unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseEntityExtIds(self):
+ """Test ReleaseEntityExtIds"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_client.models.release_entity_ext_ids.ReleaseEntityExtIds() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()