summaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-04 00:21:06 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-04 00:21:06 -0700
commitea23a92cc24da4e9e45c3b3295af51b4fa92b2c0 (patch)
tree8ccb21a05bd49542b27429198c16f3381aaabefa /python/fatcat_client/models
parent0ec7c973417f5d120db80d1c1dd3e329711a1ca4 (diff)
downloadfatcat-ea23a92cc24da4e9e45c3b3295af51b4fa92b2c0.tar.gz
fatcat-ea23a92cc24da4e9e45c3b3295af51b4fa92b2c0.zip
update python client with schema extensions
Diffstat (limited to 'python/fatcat_client/models')
-rw-r--r--python/fatcat_client/models/creator_entity.py84
-rw-r--r--python/fatcat_client/models/file_entity.py54
-rw-r--r--python/fatcat_client/models/release_contrib.py30
-rw-r--r--python/fatcat_client/models/release_entity.py82
-rw-r--r--python/fatcat_client/models/release_ref.py160
5 files changed, 348 insertions, 62 deletions
diff --git a/python/fatcat_client/models/creator_entity.py b/python/fatcat_client/models/creator_entity.py
index 79be738b..254e3a65 100644
--- a/python/fatcat_client/models/creator_entity.py
+++ b/python/fatcat_client/models/creator_entity.py
@@ -32,7 +32,9 @@ class CreatorEntity(object):
"""
swagger_types = {
'orcid': 'str',
- 'full_name': 'str',
+ 'surname': 'str',
+ 'given_name': 'str',
+ 'display_name': 'str',
'state': 'str',
'ident': 'str',
'revision': 'int',
@@ -43,7 +45,9 @@ class CreatorEntity(object):
attribute_map = {
'orcid': 'orcid',
- 'full_name': 'full_name',
+ 'surname': 'surname',
+ 'given_name': 'given_name',
+ 'display_name': 'display_name',
'state': 'state',
'ident': 'ident',
'revision': 'revision',
@@ -52,11 +56,13 @@ class CreatorEntity(object):
'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
+ def __init__(self, orcid=None, surname=None, given_name=None, display_name=None, state=None, ident=None, revision=None, redirect=None, editgroup_id=None, extra=None): # noqa: E501
"""CreatorEntity - a model defined in Swagger""" # noqa: E501
self._orcid = None
- self._full_name = None
+ self._surname = None
+ self._given_name = None
+ self._display_name = None
self._state = None
self._ident = None
self._revision = None
@@ -67,7 +73,11 @@ class CreatorEntity(object):
if orcid is not None:
self.orcid = orcid
- self.full_name = full_name
+ if surname is not None:
+ self.surname = surname
+ if given_name is not None:
+ self.given_name = given_name
+ self.display_name = display_name
if state is not None:
self.state = state
if ident is not None:
@@ -103,27 +113,69 @@ class CreatorEntity(object):
self._orcid = orcid
@property
- def full_name(self):
- """Gets the full_name of this CreatorEntity. # noqa: E501
+ def surname(self):
+ """Gets the surname of this CreatorEntity. # noqa: E501
- :return: The full_name of this CreatorEntity. # noqa: E501
+ :return: The surname of this CreatorEntity. # noqa: E501
:rtype: str
"""
- return self._full_name
+ return self._surname
- @full_name.setter
- def full_name(self, full_name):
- """Sets the full_name of this CreatorEntity.
+ @surname.setter
+ def surname(self, surname):
+ """Sets the surname of this CreatorEntity.
- :param full_name: The full_name of this CreatorEntity. # noqa: E501
+ :param surname: The surname 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
+ self._surname = surname
+
+ @property
+ def given_name(self):
+ """Gets the given_name of this CreatorEntity. # noqa: E501
+
+
+ :return: The given_name of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._given_name
+
+ @given_name.setter
+ def given_name(self, given_name):
+ """Sets the given_name of this CreatorEntity.
+
+
+ :param given_name: The given_name of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._given_name = given_name
+
+ @property
+ def display_name(self):
+ """Gets the display_name of this CreatorEntity. # noqa: E501
+
+
+ :return: The display_name of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """Sets the display_name of this CreatorEntity.
+
+
+ :param display_name: The display_name of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if display_name is None:
+ raise ValueError("Invalid value for `display_name`, must not be `None`") # noqa: E501
+
+ self._display_name = display_name
@property
def state(self):
diff --git a/python/fatcat_client/models/file_entity.py b/python/fatcat_client/models/file_entity.py
index d8847ee2..070789d5 100644
--- a/python/fatcat_client/models/file_entity.py
+++ b/python/fatcat_client/models/file_entity.py
@@ -32,7 +32,9 @@ class FileEntity(object):
"""
swagger_types = {
'releases': 'list[str]',
+ 'mimetype': 'str',
'url': 'str',
+ 'sha256': 'str',
'md5': 'str',
'sha1': 'str',
'size': 'int',
@@ -46,7 +48,9 @@ class FileEntity(object):
attribute_map = {
'releases': 'releases',
+ 'mimetype': 'mimetype',
'url': 'url',
+ 'sha256': 'sha256',
'md5': 'md5',
'sha1': 'sha1',
'size': 'size',
@@ -58,11 +62,13 @@ class FileEntity(object):
'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
+ def __init__(self, releases=None, mimetype=None, url=None, sha256=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._mimetype = None
self._url = None
+ self._sha256 = None
self._md5 = None
self._sha1 = None
self._size = None
@@ -76,8 +82,12 @@ class FileEntity(object):
if releases is not None:
self.releases = releases
+ if mimetype is not None:
+ self.mimetype = mimetype
if url is not None:
self.url = url
+ if sha256 is not None:
+ self.sha256 = sha256
if md5 is not None:
self.md5 = md5
if sha1 is not None:
@@ -119,6 +129,27 @@ class FileEntity(object):
self._releases = releases
@property
+ def mimetype(self):
+ """Gets the mimetype of this FileEntity. # noqa: E501
+
+
+ :return: The mimetype of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this FileEntity.
+
+
+ :param mimetype: The mimetype of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
def url(self):
"""Gets the url of this FileEntity. # noqa: E501
@@ -140,6 +171,27 @@ class FileEntity(object):
self._url = url
@property
+ def sha256(self):
+ """Gets the sha256 of this FileEntity. # noqa: E501
+
+
+ :return: The sha256 of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this FileEntity.
+
+
+ :param sha256: The sha256 of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._sha256 = sha256
+
+ @property
def md5(self):
"""Gets the md5 of this FileEntity. # noqa: E501
diff --git a/python/fatcat_client/models/release_contrib.py b/python/fatcat_client/models/release_contrib.py
index de458e67..72eeca1d 100644
--- a/python/fatcat_client/models/release_contrib.py
+++ b/python/fatcat_client/models/release_contrib.py
@@ -33,23 +33,23 @@ class ReleaseContrib(object):
swagger_types = {
'index': 'int',
'creator_id': 'str',
- 'creator_stub': 'str',
+ 'raw': 'str',
'role': 'str'
}
attribute_map = {
'index': 'index',
'creator_id': 'creator_id',
- 'creator_stub': 'creator_stub',
+ 'raw': 'raw',
'role': 'role'
}
- def __init__(self, index=None, creator_id=None, creator_stub=None, role=None): # noqa: E501
+ def __init__(self, index=None, creator_id=None, raw=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._raw = None
self._role = None
self.discriminator = None
@@ -57,8 +57,8 @@ class ReleaseContrib(object):
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 raw is not None:
+ self.raw = raw
if role is not None:
self.role = role
@@ -105,25 +105,25 @@ class ReleaseContrib(object):
self._creator_id = creator_id
@property
- def creator_stub(self):
- """Gets the creator_stub of this ReleaseContrib. # noqa: E501
+ def raw(self):
+ """Gets the raw of this ReleaseContrib. # noqa: E501
- :return: The creator_stub of this ReleaseContrib. # noqa: E501
+ :return: The raw of this ReleaseContrib. # noqa: E501
:rtype: str
"""
- return self._creator_stub
+ return self._raw
- @creator_stub.setter
- def creator_stub(self, creator_stub):
- """Sets the creator_stub of this ReleaseContrib.
+ @raw.setter
+ def raw(self, raw):
+ """Sets the raw of this ReleaseContrib.
- :param creator_stub: The creator_stub of this ReleaseContrib. # noqa: E501
+ :param raw: The raw of this ReleaseContrib. # noqa: E501
:type: str
"""
- self._creator_stub = creator_stub
+ self._raw = raw
@property
def role(self):
diff --git a/python/fatcat_client/models/release_entity.py b/python/fatcat_client/models/release_entity.py
index 408d527b..3c6f1acb 100644
--- a/python/fatcat_client/models/release_entity.py
+++ b/python/fatcat_client/models/release_entity.py
@@ -36,13 +36,15 @@ class ReleaseEntity(object):
swagger_types = {
'refs': 'list[ReleaseRef]',
'contribs': 'list[ReleaseContrib]',
+ 'language': 'str',
'publisher': 'str',
'issue': 'str',
'pages': 'str',
'volume': 'str',
'isbn13': 'str',
'doi': 'str',
- 'date': 'date',
+ 'release_date': 'date',
+ 'release_status': 'str',
'release_type': 'str',
'container_id': 'str',
'work_id': 'str',
@@ -58,13 +60,15 @@ class ReleaseEntity(object):
attribute_map = {
'refs': 'refs',
'contribs': 'contribs',
+ 'language': 'language',
'publisher': 'publisher',
'issue': 'issue',
'pages': 'pages',
'volume': 'volume',
'isbn13': 'isbn13',
'doi': 'doi',
- 'date': 'date',
+ 'release_date': 'release_date',
+ 'release_status': 'release_status',
'release_type': 'release_type',
'container_id': 'container_id',
'work_id': 'work_id',
@@ -77,18 +81,20 @@ class ReleaseEntity(object):
'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
+ def __init__(self, refs=None, contribs=None, language=None, publisher=None, issue=None, pages=None, volume=None, isbn13=None, doi=None, release_date=None, release_status=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._language = None
self._publisher = None
self._issue = None
self._pages = None
self._volume = None
self._isbn13 = None
self._doi = None
- self._date = None
+ self._release_date = None
+ self._release_status = None
self._release_type = None
self._container_id = None
self._work_id = None
@@ -105,6 +111,8 @@ class ReleaseEntity(object):
self.refs = refs
if contribs is not None:
self.contribs = contribs
+ if language is not None:
+ self.language = language
if publisher is not None:
self.publisher = publisher
if issue is not None:
@@ -117,8 +125,10 @@ class ReleaseEntity(object):
self.isbn13 = isbn13
if doi is not None:
self.doi = doi
- if date is not None:
- self.date = date
+ if release_date is not None:
+ self.release_date = release_date
+ if release_status is not None:
+ self.release_status = release_status
if release_type is not None:
self.release_type = release_type
if container_id is not None:
@@ -181,6 +191,27 @@ class ReleaseEntity(object):
self._contribs = contribs
@property
+ def language(self):
+ """Gets the language of this ReleaseEntity. # noqa: E501
+
+
+ :return: The language of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._language
+
+ @language.setter
+ def language(self, language):
+ """Sets the language of this ReleaseEntity.
+
+
+ :param language: The language of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._language = language
+
+ @property
def publisher(self):
"""Gets the publisher of this ReleaseEntity. # noqa: E501
@@ -307,25 +338,46 @@ class ReleaseEntity(object):
self._doi = doi
@property
- def date(self):
- """Gets the date of this ReleaseEntity. # noqa: E501
+ def release_date(self):
+ """Gets the release_date of this ReleaseEntity. # noqa: E501
- :return: The date of this ReleaseEntity. # noqa: E501
+ :return: The release_date of this ReleaseEntity. # noqa: E501
:rtype: date
"""
- return self._date
+ return self._release_date
- @date.setter
- def date(self, date):
- """Sets the date of this ReleaseEntity.
+ @release_date.setter
+ def release_date(self, release_date):
+ """Sets the release_date of this ReleaseEntity.
- :param date: The date of this ReleaseEntity. # noqa: E501
+ :param release_date: The release_date of this ReleaseEntity. # noqa: E501
:type: date
"""
- self._date = date
+ self._release_date = release_date
+
+ @property
+ def release_status(self):
+ """Gets the release_status of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_status of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._release_status
+
+ @release_status.setter
+ def release_status(self, release_status):
+ """Sets the release_status of this ReleaseEntity.
+
+
+ :param release_status: The release_status of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._release_status = release_status
@property
def release_type(self):
diff --git a/python/fatcat_client/models/release_ref.py b/python/fatcat_client/models/release_ref.py
index 351c7a21..7e15900c 100644
--- a/python/fatcat_client/models/release_ref.py
+++ b/python/fatcat_client/models/release_ref.py
@@ -33,29 +33,54 @@ class ReleaseRef(object):
swagger_types = {
'index': 'int',
'target_release_id': 'str',
- 'stub': 'str'
+ 'raw': 'str',
+ 'key': 'str',
+ 'year': 'int',
+ 'container_title': 'str',
+ 'title': 'str',
+ 'locator': 'str'
}
attribute_map = {
'index': 'index',
'target_release_id': 'target_release_id',
- 'stub': 'stub'
+ 'raw': 'raw',
+ 'key': 'key',
+ 'year': 'year',
+ 'container_title': 'container_title',
+ 'title': 'title',
+ 'locator': 'locator'
}
- def __init__(self, index=None, target_release_id=None, stub=None): # noqa: E501
+ def __init__(self, index=None, target_release_id=None, raw=None, key=None, year=None, container_title=None, title=None, locator=None): # noqa: E501
"""ReleaseRef - a model defined in Swagger""" # noqa: E501
self._index = None
self._target_release_id = None
- self._stub = None
+ self._raw = None
+ self._key = None
+ self._year = None
+ self._container_title = None
+ self._title = None
+ self._locator = 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
+ if raw is not None:
+ self.raw = raw
+ if key is not None:
+ self.key = key
+ if year is not None:
+ self.year = year
+ if container_title is not None:
+ self.container_title = container_title
+ if title is not None:
+ self.title = title
+ if locator is not None:
+ self.locator = locator
@property
def index(self):
@@ -100,25 +125,130 @@ class ReleaseRef(object):
self._target_release_id = target_release_id
@property
- def stub(self):
- """Gets the stub of this ReleaseRef. # noqa: E501
+ def raw(self):
+ """Gets the raw of this ReleaseRef. # noqa: E501
- :return: The stub of this ReleaseRef. # noqa: E501
+ :return: The raw of this ReleaseRef. # noqa: E501
:rtype: str
"""
- return self._stub
+ return self._raw
- @stub.setter
- def stub(self, stub):
- """Sets the stub of this ReleaseRef.
+ @raw.setter
+ def raw(self, raw):
+ """Sets the raw of this ReleaseRef.
- :param stub: The stub of this ReleaseRef. # noqa: E501
+ :param raw: The raw of this ReleaseRef. # noqa: E501
:type: str
"""
- self._stub = stub
+ self._raw = raw
+
+ @property
+ def key(self):
+ """Gets the key of this ReleaseRef. # noqa: E501
+
+
+ :return: The key of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._key
+
+ @key.setter
+ def key(self, key):
+ """Sets the key of this ReleaseRef.
+
+
+ :param key: The key of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._key = key
+
+ @property
+ def year(self):
+ """Gets the year of this ReleaseRef. # noqa: E501
+
+
+ :return: The year of this ReleaseRef. # noqa: E501
+ :rtype: int
+ """
+ return self._year
+
+ @year.setter
+ def year(self, year):
+ """Sets the year of this ReleaseRef.
+
+
+ :param year: The year of this ReleaseRef. # noqa: E501
+ :type: int
+ """
+
+ self._year = year
+
+ @property
+ def container_title(self):
+ """Gets the container_title of this ReleaseRef. # noqa: E501
+
+
+ :return: The container_title of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._container_title
+
+ @container_title.setter
+ def container_title(self, container_title):
+ """Sets the container_title of this ReleaseRef.
+
+
+ :param container_title: The container_title of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._container_title = container_title
+
+ @property
+ def title(self):
+ """Gets the title of this ReleaseRef. # noqa: E501
+
+
+ :return: The title of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._title
+
+ @title.setter
+ def title(self, title):
+ """Sets the title of this ReleaseRef.
+
+
+ :param title: The title of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._title = title
+
+ @property
+ def locator(self):
+ """Gets the locator of this ReleaseRef. # noqa: E501
+
+
+ :return: The locator of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._locator
+
+ @locator.setter
+ def locator(self, locator):
+ """Sets the locator of this ReleaseRef.
+
+
+ :param locator: The locator of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._locator = locator
def to_dict(self):
"""Returns the model properties as a dict"""