From b4d675b3a4a085d6338d8df5196f4a37dd7c39bc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 17 Nov 2020 15:33:10 -0800 Subject: codegen python client library for v0.3.3 --- .../models/release_ext_ids.py | 64 ++++++++++++++++++++-- 1 file changed, 60 insertions(+), 4 deletions(-) (limited to 'python_openapi_client/fatcat_openapi_client/models') diff --git a/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py index c986e1fe..3ac0f402 100644 --- a/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py +++ b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py @@ -5,7 +5,7 @@ Fatcat is a scalable, versioned, API-oriented catalog of bibliographic entities and file metadata. # noqa: E501 - The version of the OpenAPI document: 0.3.1 + The version of the OpenAPI document: 0.3.3 Contact: webservices@archive.org Generated by: https://openapi-generator.tech """ @@ -41,7 +41,9 @@ class ReleaseExtIds(object): 'arxiv': 'str', 'jstor': 'str', 'ark': 'str', - 'mag': 'str' + 'mag': 'str', + 'doaj': 'str', + 'dblp': 'str' } attribute_map = { @@ -54,10 +56,12 @@ class ReleaseExtIds(object): 'arxiv': 'arxiv', 'jstor': 'jstor', 'ark': 'ark', - 'mag': 'mag' + 'mag': 'mag', + 'doaj': 'doaj', + 'dblp': 'dblp' } - 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 + def __init__(self, doi=None, wikidata_qid=None, isbn13=None, pmid=None, pmcid=None, core=None, arxiv=None, jstor=None, ark=None, mag=None, doaj=None, dblp=None): # noqa: E501 """ReleaseExtIds - a model defined in OpenAPI""" # noqa: E501 self._doi = None @@ -70,6 +74,8 @@ class ReleaseExtIds(object): self._jstor = None self._ark = None self._mag = None + self._doaj = None + self._dblp = None self.discriminator = None if doi is not None: @@ -92,6 +98,10 @@ class ReleaseExtIds(object): self.ark = ark if mag is not None: self.mag = mag + if doaj is not None: + self.doaj = doaj + if dblp is not None: + self.dblp = dblp @property def doi(self): @@ -323,6 +333,52 @@ class ReleaseExtIds(object): self._mag = mag + @property + def doaj(self): + """Gets the doaj of this ReleaseExtIds. # noqa: E501 + + DOAJ article-level identifier # noqa: E501 + + :return: The doaj of this ReleaseExtIds. # noqa: E501 + :rtype: str + """ + return self._doaj + + @doaj.setter + def doaj(self, doaj): + """Sets the doaj of this ReleaseExtIds. + + DOAJ article-level identifier # noqa: E501 + + :param doaj: The doaj of this ReleaseExtIds. # noqa: E501 + :type: str + """ + + self._doaj = doaj + + @property + def dblp(self): + """Gets the dblp of this ReleaseExtIds. # noqa: E501 + + dblp (https://dblp.uni-trier.de/) paper identifier; eg for conference proceedings # noqa: E501 + + :return: The dblp of this ReleaseExtIds. # noqa: E501 + :rtype: str + """ + return self._dblp + + @dblp.setter + def dblp(self, dblp): + """Sets the dblp of this ReleaseExtIds. + + dblp (https://dblp.uni-trier.de/) paper identifier; eg for conference proceedings # noqa: E501 + + :param dblp: The dblp of this ReleaseExtIds. # noqa: E501 + :type: str + """ + + self._dblp = dblp + def to_dict(self): """Returns the model properties as a dict""" result = {} -- cgit v1.2.3 From ba4a85cf2ee51d775137541944e2e9d24b2e1bc9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 19 Nov 2020 12:18:30 -0800 Subject: codegen python openapi client --- .../fatcat_openapi_client/api/default_api.py | 6 +++- .../models/release_ext_ids.py | 34 ++++++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) (limited to 'python_openapi_client/fatcat_openapi_client/models') diff --git a/python_openapi_client/fatcat_openapi_client/api/default_api.py b/python_openapi_client/fatcat_openapi_client/api/default_api.py index 152b9260..ab2913d4 100644 --- a/python_openapi_client/fatcat_openapi_client/api/default_api.py +++ b/python_openapi_client/fatcat_openapi_client/api/default_api.py @@ -9857,6 +9857,7 @@ class DefaultApi(object): :param str mag: :param str doaj: :param str dblp: + :param str oai: :param str expand: List of sub-entities to expand in response. See `get_release`. :param str hide: List of sub-entities to elide in response. See `get_release`. :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9895,6 +9896,7 @@ class DefaultApi(object): :param str mag: :param str doaj: :param str dblp: + :param str oai: :param str expand: List of sub-entities to expand in response. See `get_release`. :param str hide: List of sub-entities to elide in response. See `get_release`. :param _return_http_data_only: response data without head status code @@ -9913,7 +9915,7 @@ class DefaultApi(object): local_var_params = locals() - all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core', 'arxiv', 'jstor', 'ark', 'mag', 'doaj', 'dblp', 'expand', 'hide'] # noqa: E501 + all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core', 'arxiv', 'jstor', 'ark', 'mag', 'doaj', 'dblp', 'oai', 'expand', 'hide'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9957,6 +9959,8 @@ class DefaultApi(object): query_params.append(('doaj', local_var_params['doaj'])) # noqa: E501 if 'dblp' in local_var_params: query_params.append(('dblp', local_var_params['dblp'])) # noqa: E501 + if 'oai' in local_var_params: + query_params.append(('oai', local_var_params['oai'])) # noqa: E501 if 'expand' in local_var_params: query_params.append(('expand', local_var_params['expand'])) # noqa: E501 if 'hide' in local_var_params: diff --git a/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py index 3ac0f402..c8ca4b06 100644 --- a/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py +++ b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py @@ -43,7 +43,8 @@ class ReleaseExtIds(object): 'ark': 'str', 'mag': 'str', 'doaj': 'str', - 'dblp': 'str' + 'dblp': 'str', + 'oai': 'str' } attribute_map = { @@ -58,10 +59,11 @@ class ReleaseExtIds(object): 'ark': 'ark', 'mag': 'mag', 'doaj': 'doaj', - 'dblp': 'dblp' + 'dblp': 'dblp', + 'oai': 'oai' } - def __init__(self, doi=None, wikidata_qid=None, isbn13=None, pmid=None, pmcid=None, core=None, arxiv=None, jstor=None, ark=None, mag=None, doaj=None, dblp=None): # noqa: E501 + def __init__(self, doi=None, wikidata_qid=None, isbn13=None, pmid=None, pmcid=None, core=None, arxiv=None, jstor=None, ark=None, mag=None, doaj=None, dblp=None, oai=None): # noqa: E501 """ReleaseExtIds - a model defined in OpenAPI""" # noqa: E501 self._doi = None @@ -76,6 +78,7 @@ class ReleaseExtIds(object): self._mag = None self._doaj = None self._dblp = None + self._oai = None self.discriminator = None if doi is not None: @@ -102,6 +105,8 @@ class ReleaseExtIds(object): self.doaj = doaj if dblp is not None: self.dblp = dblp + if oai is not None: + self.oai = oai @property def doi(self): @@ -379,6 +384,29 @@ class ReleaseExtIds(object): self._dblp = dblp + @property + def oai(self): + """Gets the oai of this ReleaseExtIds. # noqa: E501 + + OAI-PMH identifier; only used when an OAI-PMH record is the only authoritative metadata (eg, journal OAI-PMH feeds w/o DOIs) # noqa: E501 + + :return: The oai of this ReleaseExtIds. # noqa: E501 + :rtype: str + """ + return self._oai + + @oai.setter + def oai(self, oai): + """Sets the oai of this ReleaseExtIds. + + OAI-PMH identifier; only used when an OAI-PMH record is the only authoritative metadata (eg, journal OAI-PMH feeds w/o DOIs) # noqa: E501 + + :param oai: The oai of this ReleaseExtIds. # noqa: E501 + :type: str + """ + + self._oai = oai + def to_dict(self): """Returns the model properties as a dict""" result = {} -- cgit v1.2.3