diff options
| author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-12 17:35:20 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-13 16:21:30 -0700 | 
| commit | 6214e9f251cfa945641d9fbd2149746e83ec8331 (patch) | |
| tree | 665904635db7f646b14924e94a65b89873b65038 /python_openapi_client | |
| parent | f150c9f7389afaacde8a60cb933452e062aad9bb (diff) | |
| download | fatcat-6214e9f251cfa945641d9fbd2149746e83ec8331.tar.gz fatcat-6214e9f251cfa945641d9fbd2149746e83ec8331.zip | |
python client: codegen for v0.4
Diffstat (limited to 'python_openapi_client')
8 files changed, 325 insertions, 25 deletions
| diff --git a/python_openapi_client/fatcat_openapi_client/__init__.py b/python_openapi_client/fatcat_openapi_client/__init__.py index 87e1609a..5f1a7fba 100644 --- a/python_openapi_client/fatcat_openapi_client/__init__.py +++ b/python_openapi_client/fatcat_openapi_client/__init__.py @@ -7,7 +7,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.3 +    The version of the OpenAPI document: 0.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -15,7 +15,7 @@  from __future__ import absolute_import -__version__ = "0.3.3" +__version__ = "0.4.0"  # import apis into sdk package  from fatcat_openapi_client.api.default_api import DefaultApi 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 ab2913d4..66a581f6 100644 --- a/python_openapi_client/fatcat_openapi_client/api/default_api.py +++ b/python_openapi_client/fatcat_openapi_client/api/default_api.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.3 +    The version of the OpenAPI document: 0.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -9457,7 +9457,10 @@ class DefaultApi(object):          >>> result = thread.get()          :param async_req bool: execute request asynchronously -        :param str issnl: +        :param str issnl: Linking ISSN (ISSN-L); will be one of either ISSN-E or ISSN-P +        :param str issne: Electronic ISSN (ISSN-L) +        :param str issnp: Print ISSN (ISSN-P) +        :param str issn: Any of ISSN-L, ISSN-E, or ISSN-P          :param str wikidata_qid:          :param str expand: List of sub-entities to expand in response. See `get_container`.          :param str hide: List of entity fields to elide in response. See `get_container`. @@ -9485,7 +9488,10 @@ class DefaultApi(object):          >>> result = thread.get()          :param async_req bool: execute request asynchronously -        :param str issnl: +        :param str issnl: Linking ISSN (ISSN-L); will be one of either ISSN-E or ISSN-P +        :param str issne: Electronic ISSN (ISSN-L) +        :param str issnp: Print ISSN (ISSN-P) +        :param str issn: Any of ISSN-L, ISSN-E, or ISSN-P          :param str wikidata_qid:          :param str expand: List of sub-entities to expand in response. See `get_container`.          :param str hide: List of entity fields to elide in response. See `get_container`. @@ -9505,7 +9511,7 @@ class DefaultApi(object):          local_var_params = locals() -        all_params = ['issnl', 'wikidata_qid', 'expand', 'hide']  # noqa: E501 +        all_params = ['issnl', 'issne', 'issnp', 'issn', 'wikidata_qid', 'expand', 'hide']  # noqa: E501          all_params.append('async_req')          all_params.append('_return_http_data_only')          all_params.append('_preload_content') @@ -9527,7 +9533,31 @@ class DefaultApi(object):                  len(local_var_params['issnl']) < 9):              raise ApiValueError("Invalid value for parameter `issnl` when calling `lookup_container`, length must be greater than or equal to `9`")  # noqa: E501          if 'issnl' in local_var_params and not re.search(r'\d{4}-\d{3}[0-9X]', local_var_params['issnl']):  # noqa: E501 -            raise ApiValueError(r"Invalid value for parameter `issnl` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501 +            raise ApiValueError("Invalid value for parameter `issnl` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501 +        if ('issne' in local_var_params and +                len(local_var_params['issne']) > 9): +            raise ApiValueError("Invalid value for parameter `issne` when calling `lookup_container`, length must be less than or equal to `9`")  # noqa: E501 +        if ('issne' in local_var_params and +                len(local_var_params['issne']) < 9): +            raise ApiValueError("Invalid value for parameter `issne` when calling `lookup_container`, length must be greater than or equal to `9`")  # noqa: E501 +        if 'issne' in local_var_params and not re.search(r'\d{4}-\d{3}[0-9X]', local_var_params['issne']):  # noqa: E501 +            raise ApiValueError("Invalid value for parameter `issne` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501 +        if ('issnp' in local_var_params and +                len(local_var_params['issnp']) > 9): +            raise ApiValueError("Invalid value for parameter `issnp` when calling `lookup_container`, length must be less than or equal to `9`")  # noqa: E501 +        if ('issnp' in local_var_params and +                len(local_var_params['issnp']) < 9): +            raise ApiValueError("Invalid value for parameter `issnp` when calling `lookup_container`, length must be greater than or equal to `9`")  # noqa: E501 +        if 'issnp' in local_var_params and not re.search(r'\d{4}-\d{3}[0-9X]', local_var_params['issnp']):  # noqa: E501 +            raise ApiValueError("Invalid value for parameter `issnp` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501 +        if ('issn' in local_var_params and +                len(local_var_params['issn']) > 9): +            raise ApiValueError("Invalid value for parameter `issn` when calling `lookup_container`, length must be less than or equal to `9`")  # noqa: E501 +        if ('issn' in local_var_params and +                len(local_var_params['issn']) < 9): +            raise ApiValueError("Invalid value for parameter `issn` when calling `lookup_container`, length must be greater than or equal to `9`")  # noqa: E501 +        if 'issn' in local_var_params and not re.search(r'\d{4}-\d{3}[0-9X]', local_var_params['issn']):  # noqa: E501 +            raise ApiValueError("Invalid value for parameter `issn` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501          collection_formats = {}          path_params = {} @@ -9535,6 +9565,12 @@ class DefaultApi(object):          query_params = []          if 'issnl' in local_var_params:              query_params.append(('issnl', local_var_params['issnl']))  # noqa: E501 +        if 'issne' in local_var_params: +            query_params.append(('issne', local_var_params['issne']))  # noqa: E501 +        if 'issnp' in local_var_params: +            query_params.append(('issnp', local_var_params['issnp']))  # noqa: E501 +        if 'issn' in local_var_params: +            query_params.append(('issn', local_var_params['issn']))  # noqa: E501          if 'wikidata_qid' in local_var_params:              query_params.append(('wikidata_qid', local_var_params['wikidata_qid']))  # noqa: E501          if 'expand' in local_var_params: @@ -9649,7 +9685,7 @@ class DefaultApi(object):                  len(local_var_params['orcid']) < 19):              raise ApiValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, length must be greater than or equal to `19`")  # noqa: E501          if 'orcid' in local_var_params and not re.search(r'\d{4}-\d{4}-\d{4}-\d{3}[\dX]', local_var_params['orcid']):  # noqa: E501 -            raise ApiValueError(r"Invalid value for parameter `orcid` when calling `lookup_creator`, must conform to the pattern `/\d{4}-\d{4}-\d{4}-\d{3}[\dX]/`")  # noqa: E501 +            raise ApiValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, must conform to the pattern `/\d{4}-\d{4}-\d{4}-\d{3}[\dX]/`")  # noqa: E501          collection_formats = {}          path_params = {} @@ -9693,6 +9729,110 @@ class DefaultApi(object):              _request_timeout=local_var_params.get('_request_timeout'),              collection_formats=collection_formats) +    def lookup_editor(self, **kwargs):  # noqa: E501 +        """lookup_editor  # noqa: E501 + +        Fetches editor by, eg, username.  One (and only one) lookup identifier should be specified per request.   # noqa: E501 +        This method makes a synchronous HTTP request by default. To make an +        asynchronous HTTP request, please pass async_req=True +        >>> thread = api.lookup_editor(async_req=True) +        >>> result = thread.get() + +        :param async_req bool: execute request asynchronously +        :param str username: +        :param _preload_content: if False, the urllib3.HTTPResponse object will +                                 be returned without reading/decoding response +                                 data. Default is True. +        :param _request_timeout: timeout setting for this request. If one +                                 number provided, it will be total request +                                 timeout. It can also be a pair (tuple) of +                                 (connection, read) timeouts. +        :return: Editor +                 If the method is called asynchronously, +                 returns the request thread. +        """ +        kwargs['_return_http_data_only'] = True +        return self.lookup_editor_with_http_info(**kwargs)  # noqa: E501 + +    def lookup_editor_with_http_info(self, **kwargs):  # noqa: E501 +        """lookup_editor  # noqa: E501 + +        Fetches editor by, eg, username.  One (and only one) lookup identifier should be specified per request.   # noqa: E501 +        This method makes a synchronous HTTP request by default. To make an +        asynchronous HTTP request, please pass async_req=True +        >>> thread = api.lookup_editor_with_http_info(async_req=True) +        >>> result = thread.get() + +        :param async_req bool: execute request asynchronously +        :param str username: +        :param _return_http_data_only: response data without head status code +                                       and headers +        :param _preload_content: if False, the urllib3.HTTPResponse object will +                                 be returned without reading/decoding response +                                 data. Default is True. +        :param _request_timeout: timeout setting for this request. If one +                                 number provided, it will be total request +                                 timeout. It can also be a pair (tuple) of +                                 (connection, read) timeouts. +        :return: tuple(Editor, status_code(int), headers(HTTPHeaderDict)) +                 If the method is called asynchronously, +                 returns the request thread. +        """ + +        local_var_params = locals() + +        all_params = ['username']  # noqa: E501 +        all_params.append('async_req') +        all_params.append('_return_http_data_only') +        all_params.append('_preload_content') +        all_params.append('_request_timeout') + +        for key, val in six.iteritems(local_var_params['kwargs']): +            if key not in all_params: +                raise ApiTypeError( +                    "Got an unexpected keyword argument '%s'" +                    " to method lookup_editor" % key +                ) +            local_var_params[key] = val +        del local_var_params['kwargs'] + +        collection_formats = {} + +        path_params = {} + +        query_params = [] +        if 'username' in local_var_params: +            query_params.append(('username', local_var_params['username']))  # noqa: E501 + +        header_params = {} + +        form_params = [] +        local_var_files = {} + +        body_params = None +        # HTTP header `Accept` +        header_params['Accept'] = self.api_client.select_header_accept( +            ['application/json'])  # noqa: E501 + +        # Authentication setting +        auth_settings = []  # noqa: E501 + +        return self.api_client.call_api( +            '/editor/lookup', 'GET', +            path_params, +            query_params, +            header_params, +            body=body_params, +            post_params=form_params, +            files=local_var_files, +            response_type='Editor',  # noqa: E501 +            auth_settings=auth_settings, +            async_req=local_var_params.get('async_req'), +            _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501 +            _preload_content=local_var_params.get('_preload_content', True), +            _request_timeout=local_var_params.get('_request_timeout'), +            collection_formats=collection_formats) +      def lookup_file(self, **kwargs):  # noqa: E501          """lookup_file  # noqa: E501 @@ -9858,6 +9998,7 @@ class DefaultApi(object):          :param str doaj:          :param str dblp:          :param str oai: +        :param str hdl:          :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 @@ -9897,6 +10038,7 @@ class DefaultApi(object):          :param str doaj:          :param str dblp:          :param str oai: +        :param str hdl:          :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 @@ -9915,7 +10057,7 @@ class DefaultApi(object):          local_var_params = locals() -        all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core', 'arxiv', 'jstor', 'ark', 'mag', 'doaj', 'dblp', 'oai', 'expand', 'hide']  # noqa: E501 +        all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core', 'arxiv', 'jstor', 'ark', 'mag', 'doaj', 'dblp', 'oai', 'hdl', 'expand', 'hide']  # noqa: E501          all_params.append('async_req')          all_params.append('_return_http_data_only')          all_params.append('_preload_content') @@ -9961,6 +10103,8 @@ class DefaultApi(object):              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 'hdl' in local_var_params: +            query_params.append(('hdl', local_var_params['hdl']))  # 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/api_client.py b/python_openapi_client/fatcat_openapi_client/api_client.py index 4aca1010..efef8cbf 100644 --- a/python_openapi_client/fatcat_openapi_client/api_client.py +++ b/python_openapi_client/fatcat_openapi_client/api_client.py @@ -4,7 +4,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.3 +    The version of the OpenAPI document: 0.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -77,7 +77,7 @@ class ApiClient(object):              self.default_headers[header_name] = header_value          self.cookie = cookie          # Set default User-Agent. -        self.user_agent = 'OpenAPI-Generator/0.3.3/python' +        self.user_agent = 'OpenAPI-Generator/0.4.0/python'      def __del__(self):          if self._pool: diff --git a/python_openapi_client/fatcat_openapi_client/configuration.py b/python_openapi_client/fatcat_openapi_client/configuration.py index e970b674..c0e39620 100644 --- a/python_openapi_client/fatcat_openapi_client/configuration.py +++ b/python_openapi_client/fatcat_openapi_client/configuration.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.3 +    The version of the OpenAPI document: 0.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -267,8 +267,8 @@ class Configuration(object):          return "Python SDK Debug Report:\n"\                 "OS: {env}\n"\                 "Python Version: {pyversion}\n"\ -               "Version of the API: 0.3.3\n"\ -               "SDK Package Version: 0.3.3".\ +               "Version of the API: 0.4.0\n"\ +               "SDK Package Version: 0.4.0".\                 format(env=sys.platform, pyversion=sys.version)      def get_host_settings(self): diff --git a/python_openapi_client/fatcat_openapi_client/models/container_entity.py b/python_openapi_client/fatcat_openapi_client/models/container_entity.py index 470f2ee0..d6b23469 100644 --- a/python_openapi_client/fatcat_openapi_client/models/container_entity.py +++ b/python_openapi_client/fatcat_openapi_client/models/container_entity.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.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -40,8 +40,11 @@ class ContainerEntity(object):          'edit_extra': 'dict(str, object)',          'name': 'str',          'container_type': 'str', +        'publication_status': 'str',          'publisher': 'str',          'issnl': 'str', +        'issne': 'str', +        'issnp': 'str',          'wikidata_qid': 'str'      } @@ -54,12 +57,15 @@ class ContainerEntity(object):          'edit_extra': 'edit_extra',          'name': 'name',          'container_type': 'container_type', +        'publication_status': 'publication_status',          'publisher': 'publisher',          'issnl': 'issnl', +        'issne': 'issne', +        'issnp': 'issnp',          'wikidata_qid': 'wikidata_qid'      } -    def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, name=None, container_type=None, publisher=None, issnl=None, wikidata_qid=None):  # noqa: E501 +    def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, name=None, container_type=None, publication_status=None, publisher=None, issnl=None, issne=None, issnp=None, wikidata_qid=None):  # noqa: E501          """ContainerEntity - a model defined in OpenAPI"""  # noqa: E501          self._state = None @@ -70,8 +76,11 @@ class ContainerEntity(object):          self._edit_extra = None          self._name = None          self._container_type = None +        self._publication_status = None          self._publisher = None          self._issnl = None +        self._issne = None +        self._issnp = None          self._wikidata_qid = None          self.discriminator = None @@ -91,10 +100,16 @@ class ContainerEntity(object):              self.name = name          if container_type is not None:              self.container_type = container_type +        if publication_status is not None: +            self.publication_status = publication_status          if publisher is not None:              self.publisher = publisher          if issnl is not None:              self.issnl = issnl +        if issne is not None: +            self.issne = issne +        if issnp is not None: +            self.issnp = issnp          if wikidata_qid is not None:              self.wikidata_qid = wikidata_qid @@ -305,6 +320,29 @@ class ContainerEntity(object):          self._container_type = container_type      @property +    def publication_status(self): +        """Gets the publication_status of this ContainerEntity.  # noqa: E501 + +        Whether the container is active, discontinued, etc  # noqa: E501 + +        :return: The publication_status of this ContainerEntity.  # noqa: E501 +        :rtype: str +        """ +        return self._publication_status + +    @publication_status.setter +    def publication_status(self, publication_status): +        """Sets the publication_status of this ContainerEntity. + +        Whether the container is active, discontinued, etc  # noqa: E501 + +        :param publication_status: The publication_status of this ContainerEntity.  # noqa: E501 +        :type: str +        """ + +        self._publication_status = publication_status + +    @property      def publisher(self):          """Gets the publisher of this ContainerEntity.  # noqa: E501 @@ -357,6 +395,64 @@ class ContainerEntity(object):          self._issnl = issnl      @property +    def issne(self): +        """Gets the issne of this ContainerEntity.  # noqa: E501 + +        Electronic ISSN number (ISSN-E). Should be valid and registered with issn.org  # noqa: E501 + +        :return: The issne of this ContainerEntity.  # noqa: E501 +        :rtype: str +        """ +        return self._issne + +    @issne.setter +    def issne(self, issne): +        """Sets the issne of this ContainerEntity. + +        Electronic ISSN number (ISSN-E). Should be valid and registered with issn.org  # noqa: E501 + +        :param issne: The issne of this ContainerEntity.  # noqa: E501 +        :type: str +        """ +        if issne is not None and len(issne) > 9: +            raise ValueError("Invalid value for `issne`, length must be less than or equal to `9`")  # noqa: E501 +        if issne is not None and len(issne) < 9: +            raise ValueError("Invalid value for `issne`, length must be greater than or equal to `9`")  # noqa: E501 +        if issne is not None and not re.search(r'\d{4}-\d{3}[0-9X]', issne):  # noqa: E501 +            raise ValueError(r"Invalid value for `issne`, must be a follow pattern or equal to `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501 + +        self._issne = issne + +    @property +    def issnp(self): +        """Gets the issnp of this ContainerEntity.  # noqa: E501 + +        Print ISSN number (ISSN-P). Should be valid and registered with issn.org  # noqa: E501 + +        :return: The issnp of this ContainerEntity.  # noqa: E501 +        :rtype: str +        """ +        return self._issnp + +    @issnp.setter +    def issnp(self, issnp): +        """Sets the issnp of this ContainerEntity. + +        Print ISSN number (ISSN-P). Should be valid and registered with issn.org  # noqa: E501 + +        :param issnp: The issnp of this ContainerEntity.  # noqa: E501 +        :type: str +        """ +        if issnp is not None and len(issnp) > 9: +            raise ValueError("Invalid value for `issnp`, length must be less than or equal to `9`")  # noqa: E501 +        if issnp is not None and len(issnp) < 9: +            raise ValueError("Invalid value for `issnp`, length must be greater than or equal to `9`")  # noqa: E501 +        if issnp is not None and not re.search(r'\d{4}-\d{3}[0-9X]', issnp):  # noqa: E501 +            raise ValueError(r"Invalid value for `issnp`, must be a follow pattern or equal to `/\d{4}-\d{3}[0-9X]/`")  # noqa: E501 + +        self._issnp = issnp + +    @property      def wikidata_qid(self):          """Gets the wikidata_qid of this ContainerEntity.  # noqa: E501 diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_file.py b/python_openapi_client/fatcat_openapi_client/models/fileset_file.py index 15afd2f1..0741f9a5 100644 --- a/python_openapi_client/fatcat_openapi_client/models/fileset_file.py +++ b/python_openapi_client/fatcat_openapi_client/models/fileset_file.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.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -37,6 +37,7 @@ class FilesetFile(object):          'md5': 'str',          'sha1': 'str',          'sha256': 'str', +        'mimetype': 'str',          'extra': 'dict(str, object)'      } @@ -46,10 +47,11 @@ class FilesetFile(object):          'md5': 'md5',          'sha1': 'sha1',          'sha256': 'sha256', +        'mimetype': 'mimetype',          'extra': 'extra'      } -    def __init__(self, path=None, size=None, md5=None, sha1=None, sha256=None, extra=None):  # noqa: E501 +    def __init__(self, path=None, size=None, md5=None, sha1=None, sha256=None, mimetype=None, extra=None):  # noqa: E501          """FilesetFile - a model defined in OpenAPI"""  # noqa: E501          self._path = None @@ -57,6 +59,7 @@ class FilesetFile(object):          self._md5 = None          self._sha1 = None          self._sha256 = None +        self._mimetype = None          self._extra = None          self.discriminator = None @@ -68,6 +71,8 @@ class FilesetFile(object):              self.sha1 = sha1          if sha256 is not None:              self.sha256 = sha256 +        if mimetype is not None: +            self.mimetype = mimetype          if extra is not None:              self.extra = extra @@ -209,10 +214,31 @@ class FilesetFile(object):          self._sha256 = sha256      @property +    def mimetype(self): +        """Gets the mimetype of this FilesetFile.  # noqa: E501 + + +        :return: The mimetype of this FilesetFile.  # noqa: E501 +        :rtype: str +        """ +        return self._mimetype + +    @mimetype.setter +    def mimetype(self, mimetype): +        """Sets the mimetype of this FilesetFile. + + +        :param mimetype: The mimetype of this FilesetFile.  # noqa: E501 +        :type: str +        """ + +        self._mimetype = mimetype + +    @property      def extra(self):          """Gets the extra of this FilesetFile.  # noqa: E501 -        Free-form additional metadata about this specific file in the set. Eg, `mimetype`. See guide for nomative (but unenforced) schema fields.   # noqa: E501 +        Free-form additional metadata about this specific file in the set. Eg, `original_url`. See guide for nomative (but unenforced) schema fields.   # noqa: E501          :return: The extra of this FilesetFile.  # noqa: E501          :rtype: dict(str, object) @@ -223,7 +249,7 @@ class FilesetFile(object):      def extra(self, extra):          """Sets the extra of this FilesetFile. -        Free-form additional metadata about this specific file in the set. Eg, `mimetype`. See guide for nomative (but unenforced) schema fields.   # noqa: E501 +        Free-form additional metadata about this specific file in the set. Eg, `original_url`. See guide for nomative (but unenforced) schema fields.   # noqa: E501          :param extra: The extra of this FilesetFile.  # noqa: E501          :type: dict(str, object) 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 c8ca4b06..2f46a3b8 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.3 +    The version of the OpenAPI document: 0.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -44,7 +44,8 @@ class ReleaseExtIds(object):          'mag': 'str',          'doaj': 'str',          'dblp': 'str', -        'oai': 'str' +        'oai': 'str', +        'hdl': 'str'      }      attribute_map = { @@ -60,10 +61,11 @@ class ReleaseExtIds(object):          'mag': 'mag',          'doaj': 'doaj',          'dblp': 'dblp', -        'oai': 'oai' +        'oai': 'oai', +        'hdl': 'hdl'      } -    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 +    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, hdl=None):  # noqa: E501          """ReleaseExtIds - a model defined in OpenAPI"""  # noqa: E501          self._doi = None @@ -79,6 +81,7 @@ class ReleaseExtIds(object):          self._doaj = None          self._dblp = None          self._oai = None +        self._hdl = None          self.discriminator = None          if doi is not None: @@ -107,6 +110,8 @@ class ReleaseExtIds(object):              self.dblp = dblp          if oai is not None:              self.oai = oai +        if hdl is not None: +            self.hdl = hdl      @property      def doi(self): @@ -407,6 +412,29 @@ class ReleaseExtIds(object):          self._oai = oai +    @property +    def hdl(self): +        """Gets the hdl of this ReleaseExtIds.  # noqa: E501 + +        Handle identifier. Do not put DOIs in this field  # noqa: E501 + +        :return: The hdl of this ReleaseExtIds.  # noqa: E501 +        :rtype: str +        """ +        return self._hdl + +    @hdl.setter +    def hdl(self, hdl): +        """Sets the hdl of this ReleaseExtIds. + +        Handle identifier. Do not put DOIs in this field  # noqa: E501 + +        :param hdl: The hdl of this ReleaseExtIds.  # noqa: E501 +        :type: str +        """ + +        self._hdl = hdl +      def to_dict(self):          """Returns the model properties as a dict"""          result = {} diff --git a/python_openapi_client/tests/codegen/test_default_api.py b/python_openapi_client/tests/codegen/test_default_api.py index ca59903e..c86c1e80 100644 --- a/python_openapi_client/tests/codegen/test_default_api.py +++ b/python_openapi_client/tests/codegen/test_default_api.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.4.0      Contact: webservices@archive.org      Generated by: https://openapi-generator.tech  """ @@ -533,6 +533,12 @@ class TestDefaultApi(unittest.TestCase):          """          pass +    def test_lookup_editor(self): +        """Test case for lookup_editor + +        """ +        pass +      def test_lookup_file(self):          """Test case for lookup_file | 
