summaryrefslogtreecommitdiffstats
path: root/python_openapi_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-17 14:33:37 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-11-17 16:16:25 -0800
commitc14e301bbc74e9b87d835813609362e2489d963a (patch)
tree190387e7ee642af7dbe6f591b34b1bf533095e87 /python_openapi_client
parenta0dd2fe16287328101e9ebb0e94f65709318b252 (diff)
downloadfatcat-c14e301bbc74e9b87d835813609362e2489d963a.tar.gz
fatcat-c14e301bbc74e9b87d835813609362e2489d963a.zip
update python client library codegen for content_scope
Diffstat (limited to 'python_openapi_client')
-rw-r--r--python_openapi_client/README.md4
-rwxr-xr-xpython_openapi_client/codegen_python_client.sh2
-rw-r--r--python_openapi_client/fatcat_openapi_client/__init__.py4
-rw-r--r--python_openapi_client/fatcat_openapi_client/__version__.py2
-rw-r--r--python_openapi_client/fatcat_openapi_client/api_client.py4
-rw-r--r--python_openapi_client/fatcat_openapi_client/configuration.py6
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_entity.py30
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_entity.py30
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py30
9 files changed, 95 insertions, 17 deletions
diff --git a/python_openapi_client/README.md b/python_openapi_client/README.md
index 8cc34147..5dcee5a6 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.0
-- Package version: 0.4.0
+- API version: 0.4.1
+- Package version: 0.4.1
- 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 bbf2ad83..670fb190 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.0"
+ -p packageVersion="0.4.1"
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 5f1a7fba..329e5488 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.0
+ The version of the OpenAPI document: 0.4.1
Contact: webservices@archive.org
Generated by: https://openapi-generator.tech
"""
@@ -15,7 +15,7 @@
from __future__ import absolute_import
-__version__ = "0.4.0"
+__version__ = "0.4.1"
# 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 618922fe..30c2fffe 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, 0) # eg, (0, 2, '0dev0')
+VERSION = (0, 4, 1) # 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 efef8cbf..ed083dfa 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.0
+ The version of the OpenAPI document: 0.4.1
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.0/python'
+ self.user_agent = 'OpenAPI-Generator/0.4.1/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 c0e39620..0b186c5b 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.0
+ The version of the OpenAPI document: 0.4.1
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.0\n"\
- "SDK Package Version: 0.4.0".\
+ "Version of the API: 0.4.1\n"\
+ "SDK Package Version: 0.4.1".\
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 e52635a6..d0c86d47 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.3.1
+ The version of the OpenAPI document: 0.4.1
Contact: webservices@archive.org
Generated by: https://openapi-generator.tech
"""
@@ -44,6 +44,7 @@ class FileEntity(object):
'sha256': 'str',
'urls': 'list[FileUrl]',
'mimetype': 'str',
+ 'content_scope': 'str',
'release_ids': 'list[str]',
'releases': 'list[ReleaseEntity]'
}
@@ -61,11 +62,12 @@ class FileEntity(object):
'sha256': 'sha256',
'urls': 'urls',
'mimetype': 'mimetype',
+ 'content_scope': 'content_scope',
'release_ids': 'release_ids',
'releases': 'releases'
}
- def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, size=None, md5=None, sha1=None, sha256=None, urls=None, mimetype=None, release_ids=None, releases=None): # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, size=None, md5=None, sha1=None, sha256=None, urls=None, mimetype=None, content_scope=None, release_ids=None, releases=None): # noqa: E501
"""FileEntity - a model defined in OpenAPI""" # noqa: E501
self._state = None
@@ -80,6 +82,7 @@ class FileEntity(object):
self._sha256 = None
self._urls = None
self._mimetype = None
+ self._content_scope = None
self._release_ids = None
self._releases = None
self.discriminator = None
@@ -108,6 +111,8 @@ class FileEntity(object):
self.urls = urls
if mimetype is not None:
self.mimetype = mimetype
+ if content_scope is not None:
+ self.content_scope = content_scope
if release_ids is not None:
self.release_ids = release_ids
if releases is not None:
@@ -426,6 +431,27 @@ class FileEntity(object):
self._mimetype = mimetype
@property
+ def content_scope(self):
+ """Gets the content_scope of this FileEntity. # noqa: E501
+
+
+ :return: The content_scope of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._content_scope
+
+ @content_scope.setter
+ def content_scope(self, content_scope):
+ """Sets the content_scope of this FileEntity.
+
+
+ :param content_scope: The content_scope of this FileEntity. # noqa: E501
+ :type: str
+ """
+
+ self._content_scope = content_scope
+
+ @property
def release_ids(self):
"""Gets the release_ids of this FileEntity. # noqa: E501
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:
@@ -254,6 +259,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
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 82363c23..61d0e5ad 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.3.1
+ The version of the OpenAPI document: 0.4.1
Contact: webservices@archive.org
Generated by: https://openapi-generator.tech
"""
@@ -42,6 +42,7 @@ class WebcaptureEntity(object):
'archive_urls': 'list[WebcaptureUrl]',
'original_url': 'str',
'timestamp': 'datetime',
+ 'content_scope': 'str',
'release_ids': 'list[str]',
'releases': 'list[ReleaseEntity]'
}
@@ -57,11 +58,12 @@ class WebcaptureEntity(object):
'archive_urls': 'archive_urls',
'original_url': 'original_url',
'timestamp': 'timestamp',
+ 'content_scope': 'content_scope',
'release_ids': 'release_ids',
'releases': 'releases'
}
- def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, cdx=None, archive_urls=None, original_url=None, timestamp=None, release_ids=None, releases=None): # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, cdx=None, archive_urls=None, original_url=None, timestamp=None, content_scope=None, release_ids=None, releases=None): # noqa: E501
"""WebcaptureEntity - a model defined in OpenAPI""" # noqa: E501
self._state = None
@@ -74,6 +76,7 @@ class WebcaptureEntity(object):
self._archive_urls = None
self._original_url = None
self._timestamp = None
+ self._content_scope = None
self._release_ids = None
self._releases = None
self.discriminator = None
@@ -98,6 +101,8 @@ class WebcaptureEntity(object):
self.original_url = original_url
if timestamp is not None:
self.timestamp = timestamp
+ if content_scope is not None:
+ self.content_scope = content_scope
if release_ids is not None:
self.release_ids = release_ids
if releases is not None:
@@ -352,6 +357,27 @@ class WebcaptureEntity(object):
self._timestamp = timestamp
@property
+ def content_scope(self):
+ """Gets the content_scope of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The content_scope of this WebcaptureEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._content_scope
+
+ @content_scope.setter
+ def content_scope(self, content_scope):
+ """Sets the content_scope of this WebcaptureEntity.
+
+
+ :param content_scope: The content_scope of this WebcaptureEntity. # noqa: E501
+ :type: str
+ """
+
+ self._content_scope = content_scope
+
+ @property
def release_ids(self):
"""Gets the release_ids of this WebcaptureEntity. # noqa: E501