From c14e301bbc74e9b87d835813609362e2489d963a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 17 Nov 2021 14:33:37 -0800 Subject: update python client library codegen for content_scope --- .../fatcat_openapi_client/models/fileset_entity.py | 30 ++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'python_openapi_client/fatcat_openapi_client/models/fileset_entity.py') diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py b/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py index 51952d2a..44d5bebf 100644 --- a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py +++ b/python_openapi_client/fatcat_openapi_client/models/fileset_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.1 Contact: webservices@archive.org Generated by: https://openapi-generator.tech """ @@ -38,6 +38,7 @@ class FilesetEntity(object): 'redirect': 'str', 'extra': 'dict(str, object)', 'edit_extra': 'dict(str, object)', + 'content_scope': 'str', 'manifest': 'list[FilesetFile]', 'urls': 'list[FilesetUrl]', 'release_ids': 'list[str]', @@ -51,13 +52,14 @@ class FilesetEntity(object): 'redirect': 'redirect', 'extra': 'extra', 'edit_extra': 'edit_extra', + 'content_scope': 'content_scope', 'manifest': 'manifest', 'urls': 'urls', 'release_ids': 'release_ids', 'releases': 'releases' } - def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, manifest=None, urls=None, release_ids=None, releases=None): # noqa: E501 + def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, content_scope=None, manifest=None, urls=None, release_ids=None, releases=None): # noqa: E501 """FilesetEntity - a model defined in OpenAPI""" # noqa: E501 self._state = None @@ -66,6 +68,7 @@ class FilesetEntity(object): self._redirect = None self._extra = None self._edit_extra = None + self._content_scope = None self._manifest = None self._urls = None self._release_ids = None @@ -84,6 +87,8 @@ class FilesetEntity(object): self.extra = extra if edit_extra is not None: self.edit_extra = edit_extra + if content_scope is not None: + self.content_scope = content_scope if manifest is not None: self.manifest = manifest if urls is not None: @@ -253,6 +258,27 @@ class FilesetEntity(object): self._edit_extra = edit_extra + @property + def content_scope(self): + """Gets the content_scope of this FilesetEntity. # noqa: E501 + + + :return: The content_scope of this FilesetEntity. # noqa: E501 + :rtype: str + """ + return self._content_scope + + @content_scope.setter + def content_scope(self, content_scope): + """Sets the content_scope of this FilesetEntity. + + + :param content_scope: The content_scope of this FilesetEntity. # noqa: E501 + :type: str + """ + + self._content_scope = content_scope + @property def manifest(self): """Gets the manifest of this FilesetEntity. # noqa: E501 -- cgit v1.2.3 From 574a3cacafab2f32c7371ce24ef58c95b925e596 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 17 Nov 2021 16:55:27 -0800 Subject: bump python client to 0.5.0 --- python/Pipfile.lock | 2 +- python_openapi_client/README.md | 4 ++-- python_openapi_client/codegen_python_client.sh | 2 +- python_openapi_client/fatcat_openapi_client/__init__.py | 4 ++-- python_openapi_client/fatcat_openapi_client/__version__.py | 2 +- python_openapi_client/fatcat_openapi_client/api_client.py | 4 ++-- python_openapi_client/fatcat_openapi_client/configuration.py | 6 +++--- python_openapi_client/fatcat_openapi_client/models/file_entity.py | 2 +- .../fatcat_openapi_client/models/fileset_entity.py | 2 +- .../fatcat_openapi_client/models/webcapture_entity.py | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) (limited to 'python_openapi_client/fatcat_openapi_client/models/fileset_entity.py') diff --git a/python/Pipfile.lock b/python/Pipfile.lock index fde6ca9a..2c7d08b0 100644 --- a/python/Pipfile.lock +++ b/python/Pipfile.lock @@ -262,7 +262,7 @@ }, "fatcat-openapi-client": { "path": "./../python_openapi_client", - "version": "==0.4.1" + "version": "==0.5.0" }, "filelock": { "hashes": [ diff --git a/python_openapi_client/README.md b/python_openapi_client/README.md index 5dcee5a6..316b9dfd 100644 --- a/python_openapi_client/README.md +++ b/python_openapi_client/README.md @@ -3,8 +3,8 @@ Fatcat is a scalable, versioned, API-oriented catalog of bibliographic entities This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 0.4.1 -- Package version: 0.4.1 +- API version: 0.5.0 +- Package version: 0.5.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://fatcat.wiki](https://fatcat.wiki) diff --git a/python_openapi_client/codegen_python_client.sh b/python_openapi_client/codegen_python_client.sh index 670fb190..17782c68 100755 --- a/python_openapi_client/codegen_python_client.sh +++ b/python_openapi_client/codegen_python_client.sh @@ -20,7 +20,7 @@ docker run \ --input-spec /tmp/swagger/api.yml \ --output /tmp/swagger/ \ --package-name=fatcat_openapi_client \ - -p packageVersion="0.4.1" + -p packageVersion="0.5.0" sudo chown -R `whoami`:`whoami` $OUTPUT mkdir -p fatcat_openapi_client diff --git a/python_openapi_client/fatcat_openapi_client/__init__.py b/python_openapi_client/fatcat_openapi_client/__init__.py index 329e5488..8749264e 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.4.1 + The version of the OpenAPI document: 0.5.0 Contact: webservices@archive.org Generated by: https://openapi-generator.tech """ @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "0.4.1" +__version__ = "0.5.0" # import apis into sdk package from fatcat_openapi_client.api.default_api import DefaultApi diff --git a/python_openapi_client/fatcat_openapi_client/__version__.py b/python_openapi_client/fatcat_openapi_client/__version__.py index 30c2fffe..b0634514 100644 --- a/python_openapi_client/fatcat_openapi_client/__version__.py +++ b/python_openapi_client/fatcat_openapi_client/__version__.py @@ -1,3 +1,3 @@ -VERSION = (0, 4, 1) # eg, (0, 2, '0dev0') +VERSION = (0, 5, 0) # eg, (0, 2, '0dev0') __version__ = '.'.join(map(str, VERSION)) diff --git a/python_openapi_client/fatcat_openapi_client/api_client.py b/python_openapi_client/fatcat_openapi_client/api_client.py index ed083dfa..eb23f1cd 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.4.1 + The version of the OpenAPI document: 0.5.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.4.1/python' + self.user_agent = 'OpenAPI-Generator/0.5.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 0b186c5b..dacf77c9 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.4.1 + The version of the OpenAPI document: 0.5.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.4.1\n"\ - "SDK Package Version: 0.4.1".\ + "Version of the API: 0.5.0\n"\ + "SDK Package Version: 0.5.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/python_openapi_client/fatcat_openapi_client/models/file_entity.py b/python_openapi_client/fatcat_openapi_client/models/file_entity.py index d0c86d47..d97a0a03 100644 --- a/python_openapi_client/fatcat_openapi_client/models/file_entity.py +++ b/python_openapi_client/fatcat_openapi_client/models/file_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.4.1 + The version of the OpenAPI document: 0.5.0 Contact: webservices@archive.org Generated by: https://openapi-generator.tech """ diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py b/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py index 44d5bebf..dfc0787a 100644 --- a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py +++ b/python_openapi_client/fatcat_openapi_client/models/fileset_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.4.1 + The version of the OpenAPI document: 0.5.0 Contact: webservices@archive.org Generated by: https://openapi-generator.tech """ diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py index 61d0e5ad..968b0b1c 100644 --- a/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py +++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_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.4.1 + The version of the OpenAPI document: 0.5.0 Contact: webservices@archive.org Generated by: https://openapi-generator.tech """ -- cgit v1.2.3