aboutsummaryrefslogtreecommitdiffstats
path: root/python_openapi_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-05 18:44:40 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-05 18:44:40 -0700
commit070069cb6eb71b92a9c4e46f3d4cfabb67f4eb3f (patch)
tree82f82c5586bd97c2ed5c4082f85d571f23a4182b /python_openapi_client
parent180bb7366587bc4150108e4e0274806ce285d6a6 (diff)
downloadfatcat-070069cb6eb71b92a9c4e46f3d4cfabb67f4eb3f.tar.gz
fatcat-070069cb6eb71b92a9c4e46f3d4cfabb67f4eb3f.zip
rename python client to 'fatcat-openapi-client'
Diffstat (limited to 'python_openapi_client')
-rw-r--r--python_openapi_client/.gitignore9
-rw-r--r--python_openapi_client/README.md223
-rwxr-xr-xpython_openapi_client/codegen_python_client.sh104
-rw-r--r--python_openapi_client/conftest.py8
-rw-r--r--python_openapi_client/fatcat_openapi_client/__init__.py58
-rw-r--r--python_openapi_client/fatcat_openapi_client/__version__.py3
-rw-r--r--python_openapi_client/fatcat_openapi_client/api/__init__.py6
-rw-r--r--python_openapi_client/fatcat_openapi_client/api/default_api.py9972
-rw-r--r--python_openapi_client/fatcat_openapi_client/api_client.py624
-rw-r--r--python_openapi_client/fatcat_openapi_client/configuration.py247
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/__init__.py51
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/auth_oidc.py194
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py142
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/changelog_entry.py195
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/container_entity.py412
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/creator_entity.py410
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editgroup.py366
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py294
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py270
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editor.py225
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/entity_edit.py319
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py171
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/error_response.py167
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_entity.py502
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_url.py140
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_entity.py381
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_file.py262
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_url.py140
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_abstract.py196
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_contrib.py334
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_entity.py1028
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py346
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_ref.py302
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/success.py140
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py312
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py435
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_url.py140
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py143
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/work_entity.py272
-rw-r--r--python_openapi_client/fatcat_openapi_client/rest.py323
-rw-r--r--python_openapi_client/pytest.ini10
-rw-r--r--python_openapi_client/setup.py139
-rw-r--r--python_openapi_client/tests/codegen/__init__.py0
-rw-r--r--python_openapi_client/tests/codegen/test_auth_oidc.py40
-rw-r--r--python_openapi_client/tests/codegen/test_auth_oidc_result.py40
-rw-r--r--python_openapi_client/tests/codegen/test_changelog_entry.py40
-rw-r--r--python_openapi_client/tests/codegen/test_container_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_container_entity.py40
-rw-r--r--python_openapi_client/tests/codegen/test_creator_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_creator_entity.py40
-rw-r--r--python_openapi_client/tests/codegen/test_default_api.py598
-rw-r--r--python_openapi_client/tests/codegen/test_editgroup.py40
-rw-r--r--python_openapi_client/tests/codegen/test_editgroup_annotation.py40
-rw-r--r--python_openapi_client/tests/codegen/test_editgroup_edits.py40
-rw-r--r--python_openapi_client/tests/codegen/test_editor.py40
-rw-r--r--python_openapi_client/tests/codegen/test_entity_edit.py40
-rw-r--r--python_openapi_client/tests/codegen/test_entity_history_entry.py40
-rw-r--r--python_openapi_client/tests/codegen/test_error_response.py40
-rw-r--r--python_openapi_client/tests/codegen/test_file_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_file_entity.py40
-rw-r--r--python_openapi_client/tests/codegen/test_file_url.py40
-rw-r--r--python_openapi_client/tests/codegen/test_fileset_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_fileset_entity.py40
-rw-r--r--python_openapi_client/tests/codegen/test_fileset_file.py40
-rw-r--r--python_openapi_client/tests/codegen/test_fileset_url.py40
-rw-r--r--python_openapi_client/tests/codegen/test_release_abstract.py40
-rw-r--r--python_openapi_client/tests/codegen/test_release_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_release_contrib.py40
-rw-r--r--python_openapi_client/tests/codegen/test_release_entity.py40
-rw-r--r--python_openapi_client/tests/codegen/test_release_ext_ids.py40
-rw-r--r--python_openapi_client/tests/codegen/test_release_ref.py40
-rw-r--r--python_openapi_client/tests/codegen/test_success.py40
-rw-r--r--python_openapi_client/tests/codegen/test_webcapture_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_webcapture_cdx_line.py40
-rw-r--r--python_openapi_client/tests/codegen/test_webcapture_entity.py40
-rw-r--r--python_openapi_client/tests/codegen/test_webcapture_url.py40
-rw-r--r--python_openapi_client/tests/codegen/test_work_auto_batch.py40
-rw-r--r--python_openapi_client/tests/codegen/test_work_entity.py40
84 files changed, 22831 insertions, 0 deletions
diff --git a/python_openapi_client/.gitignore b/python_openapi_client/.gitignore
new file mode 100644
index 00000000..a0bc258b
--- /dev/null
+++ b/python_openapi_client/.gitignore
@@ -0,0 +1,9 @@
+.env
+codegen-out/
+build/
+dist/
+*.egg-info
+*.json.gz
+!.coveragerc
+!.pylintrc
+!.gitignore
diff --git a/python_openapi_client/README.md b/python_openapi_client/README.md
new file mode 100644
index 00000000..0e75f1d1
--- /dev/null
+++ b/python_openapi_client/README.md
@@ -0,0 +1,223 @@
+# fatcat-openapi-client
+A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata
+
+This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
+
+- API version: 0.3.0
+- Package version: 1.0.0
+- Build package: io.swagger.codegen.languages.PythonClientCodegen
+
+## Requirements.
+
+Python 2.7 and 3.4+
+
+## Installation & Usage
+### pip install
+
+If the python package is hosted on Github, you can install directly from Github
+
+```sh
+pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
+```
+(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
+
+Then import the package:
+```python
+import fatcat_openapi_client
+```
+
+### Setuptools
+
+Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
+
+```sh
+python setup.py install --user
+```
+(or `sudo python setup.py install` to install the package for all users)
+
+Then import the package:
+```python
+import fatcat_openapi_client
+```
+
+## Getting Started
+
+Please follow the [installation procedure](#installation--usage) and then run the following:
+
+```python
+from __future__ import print_function
+import time
+import fatcat_openapi_client
+from fatcat_openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: Bearer
+fatcat_openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# fatcat_openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
+# create an instance of the API class
+api_instance = fatcat_openapi_client.DefaultApi()
+editgroup_id = 'editgroup_id_example' # str | base32-encoded unique identifier
+
+try:
+ api_response = api_instance.accept_editgroup(editgroup_id)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DefaultApi->accept_editgroup: %s\n" % e)
+
+```
+
+## Documentation for API Endpoints
+
+All URIs are relative to *https://api.fatcat.wiki/v0*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*DefaultApi* | [**accept_editgroup**](docs/DefaultApi.md#accept_editgroup) | **POST** /editgroup/{editgroup_id}/accept |
+*DefaultApi* | [**auth_check**](docs/DefaultApi.md#auth_check) | **GET** /auth/check |
+*DefaultApi* | [**auth_oidc**](docs/DefaultApi.md#auth_oidc) | **POST** /auth/oidc |
+*DefaultApi* | [**create_container**](docs/DefaultApi.md#create_container) | **POST** /editgroup/{editgroup_id}/container |
+*DefaultApi* | [**create_container_auto_batch**](docs/DefaultApi.md#create_container_auto_batch) | **POST** /editgroup/auto/container/batch |
+*DefaultApi* | [**create_creator**](docs/DefaultApi.md#create_creator) | **POST** /editgroup/{editgroup_id}/creator |
+*DefaultApi* | [**create_creator_auto_batch**](docs/DefaultApi.md#create_creator_auto_batch) | **POST** /editgroup/auto/creator/batch |
+*DefaultApi* | [**create_editgroup**](docs/DefaultApi.md#create_editgroup) | **POST** /editgroup |
+*DefaultApi* | [**create_editgroup_annotation**](docs/DefaultApi.md#create_editgroup_annotation) | **POST** /editgroup/{editgroup_id}/annotation |
+*DefaultApi* | [**create_file**](docs/DefaultApi.md#create_file) | **POST** /editgroup/{editgroup_id}/file |
+*DefaultApi* | [**create_file_auto_batch**](docs/DefaultApi.md#create_file_auto_batch) | **POST** /editgroup/auto/file/batch |
+*DefaultApi* | [**create_fileset**](docs/DefaultApi.md#create_fileset) | **POST** /editgroup/{editgroup_id}/fileset |
+*DefaultApi* | [**create_fileset_auto_batch**](docs/DefaultApi.md#create_fileset_auto_batch) | **POST** /editgroup/auto/fileset/batch |
+*DefaultApi* | [**create_release**](docs/DefaultApi.md#create_release) | **POST** /editgroup/{editgroup_id}/release |
+*DefaultApi* | [**create_release_auto_batch**](docs/DefaultApi.md#create_release_auto_batch) | **POST** /editgroup/auto/release/batch |
+*DefaultApi* | [**create_webcapture**](docs/DefaultApi.md#create_webcapture) | **POST** /editgroup/{editgroup_id}/webcapture |
+*DefaultApi* | [**create_webcapture_auto_batch**](docs/DefaultApi.md#create_webcapture_auto_batch) | **POST** /editgroup/auto/webcapture/batch |
+*DefaultApi* | [**create_work**](docs/DefaultApi.md#create_work) | **POST** /editgroup/{editgroup_id}/work |
+*DefaultApi* | [**create_work_auto_batch**](docs/DefaultApi.md#create_work_auto_batch) | **POST** /editgroup/auto/work/batch |
+*DefaultApi* | [**delete_container**](docs/DefaultApi.md#delete_container) | **DELETE** /editgroup/{editgroup_id}/container/{ident} |
+*DefaultApi* | [**delete_container_edit**](docs/DefaultApi.md#delete_container_edit) | **DELETE** /editgroup/{editgroup_id}/container/edit/{edit_id} |
+*DefaultApi* | [**delete_creator**](docs/DefaultApi.md#delete_creator) | **DELETE** /editgroup/{editgroup_id}/creator/{ident} |
+*DefaultApi* | [**delete_creator_edit**](docs/DefaultApi.md#delete_creator_edit) | **DELETE** /editgroup/{editgroup_id}/creator/edit/{edit_id} |
+*DefaultApi* | [**delete_file**](docs/DefaultApi.md#delete_file) | **DELETE** /editgroup/{editgroup_id}/file/{ident} |
+*DefaultApi* | [**delete_file_edit**](docs/DefaultApi.md#delete_file_edit) | **DELETE** /editgroup/{editgroup_id}/file/edit/{edit_id} |
+*DefaultApi* | [**delete_fileset**](docs/DefaultApi.md#delete_fileset) | **DELETE** /editgroup/{editgroup_id}/fileset/{ident} |
+*DefaultApi* | [**delete_fileset_edit**](docs/DefaultApi.md#delete_fileset_edit) | **DELETE** /editgroup/{editgroup_id}/fileset/edit/{edit_id} |
+*DefaultApi* | [**delete_release**](docs/DefaultApi.md#delete_release) | **DELETE** /editgroup/{editgroup_id}/release/{ident} |
+*DefaultApi* | [**delete_release_edit**](docs/DefaultApi.md#delete_release_edit) | **DELETE** /editgroup/{editgroup_id}/release/edit/{edit_id} |
+*DefaultApi* | [**delete_webcapture**](docs/DefaultApi.md#delete_webcapture) | **DELETE** /editgroup/{editgroup_id}/webcapture/{ident} |
+*DefaultApi* | [**delete_webcapture_edit**](docs/DefaultApi.md#delete_webcapture_edit) | **DELETE** /editgroup/{editgroup_id}/webcapture/edit/{edit_id} |
+*DefaultApi* | [**delete_work**](docs/DefaultApi.md#delete_work) | **DELETE** /editgroup/{editgroup_id}/work/{ident} |
+*DefaultApi* | [**delete_work_edit**](docs/DefaultApi.md#delete_work_edit) | **DELETE** /editgroup/{editgroup_id}/work/edit/{edit_id} |
+*DefaultApi* | [**get_changelog**](docs/DefaultApi.md#get_changelog) | **GET** /changelog |
+*DefaultApi* | [**get_changelog_entry**](docs/DefaultApi.md#get_changelog_entry) | **GET** /changelog/{index} |
+*DefaultApi* | [**get_container**](docs/DefaultApi.md#get_container) | **GET** /container/{ident} |
+*DefaultApi* | [**get_container_edit**](docs/DefaultApi.md#get_container_edit) | **GET** /container/edit/{edit_id} |
+*DefaultApi* | [**get_container_history**](docs/DefaultApi.md#get_container_history) | **GET** /container/{ident}/history |
+*DefaultApi* | [**get_container_redirects**](docs/DefaultApi.md#get_container_redirects) | **GET** /container/{ident}/redirects |
+*DefaultApi* | [**get_container_revision**](docs/DefaultApi.md#get_container_revision) | **GET** /container/rev/{rev_id} |
+*DefaultApi* | [**get_creator**](docs/DefaultApi.md#get_creator) | **GET** /creator/{ident} |
+*DefaultApi* | [**get_creator_edit**](docs/DefaultApi.md#get_creator_edit) | **GET** /creator/edit/{edit_id} |
+*DefaultApi* | [**get_creator_history**](docs/DefaultApi.md#get_creator_history) | **GET** /creator/{ident}/history |
+*DefaultApi* | [**get_creator_redirects**](docs/DefaultApi.md#get_creator_redirects) | **GET** /creator/{ident}/redirects |
+*DefaultApi* | [**get_creator_releases**](docs/DefaultApi.md#get_creator_releases) | **GET** /creator/{ident}/releases |
+*DefaultApi* | [**get_creator_revision**](docs/DefaultApi.md#get_creator_revision) | **GET** /creator/rev/{rev_id} |
+*DefaultApi* | [**get_editgroup**](docs/DefaultApi.md#get_editgroup) | **GET** /editgroup/{editgroup_id} |
+*DefaultApi* | [**get_editgroup_annotations**](docs/DefaultApi.md#get_editgroup_annotations) | **GET** /editgroup/{editgroup_id}/annotations |
+*DefaultApi* | [**get_editgroups_reviewable**](docs/DefaultApi.md#get_editgroups_reviewable) | **GET** /editgroup/reviewable |
+*DefaultApi* | [**get_editor**](docs/DefaultApi.md#get_editor) | **GET** /editor/{editor_id} |
+*DefaultApi* | [**get_editor_annotations**](docs/DefaultApi.md#get_editor_annotations) | **GET** /editor/{editor_id}/annotations |
+*DefaultApi* | [**get_editor_editgroups**](docs/DefaultApi.md#get_editor_editgroups) | **GET** /editor/{editor_id}/editgroups |
+*DefaultApi* | [**get_file**](docs/DefaultApi.md#get_file) | **GET** /file/{ident} |
+*DefaultApi* | [**get_file_edit**](docs/DefaultApi.md#get_file_edit) | **GET** /file/edit/{edit_id} |
+*DefaultApi* | [**get_file_history**](docs/DefaultApi.md#get_file_history) | **GET** /file/{ident}/history |
+*DefaultApi* | [**get_file_redirects**](docs/DefaultApi.md#get_file_redirects) | **GET** /file/{ident}/redirects |
+*DefaultApi* | [**get_file_revision**](docs/DefaultApi.md#get_file_revision) | **GET** /file/rev/{rev_id} |
+*DefaultApi* | [**get_fileset**](docs/DefaultApi.md#get_fileset) | **GET** /fileset/{ident} |
+*DefaultApi* | [**get_fileset_edit**](docs/DefaultApi.md#get_fileset_edit) | **GET** /fileset/edit/{edit_id} |
+*DefaultApi* | [**get_fileset_history**](docs/DefaultApi.md#get_fileset_history) | **GET** /fileset/{ident}/history |
+*DefaultApi* | [**get_fileset_redirects**](docs/DefaultApi.md#get_fileset_redirects) | **GET** /fileset/{ident}/redirects |
+*DefaultApi* | [**get_fileset_revision**](docs/DefaultApi.md#get_fileset_revision) | **GET** /fileset/rev/{rev_id} |
+*DefaultApi* | [**get_release**](docs/DefaultApi.md#get_release) | **GET** /release/{ident} |
+*DefaultApi* | [**get_release_edit**](docs/DefaultApi.md#get_release_edit) | **GET** /release/edit/{edit_id} |
+*DefaultApi* | [**get_release_files**](docs/DefaultApi.md#get_release_files) | **GET** /release/{ident}/files |
+*DefaultApi* | [**get_release_filesets**](docs/DefaultApi.md#get_release_filesets) | **GET** /release/{ident}/filesets |
+*DefaultApi* | [**get_release_history**](docs/DefaultApi.md#get_release_history) | **GET** /release/{ident}/history |
+*DefaultApi* | [**get_release_redirects**](docs/DefaultApi.md#get_release_redirects) | **GET** /release/{ident}/redirects |
+*DefaultApi* | [**get_release_revision**](docs/DefaultApi.md#get_release_revision) | **GET** /release/rev/{rev_id} |
+*DefaultApi* | [**get_release_webcaptures**](docs/DefaultApi.md#get_release_webcaptures) | **GET** /release/{ident}/webcaptures |
+*DefaultApi* | [**get_webcapture**](docs/DefaultApi.md#get_webcapture) | **GET** /webcapture/{ident} |
+*DefaultApi* | [**get_webcapture_edit**](docs/DefaultApi.md#get_webcapture_edit) | **GET** /webcapture/edit/{edit_id} |
+*DefaultApi* | [**get_webcapture_history**](docs/DefaultApi.md#get_webcapture_history) | **GET** /webcapture/{ident}/history |
+*DefaultApi* | [**get_webcapture_redirects**](docs/DefaultApi.md#get_webcapture_redirects) | **GET** /webcapture/{ident}/redirects |
+*DefaultApi* | [**get_webcapture_revision**](docs/DefaultApi.md#get_webcapture_revision) | **GET** /webcapture/rev/{rev_id} |
+*DefaultApi* | [**get_work**](docs/DefaultApi.md#get_work) | **GET** /work/{ident} |
+*DefaultApi* | [**get_work_edit**](docs/DefaultApi.md#get_work_edit) | **GET** /work/edit/{edit_id} |
+*DefaultApi* | [**get_work_history**](docs/DefaultApi.md#get_work_history) | **GET** /work/{ident}/history |
+*DefaultApi* | [**get_work_redirects**](docs/DefaultApi.md#get_work_redirects) | **GET** /work/{ident}/redirects |
+*DefaultApi* | [**get_work_releases**](docs/DefaultApi.md#get_work_releases) | **GET** /work/{ident}/releases |
+*DefaultApi* | [**get_work_revision**](docs/DefaultApi.md#get_work_revision) | **GET** /work/rev/{rev_id} |
+*DefaultApi* | [**lookup_container**](docs/DefaultApi.md#lookup_container) | **GET** /container/lookup |
+*DefaultApi* | [**lookup_creator**](docs/DefaultApi.md#lookup_creator) | **GET** /creator/lookup |
+*DefaultApi* | [**lookup_file**](docs/DefaultApi.md#lookup_file) | **GET** /file/lookup |
+*DefaultApi* | [**lookup_release**](docs/DefaultApi.md#lookup_release) | **GET** /release/lookup |
+*DefaultApi* | [**update_container**](docs/DefaultApi.md#update_container) | **PUT** /editgroup/{editgroup_id}/container/{ident} |
+*DefaultApi* | [**update_creator**](docs/DefaultApi.md#update_creator) | **PUT** /editgroup/{editgroup_id}/creator/{ident} |
+*DefaultApi* | [**update_editgroup**](docs/DefaultApi.md#update_editgroup) | **PUT** /editgroup/{editgroup_id} |
+*DefaultApi* | [**update_editor**](docs/DefaultApi.md#update_editor) | **PUT** /editor/{editor_id} |
+*DefaultApi* | [**update_file**](docs/DefaultApi.md#update_file) | **PUT** /editgroup/{editgroup_id}/file/{ident} |
+*DefaultApi* | [**update_fileset**](docs/DefaultApi.md#update_fileset) | **PUT** /editgroup/{editgroup_id}/fileset/{ident} |
+*DefaultApi* | [**update_release**](docs/DefaultApi.md#update_release) | **PUT** /editgroup/{editgroup_id}/release/{ident} |
+*DefaultApi* | [**update_webcapture**](docs/DefaultApi.md#update_webcapture) | **PUT** /editgroup/{editgroup_id}/webcapture/{ident} |
+*DefaultApi* | [**update_work**](docs/DefaultApi.md#update_work) | **PUT** /editgroup/{editgroup_id}/work/{ident} |
+
+
+## Documentation For Models
+
+ - [AuthOidc](docs/AuthOidc.md)
+ - [AuthOidcResult](docs/AuthOidcResult.md)
+ - [ChangelogEntry](docs/ChangelogEntry.md)
+ - [ContainerAutoBatch](docs/ContainerAutoBatch.md)
+ - [ContainerEntity](docs/ContainerEntity.md)
+ - [CreatorAutoBatch](docs/CreatorAutoBatch.md)
+ - [CreatorEntity](docs/CreatorEntity.md)
+ - [Editgroup](docs/Editgroup.md)
+ - [EditgroupAnnotation](docs/EditgroupAnnotation.md)
+ - [EditgroupEdits](docs/EditgroupEdits.md)
+ - [Editor](docs/Editor.md)
+ - [EntityEdit](docs/EntityEdit.md)
+ - [EntityHistoryEntry](docs/EntityHistoryEntry.md)
+ - [ErrorResponse](docs/ErrorResponse.md)
+ - [FileAutoBatch](docs/FileAutoBatch.md)
+ - [FileEntity](docs/FileEntity.md)
+ - [FileUrl](docs/FileUrl.md)
+ - [FilesetAutoBatch](docs/FilesetAutoBatch.md)
+ - [FilesetEntity](docs/FilesetEntity.md)
+ - [FilesetFile](docs/FilesetFile.md)
+ - [FilesetUrl](docs/FilesetUrl.md)
+ - [ReleaseAbstract](docs/ReleaseAbstract.md)
+ - [ReleaseAutoBatch](docs/ReleaseAutoBatch.md)
+ - [ReleaseContrib](docs/ReleaseContrib.md)
+ - [ReleaseEntity](docs/ReleaseEntity.md)
+ - [ReleaseExtIds](docs/ReleaseExtIds.md)
+ - [ReleaseRef](docs/ReleaseRef.md)
+ - [Success](docs/Success.md)
+ - [WebcaptureAutoBatch](docs/WebcaptureAutoBatch.md)
+ - [WebcaptureCdxLine](docs/WebcaptureCdxLine.md)
+ - [WebcaptureEntity](docs/WebcaptureEntity.md)
+ - [WebcaptureUrl](docs/WebcaptureUrl.md)
+ - [WorkAutoBatch](docs/WorkAutoBatch.md)
+ - [WorkEntity](docs/WorkEntity.md)
+
+
+## Documentation For Authorization
+
+
+## Bearer
+
+- **Type**: API key
+- **API key parameter name**: Authorization
+- **Location**: HTTP header
+
+
+## Author
+
+
+
diff --git a/python_openapi_client/codegen_python_client.sh b/python_openapi_client/codegen_python_client.sh
new file mode 100755
index 00000000..c602bc19
--- /dev/null
+++ b/python_openapi_client/codegen_python_client.sh
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# This script re-generates the fatcat API client (fatcat-openapi-client) from the
+# swagger/openapi2 spec file, using automated tools ("codegen")
+
+set -exu
+set -o pipefail
+
+OUTPUT=`pwd`/codegen-out
+mkdir -p $OUTPUT
+# Strip tags, so entire API is under a single class
+cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml
+
+docker run \
+ -v $OUTPUT:/tmp/swagger/ \
+ swaggerapi/swagger-codegen-cli:v2.3.1 \
+ generate \
+ --lang python \
+ --input-spec /tmp/swagger/api.yml \
+ --output /tmp/swagger/ \
+ -DpackageName=fatcat_openapi_client
+
+sudo chown -R `whoami`:`whoami` $OUTPUT
+mkdir -p fatcat_openapi_client
+cp -r $OUTPUT/fatcat_openapi_client/* fatcat_openapi_client
+cp $OUTPUT/README.md README.md
+
+# fix an annoying/buggy __del__() in codegen
+patch -p0 << END_PATCH
+--- fatcat_openapi_client/api_client.py
++++ fatcat_openapi_client/api_client.py
+@@ -76,8 +76,11 @@ class ApiClient(object):
+ self.user_agent = 'Swagger-Codegen/1.0.0/python'
+
+ def __del__(self):
+- self.pool.close()
+- self.pool.join()
++ try:
++ self.pool.close()
++ self.pool.join()
++ except:
++ pass
+
+ @property
+ def user_agent(self):
+END_PATCH
+
+# I don't know what they were thinking with this TypeWithDefault stuff, but it
+# caused really gnarly config cross-contamination issues when running mulitple
+# clients in parallel.
+# See also: https://github.com/swagger-api/swagger-codegen/issues/9117
+patch -p0 << END_PATCH
+--- fatcat_openapi_client/configuration.py
++++ fatcat_openapi_client/configuration.py
+@@ -37,7 +37,7 @@ class TypeWithDefault(type):
+ cls._default = copy.copy(default)
+
+
+-class Configuration(six.with_metaclass(TypeWithDefault, object)):
++class Configuration(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Ref: https://github.com/swagger-api/swagger-codegen
+END_PATCH
+
+# fix circular import (release/file/fileset/webcapture)
+patch -p0 << END_PATCH
+--- fatcat_openapi_client/models/file_entity.py
++++ fatcat_openapi_client/models/file_entity.py
+@@ -17,7 +17,6 @@ import re # noqa: F401
+ import six
+
+ from fatcat_openapi_client.models.file_url import FileUrl # noqa: F401,E501
+-from fatcat_openapi_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+
+
+ class FileEntity(object):
+--- fatcat_openapi_client/models/fileset_entity.py
++++ fatcat_openapi_client/models/fileset_entity.py
+@@ -18,7 +18,6 @@ import six
+
+ from fatcat_openapi_client.models.fileset_file import FilesetFile # noqa: F401,E501
+ from fatcat_openapi_client.models.fileset_url import FilesetUrl # noqa: F401,E501
+-from fatcat_openapi_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+
+
+ class FilesetEntity(object):
+--- fatcat_openapi_client/models/webcapture_entity.py
++++ fatcat_openapi_client/models/webcapture_entity.py
+@@ -16,7 +16,6 @@ import re # noqa: F401
+
+ import six
+
+-from fatcat_openapi_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+ from fatcat_openapi_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
+ from fatcat_openapi_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501
+END_PATCH
+
+# these tests are basically no-ops
+mkdir -p tests/codegen
+cp -r $OUTPUT/test/* tests/codegen
+
+# ooo, this makes me nervous
+rm -rf $OUTPUT
diff --git a/python_openapi_client/conftest.py b/python_openapi_client/conftest.py
new file mode 100644
index 00000000..144e323c
--- /dev/null
+++ b/python_openapi_client/conftest.py
@@ -0,0 +1,8 @@
+"""
+This file exists soley to prevent pytest from trying to import/test the
+fatcat_openapi_client ./setup.py file.
+"""
+
+import sys
+
+collect_ignore = ["setup.py"]
diff --git a/python_openapi_client/fatcat_openapi_client/__init__.py b/python_openapi_client/fatcat_openapi_client/__init__.py
new file mode 100644
index 00000000..b9fb0303
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/__init__.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+# flake8: noqa
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+# import apis into sdk package
+from fatcat_openapi_client.api.default_api import DefaultApi
+
+# import ApiClient
+from fatcat_openapi_client.api_client import ApiClient
+from fatcat_openapi_client.configuration import Configuration
+# import models into sdk package
+from fatcat_openapi_client.models.auth_oidc import AuthOidc
+from fatcat_openapi_client.models.auth_oidc_result import AuthOidcResult
+from fatcat_openapi_client.models.changelog_entry import ChangelogEntry
+from fatcat_openapi_client.models.container_auto_batch import ContainerAutoBatch
+from fatcat_openapi_client.models.container_entity import ContainerEntity
+from fatcat_openapi_client.models.creator_auto_batch import CreatorAutoBatch
+from fatcat_openapi_client.models.creator_entity import CreatorEntity
+from fatcat_openapi_client.models.editgroup import Editgroup
+from fatcat_openapi_client.models.editgroup_annotation import EditgroupAnnotation
+from fatcat_openapi_client.models.editgroup_edits import EditgroupEdits
+from fatcat_openapi_client.models.editor import Editor
+from fatcat_openapi_client.models.entity_edit import EntityEdit
+from fatcat_openapi_client.models.entity_history_entry import EntityHistoryEntry
+from fatcat_openapi_client.models.error_response import ErrorResponse
+from fatcat_openapi_client.models.file_auto_batch import FileAutoBatch
+from fatcat_openapi_client.models.file_entity import FileEntity
+from fatcat_openapi_client.models.file_url import FileUrl
+from fatcat_openapi_client.models.fileset_auto_batch import FilesetAutoBatch
+from fatcat_openapi_client.models.fileset_entity import FilesetEntity
+from fatcat_openapi_client.models.fileset_file import FilesetFile
+from fatcat_openapi_client.models.fileset_url import FilesetUrl
+from fatcat_openapi_client.models.release_abstract import ReleaseAbstract
+from fatcat_openapi_client.models.release_auto_batch import ReleaseAutoBatch
+from fatcat_openapi_client.models.release_contrib import ReleaseContrib
+from fatcat_openapi_client.models.release_entity import ReleaseEntity
+from fatcat_openapi_client.models.release_ext_ids import ReleaseExtIds
+from fatcat_openapi_client.models.release_ref import ReleaseRef
+from fatcat_openapi_client.models.success import Success
+from fatcat_openapi_client.models.webcapture_auto_batch import WebcaptureAutoBatch
+from fatcat_openapi_client.models.webcapture_cdx_line import WebcaptureCdxLine
+from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity
+from fatcat_openapi_client.models.webcapture_url import WebcaptureUrl
+from fatcat_openapi_client.models.work_auto_batch import WorkAutoBatch
+from fatcat_openapi_client.models.work_entity import WorkEntity
diff --git a/python_openapi_client/fatcat_openapi_client/__version__.py b/python_openapi_client/fatcat_openapi_client/__version__.py
new file mode 100644
index 00000000..a85c1f92
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/__version__.py
@@ -0,0 +1,3 @@
+
+VERSION = (0, 3, 0) # eg, (0, 2, '0dev0')
+__version__ = '.'.join(map(str, VERSION))
diff --git a/python_openapi_client/fatcat_openapi_client/api/__init__.py b/python_openapi_client/fatcat_openapi_client/api/__init__.py
new file mode 100644
index 00000000..cdd759f9
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/api/__init__.py
@@ -0,0 +1,6 @@
+from __future__ import absolute_import
+
+# flake8: noqa
+
+# import apis into api 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
new file mode 100644
index 00000000..a15d9f06
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/api/default_api.py
@@ -0,0 +1,9972 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from fatcat_openapi_client.api_client import ApiClient
+
+
+class DefaultApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def accept_editgroup(self, editgroup_id, **kwargs): # noqa: E501
+ """accept_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.accept_editgroup(editgroup_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.accept_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.accept_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501
+ return data
+
+ def accept_editgroup_with_http_info(self, editgroup_id, **kwargs): # noqa: E501
+ """accept_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.accept_editgroup_with_http_info(editgroup_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method accept_editgroup" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `accept_editgroup`") # noqa: E501
+
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) > 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `accept_editgroup`, length must be less than or equal to `26`") # noqa: E501
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) < 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `accept_editgroup`, length must be greater than or equal to `26`") # noqa: E501
+ if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `accept_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/accept', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def auth_check(self, **kwargs): # noqa: E501
+ """auth_check # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.auth_check(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str role:
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.auth_check_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.auth_check_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def auth_check_with_http_info(self, **kwargs): # noqa: E501
+ """auth_check # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.auth_check_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str role:
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['role'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method auth_check" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'role' in params:
+ query_params.append(('role', params['role'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/auth/check', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def auth_oidc(self, oidc_params, **kwargs): # noqa: E501
+ """auth_oidc # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.auth_oidc(oidc_params, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param AuthOidc oidc_params: (required)
+ :return: AuthOidcResult
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.auth_oidc_with_http_info(oidc_params, **kwargs) # noqa: E501
+ else:
+ (data) = self.auth_oidc_with_http_info(oidc_params, **kwargs) # noqa: E501
+ return data
+
+ def auth_oidc_with_http_info(self, oidc_params, **kwargs): # noqa: E501
+ """auth_oidc # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.auth_oidc_with_http_info(oidc_params, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param AuthOidc oidc_params: (required)
+ :return: AuthOidcResult
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['oidc_params'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method auth_oidc" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'oidc_params' is set
+ if ('oidc_params' not in params or
+ params['oidc_params'] is None):
+ raise ValueError("Missing the required parameter `oidc_params` when calling `auth_oidc`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'oidc_params' in params:
+ body_params = params['oidc_params']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/auth/oidc', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='AuthOidcResult', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_container(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_container(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param ContainerEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_container_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_container_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_container_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_container_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param ContainerEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_container" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_container`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_container`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/container', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_container_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_container_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_container_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param ContainerAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_container_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_container_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_container_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_container_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_container_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param ContainerAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_container_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_container_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/container/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_creator(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_creator(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param CreatorEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_creator_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_creator_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_creator_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_creator_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param CreatorEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_creator" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_creator`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_creator`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/creator', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_creator_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_creator_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_creator_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param CreatorAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_creator_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_creator_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_creator_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_creator_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_creator_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param CreatorAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_creator_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_creator_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/creator/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_editgroup(self, editgroup, **kwargs): # noqa: E501
+ """create_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_editgroup(editgroup, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param Editgroup editgroup: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_editgroup_with_http_info(editgroup, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_editgroup_with_http_info(editgroup, **kwargs) # noqa: E501
+ return data
+
+ def create_editgroup_with_http_info(self, editgroup, **kwargs): # noqa: E501
+ """create_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_editgroup_with_http_info(editgroup, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param Editgroup editgroup: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_editgroup" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup' is set
+ if ('editgroup' not in params or
+ params['editgroup'] is None):
+ raise ValueError("Missing the required parameter `editgroup` when calling `create_editgroup`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'editgroup' in params:
+ body_params = params['editgroup']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_editgroup_annotation(self, editgroup_id, annotation, **kwargs): # noqa: E501
+ """create_editgroup_annotation # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_editgroup_annotation(editgroup_id, annotation, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :param EditgroupAnnotation annotation: (required)
+ :return: EditgroupAnnotation
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_editgroup_annotation_with_http_info(editgroup_id, annotation, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_editgroup_annotation_with_http_info(editgroup_id, annotation, **kwargs) # noqa: E501
+ return data
+
+ def create_editgroup_annotation_with_http_info(self, editgroup_id, annotation, **kwargs): # noqa: E501
+ """create_editgroup_annotation # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_editgroup_annotation_with_http_info(editgroup_id, annotation, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :param EditgroupAnnotation annotation: (required)
+ :return: EditgroupAnnotation
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'annotation'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_editgroup_annotation" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_editgroup_annotation`") # noqa: E501
+ # verify the required parameter 'annotation' is set
+ if ('annotation' not in params or
+ params['annotation'] is None):
+ raise ValueError("Missing the required parameter `annotation` when calling `create_editgroup_annotation`") # noqa: E501
+
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) > 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `create_editgroup_annotation`, length must be less than or equal to `26`") # noqa: E501
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) < 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `create_editgroup_annotation`, length must be greater than or equal to `26`") # noqa: E501
+ if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `create_editgroup_annotation`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'annotation' in params:
+ body_params = params['annotation']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/annotation', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EditgroupAnnotation', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_file(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_file(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param FileEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_file_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_file_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_file_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_file_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param FileEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_file" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_file`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_file`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/file', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_file_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_file_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_file_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param FileAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_file_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_file_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_file_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_file_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_file_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param FileAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_file_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_file_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/file/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_fileset(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_fileset(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param FilesetEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_fileset_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_fileset_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_fileset_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_fileset_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param FilesetEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_fileset" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_fileset`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_fileset`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/fileset', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_fileset_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_fileset_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_fileset_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param FilesetAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_fileset_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_fileset_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_fileset_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_fileset_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_fileset_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param FilesetAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_fileset_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_fileset_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/fileset/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_release(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_release(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param ReleaseEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_release_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_release_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_release_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_release_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param ReleaseEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_release" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_release`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_release`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/release', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_release_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_release_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_release_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param ReleaseAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_release_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_release_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_release_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_release_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_release_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param ReleaseAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_release_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_release_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/release/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_webcapture(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_webcapture(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param WebcaptureEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_webcapture_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_webcapture_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_webcapture_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_webcapture_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param WebcaptureEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_webcapture" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_webcapture`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_webcapture`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/webcapture', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_webcapture_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_webcapture_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_webcapture_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param WebcaptureAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_webcapture_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_webcapture_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_webcapture_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_webcapture_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_webcapture_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param WebcaptureAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_webcapture_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_webcapture_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/webcapture/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_work(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_work(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param WorkEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_work_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_work_with_http_info(editgroup_id, entity, **kwargs) # noqa: E501
+ return data
+
+ def create_work_with_http_info(self, editgroup_id, entity, **kwargs): # noqa: E501
+ """create_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_work_with_http_info(editgroup_id, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param WorkEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_work" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `create_work`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `create_work`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/work', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_work_auto_batch(self, auto_batch, **kwargs): # noqa: E501
+ """create_work_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_work_auto_batch(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param WorkAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.create_work_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_work_auto_batch_with_http_info(auto_batch, **kwargs) # noqa: E501
+ return data
+
+ def create_work_auto_batch_with_http_info(self, auto_batch, **kwargs): # noqa: E501
+ """create_work_auto_batch # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.create_work_auto_batch_with_http_info(auto_batch, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param WorkAutoBatch auto_batch: (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['auto_batch'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_work_auto_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'auto_batch' is set
+ if ('auto_batch' not in params or
+ params['auto_batch'] is None):
+ raise ValueError("Missing the required parameter `auto_batch` when calling `create_work_auto_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'auto_batch' in params:
+ body_params = params['auto_batch']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/auto/work/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_container(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_container(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_container_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_container_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_container_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_container_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_container" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_container`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_container`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/container/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_container_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_container_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_container_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_container_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_container_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_container_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_container_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_container_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_container_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_container_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_container_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_container_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_container_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_container_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/container/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_creator(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_creator(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_creator_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_creator_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_creator_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_creator_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_creator" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_creator`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_creator`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/creator/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_creator_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_creator_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_creator_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_creator_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_creator_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_creator_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_creator_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_creator_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_creator_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_creator_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_creator_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_creator_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_creator_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_creator_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/creator/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_file(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_file(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_file_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_file_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_file_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_file_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_file" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_file`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_file`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/file/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_file_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_file_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_file_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_file_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_file_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_file_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_file_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_file_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_file_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_file_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_file_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_file_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_file_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_file_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/file/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_fileset(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_fileset(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_fileset_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_fileset_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_fileset_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_fileset_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_fileset" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_fileset`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_fileset`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/fileset/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_fileset_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_fileset_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_fileset_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_fileset_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_fileset_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_fileset_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_fileset_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_fileset_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_fileset_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_fileset_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_fileset_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_fileset_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_fileset_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_fileset_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/fileset/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_release(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_release(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_release_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_release_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_release_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_release_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_release" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_release`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_release`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/release/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_release_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_release_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_release_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_release_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_release_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_release_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_release_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_release_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_release_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_release_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_release_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_release_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_release_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_release_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/release/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_webcapture(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_webcapture(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_webcapture_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_webcapture_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_webcapture_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_webcapture_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_webcapture" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_webcapture`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_webcapture`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/webcapture/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_webcapture_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_webcapture_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_webcapture_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_webcapture_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_webcapture_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_webcapture_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_webcapture_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_webcapture_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_webcapture_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_webcapture_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_webcapture_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_webcapture_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_webcapture_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_webcapture_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/webcapture/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_work(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_work(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_work_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_work_with_http_info(editgroup_id, ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_work_with_http_info(self, editgroup_id, ident, **kwargs): # noqa: E501
+ """delete_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_work_with_http_info(editgroup_id, ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_work" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_work`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `delete_work`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/work/{ident}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_work_edit(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_work_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_work_edit(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.delete_work_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_work_edit_with_http_info(editgroup_id, edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_work_edit_with_http_info(self, editgroup_id, edit_id, **kwargs): # noqa: E501
+ """delete_work_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.delete_work_edit_with_http_info(editgroup_id, edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: Success
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_work_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `delete_work_edit`") # noqa: E501
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `delete_work_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_work_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_work_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `delete_work_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/work/edit/{edit_id}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Success', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_changelog(self, **kwargs): # noqa: E501
+ """get_changelog # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_changelog(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int limit:
+ :return: list[ChangelogEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_changelog_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_changelog_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_changelog_with_http_info(self, **kwargs): # noqa: E501
+ """get_changelog # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_changelog_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int limit:
+ :return: list[ChangelogEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_changelog" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/changelog', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[ChangelogEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_changelog_entry(self, index, **kwargs): # noqa: E501
+ """get_changelog_entry # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_changelog_entry(index, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int index: (required)
+ :return: ChangelogEntry
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501
+ return data
+
+ def get_changelog_entry_with_http_info(self, index, **kwargs): # noqa: E501
+ """get_changelog_entry # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_changelog_entry_with_http_info(index, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int index: (required)
+ :return: ChangelogEntry
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['index'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_changelog_entry" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'index' is set
+ if ('index' not in params or
+ params['index'] is None):
+ raise ValueError("Missing the required parameter `index` when calling `get_changelog_entry`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'index' in params:
+ path_params['index'] = params['index'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/changelog/{index}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ChangelogEntry', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_container(self, ident, **kwargs): # noqa: E501
+ """get_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For containers, none accepted (yet).
+ :return: ContainerEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_container_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_container_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_container_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For containers, none accepted (yet).
+ :return: ContainerEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_container" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_container`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/container/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ContainerEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_container_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_container_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_container_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_container_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_container_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_container_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_container_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_container_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_container_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/container/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_container_history(self, ident, **kwargs): # noqa: E501
+ """get_container_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_container_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_container_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_container_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_container_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/container/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_container_redirects(self, ident, **kwargs): # noqa: E501
+ """get_container_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_container_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_container_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_container_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_container_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/container/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_container_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_container_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For containers, none accepted (yet).
+ :return: ContainerEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_container_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_container_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_container_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For containers, none accepted (yet).
+ :return: ContainerEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_container_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_container_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_container_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_container_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_container_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/container/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ContainerEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_creator(self, ident, **kwargs): # noqa: E501
+ """get_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For containers, none accepted (yet).
+ :return: CreatorEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_creator_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_creator_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_creator_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For containers, none accepted (yet).
+ :return: CreatorEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_creator" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_creator`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='CreatorEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_creator_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_creator_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_creator_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_creator_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_creator_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_creator_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_creator_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_creator_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_creator_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_creator_history(self, ident, **kwargs): # noqa: E501
+ """get_creator_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_creator_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_creator_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_creator_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_creator_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_creator_redirects(self, ident, **kwargs): # noqa: E501
+ """get_creator_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_creator_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_creator_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_creator_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_creator_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_creator_releases(self, ident, **kwargs): # noqa: E501
+ """get_creator_releases # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_releases(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For creators, none implemented yet.
+ :return: list[ReleaseEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_creator_releases_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_creator_releases # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_releases_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For creators, none implemented yet.
+ :return: list[ReleaseEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_creator_releases" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_creator_releases`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/{ident}/releases', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[ReleaseEntity]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_creator_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_creator_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For creators, none accepted (yet).
+ :return: CreatorEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_creator_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_creator_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_creator_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For creators, none accepted (yet).
+ :return: CreatorEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_creator_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_creator_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_creator_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_creator_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_creator_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='CreatorEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_editgroup(self, editgroup_id, **kwargs): # noqa: E501
+ """get_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editgroup(editgroup_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501
+ return data
+
+ def get_editgroup_with_http_info(self, editgroup_id, **kwargs): # noqa: E501
+ """get_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editgroup_with_http_info(editgroup_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_editgroup" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `get_editgroup`") # noqa: E501
+
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) > 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be less than or equal to `26`") # noqa: E501
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) < 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be greater than or equal to `26`") # noqa: E501
+ if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_editgroup_annotations(self, editgroup_id, **kwargs): # noqa: E501
+ """get_editgroup_annotations # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editgroup_annotations(editgroup_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :param str expand: List of sub-entities to expand in response. For editgroups: 'editors'
+ :return: list[EditgroupAnnotation]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_editgroup_annotations_with_http_info(editgroup_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_editgroup_annotations_with_http_info(editgroup_id, **kwargs) # noqa: E501
+ return data
+
+ def get_editgroup_annotations_with_http_info(self, editgroup_id, **kwargs): # noqa: E501
+ """get_editgroup_annotations # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editgroup_annotations_with_http_info(editgroup_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :param str expand: List of sub-entities to expand in response. For editgroups: 'editors'
+ :return: list[EditgroupAnnotation]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'expand'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_editgroup_annotations" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `get_editgroup_annotations`") # noqa: E501
+
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) > 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup_annotations`, length must be less than or equal to `26`") # noqa: E501
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) < 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup_annotations`, length must be greater than or equal to `26`") # noqa: E501
+ if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup_annotations`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/annotations', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EditgroupAnnotation]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_editgroups_reviewable(self, **kwargs): # noqa: E501
+ """get_editgroups_reviewable # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editgroups_reviewable(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str expand: List of sub-entities to expand in response. For editgroups: 'editors'
+ :param int limit:
+ :param datetime before:
+ :param datetime since:
+ :return: list[Editgroup]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_editgroups_reviewable_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_editgroups_reviewable_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_editgroups_reviewable_with_http_info(self, **kwargs): # noqa: E501
+ """get_editgroups_reviewable # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editgroups_reviewable_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str expand: List of sub-entities to expand in response. For editgroups: 'editors'
+ :param int limit:
+ :param datetime before:
+ :param datetime since:
+ :return: list[Editgroup]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['expand', 'limit', 'before', 'since'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_editgroups_reviewable" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # noqa: E501
+ if 'before' in params:
+ query_params.append(('before', params['before'])) # noqa: E501
+ if 'since' in params:
+ query_params.append(('since', params['since'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/reviewable', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[Editgroup]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_editor(self, editor_id, **kwargs): # noqa: E501
+ """get_editor # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editor(editor_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: (required)
+ :return: Editor
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501
+ return data
+
+ def get_editor_with_http_info(self, editor_id, **kwargs): # noqa: E501
+ """get_editor # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editor_with_http_info(editor_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: (required)
+ :return: Editor
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editor_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_editor" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editor_id' is set
+ if ('editor_id' not in params or
+ params['editor_id'] is None):
+ raise ValueError("Missing the required parameter `editor_id` when calling `get_editor`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editor_id' in params:
+ path_params['editor_id'] = params['editor_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editor/{editor_id}', '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=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_editor_annotations(self, editor_id, **kwargs): # noqa: E501
+ """get_editor_annotations # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editor_annotations(editor_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: base32-encoded unique identifier (required)
+ :param int limit:
+ :param datetime before:
+ :param datetime since:
+ :return: list[EditgroupAnnotation]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_editor_annotations_with_http_info(editor_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_editor_annotations_with_http_info(editor_id, **kwargs) # noqa: E501
+ return data
+
+ def get_editor_annotations_with_http_info(self, editor_id, **kwargs): # noqa: E501
+ """get_editor_annotations # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editor_annotations_with_http_info(editor_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: base32-encoded unique identifier (required)
+ :param int limit:
+ :param datetime before:
+ :param datetime since:
+ :return: list[EditgroupAnnotation]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editor_id', 'limit', 'before', 'since'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_editor_annotations" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editor_id' is set
+ if ('editor_id' not in params or
+ params['editor_id'] is None):
+ raise ValueError("Missing the required parameter `editor_id` when calling `get_editor_annotations`") # noqa: E501
+
+ if ('editor_id' in params and
+ len(params['editor_id']) > 26):
+ raise ValueError("Invalid value for parameter `editor_id` when calling `get_editor_annotations`, length must be less than or equal to `26`") # noqa: E501
+ if ('editor_id' in params and
+ len(params['editor_id']) < 26):
+ raise ValueError("Invalid value for parameter `editor_id` when calling `get_editor_annotations`, length must be greater than or equal to `26`") # noqa: E501
+ if 'editor_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editor_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `editor_id` when calling `get_editor_annotations`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editor_id' in params:
+ path_params['editor_id'] = params['editor_id'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # noqa: E501
+ if 'before' in params:
+ query_params.append(('before', params['before'])) # noqa: E501
+ if 'since' in params:
+ query_params.append(('since', params['since'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editor/{editor_id}/annotations', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EditgroupAnnotation]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_editor_editgroups(self, editor_id, **kwargs): # noqa: E501
+ """get_editor_editgroups # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editor_editgroups(editor_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: (required)
+ :param int limit:
+ :param datetime before:
+ :param datetime since:
+ :return: list[Editgroup]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_editor_editgroups_with_http_info(editor_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_editor_editgroups_with_http_info(editor_id, **kwargs) # noqa: E501
+ return data
+
+ def get_editor_editgroups_with_http_info(self, editor_id, **kwargs): # noqa: E501
+ """get_editor_editgroups # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_editor_editgroups_with_http_info(editor_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: (required)
+ :param int limit:
+ :param datetime before:
+ :param datetime since:
+ :return: list[Editgroup]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editor_id', 'limit', 'before', 'since'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_editor_editgroups" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editor_id' is set
+ if ('editor_id' not in params or
+ params['editor_id'] is None):
+ raise ValueError("Missing the required parameter `editor_id` when calling `get_editor_editgroups`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editor_id' in params:
+ path_params['editor_id'] = params['editor_id'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # noqa: E501
+ if 'before' in params:
+ query_params.append(('before', params['before'])) # noqa: E501
+ if 'since' in params:
+ query_params.append(('since', params['since'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editor/{editor_id}/editgroups', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[Editgroup]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_file(self, ident, **kwargs): # noqa: E501
+ """get_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For files, `releases` is accepted.
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: FileEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_file_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_file_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_file_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For files, `releases` is accepted.
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: FileEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_file" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_file`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/file/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='FileEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_file_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_file_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_file_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_file_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_file_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_file_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_file_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_file_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_file_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/file/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_file_history(self, ident, **kwargs): # noqa: E501
+ """get_file_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_file_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_file_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_file_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_file_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/file/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_file_redirects(self, ident, **kwargs): # noqa: E501
+ """get_file_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_file_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_file_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_file_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_file_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/file/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_file_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_file_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For files, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: FileEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_file_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_file_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_file_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For files, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: FileEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_file_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_file_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_file_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_file_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_file_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/file/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='FileEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_fileset(self, ident, **kwargs): # noqa: E501
+ """get_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For filesets, `releases` is accepted.
+ :param str hide: List of entity fields to elide in response. For filesets, 'manifest' is accepted.
+ :return: FilesetEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_fileset_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_fileset_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_fileset_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For filesets, `releases` is accepted.
+ :param str hide: List of entity fields to elide in response. For filesets, 'manifest' is accepted.
+ :return: FilesetEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_fileset" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_fileset`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/fileset/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='FilesetEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_fileset_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_fileset_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_fileset_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_fileset_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_fileset_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_fileset_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_fileset_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_fileset_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_fileset_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/fileset/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_fileset_history(self, ident, **kwargs): # noqa: E501
+ """get_fileset_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_fileset_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_fileset_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_fileset_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_fileset_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_fileset_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_fileset_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/fileset/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_fileset_redirects(self, ident, **kwargs): # noqa: E501
+ """get_fileset_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_fileset_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_fileset_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_fileset_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_fileset_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_fileset_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_fileset_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/fileset/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_fileset_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_fileset_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For filesets, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For filesets, 'manifest' is accepted.
+ :return: FilesetEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_fileset_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_fileset_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_fileset_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_fileset_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_fileset_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For filesets, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For filesets, 'manifest' is accepted.
+ :return: FilesetEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_fileset_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_fileset_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_fileset_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_fileset_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_fileset_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/fileset/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='FilesetEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release(self, ident, **kwargs): # noqa: E501
+ """get_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid.
+ :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :return: ReleaseEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_release_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid.
+ :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :return: ReleaseEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_release`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ReleaseEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_release_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_release_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_release_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_release_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_release_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_release_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_release_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_files(self, ident, **kwargs): # noqa: E501
+ """get_release_files # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_files(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: list[FileEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_release_files_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_release_files # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_files_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: list[FileEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_files" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_release_files`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/{ident}/files', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[FileEntity]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_filesets(self, ident, **kwargs): # noqa: E501
+ """get_release_filesets # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_filesets(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For filesets, 'manifest' is valid.
+ :return: list[FilesetEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_filesets_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_filesets_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_release_filesets_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_release_filesets # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_filesets_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For filesets, 'manifest' is valid.
+ :return: list[FilesetEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_filesets" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_release_filesets`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/{ident}/filesets', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[FilesetEntity]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_history(self, ident, **kwargs): # noqa: E501
+ """get_release_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_release_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_release_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_release_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_redirects(self, ident, **kwargs): # noqa: E501
+ """get_release_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_release_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_release_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_release_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_release_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For releases, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For releases, none accepted (yet).
+ :return: ReleaseEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_release_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_release_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For releases, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For releases, none accepted (yet).
+ :return: ReleaseEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_release_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_release_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_release_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_release_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ReleaseEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_release_webcaptures(self, ident, **kwargs): # noqa: E501
+ """get_release_webcaptures # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_webcaptures(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For webcaptures, 'cdx' is valid.
+ :return: list[WebcaptureEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_release_webcaptures_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_release_webcaptures_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_release_webcaptures_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_release_webcaptures # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_release_webcaptures_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For webcaptures, 'cdx' is valid.
+ :return: list[WebcaptureEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_release_webcaptures" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_release_webcaptures`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/{ident}/webcaptures', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[WebcaptureEntity]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_webcapture(self, ident, **kwargs): # noqa: E501
+ """get_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For webcaptures, `releases` is accepted.
+ :param str hide: List of entity fields to elide in response. For webcaptures, 'cdx' is accepted.
+ :return: WebcaptureEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_webcapture_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_webcapture_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_webcapture_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For webcaptures, `releases` is accepted.
+ :param str hide: List of entity fields to elide in response. For webcaptures, 'cdx' is accepted.
+ :return: WebcaptureEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_webcapture" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_webcapture`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/webcapture/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='WebcaptureEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_webcapture_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_webcapture_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_webcapture_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_webcapture_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_webcapture_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_webcapture_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_webcapture_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_webcapture_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_webcapture_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_webcapture_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_webcapture_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/webcapture/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_webcapture_history(self, ident, **kwargs): # noqa: E501
+ """get_webcapture_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_webcapture_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_webcapture_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_webcapture_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_webcapture_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_webcapture_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_webcapture_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/webcapture/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_webcapture_redirects(self, ident, **kwargs): # noqa: E501
+ """get_webcapture_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_webcapture_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_webcapture_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_webcapture_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_webcapture_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_webcapture_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_webcapture_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/webcapture/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_webcapture_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_webcapture_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For webcaptures, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For webcaptures, 'cdx' is accepted.
+ :return: WebcaptureEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_webcapture_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_webcapture_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_webcapture_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_webcapture_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_webcapture_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For webcaptures, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For webcaptures, 'cdx' is accepted.
+ :return: WebcaptureEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_webcapture_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_webcapture_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_webcapture_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_webcapture_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_webcapture_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/webcapture/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='WebcaptureEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_work(self, ident, **kwargs): # noqa: E501
+ """get_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For works, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For works, none accepted (yet).
+ :return: WorkEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_work_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_work_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_work_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str expand: List of sub-entities to expand in response. For works, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For works, none accepted (yet).
+ :return: WorkEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_work" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_work`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/work/{ident}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='WorkEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_work_edit(self, edit_id, **kwargs): # noqa: E501
+ """get_work_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_edit(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_work_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_work_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def get_work_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501
+ """get_work_edit # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_edit_with_http_info(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str edit_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['edit_id'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_work_edit" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'edit_id' is set
+ if ('edit_id' not in params or
+ params['edit_id'] is None):
+ raise ValueError("Missing the required parameter `edit_id` when calling `get_work_edit`") # noqa: E501
+
+ if ('edit_id' in params and
+ len(params['edit_id']) > 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_work_edit`, length must be less than or equal to `36`") # noqa: E501
+ if ('edit_id' in params and
+ len(params['edit_id']) < 36):
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_work_edit`, length must be greater than or equal to `36`") # noqa: E501
+ if 'edit_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['edit_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `edit_id` when calling `get_work_edit`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'edit_id' in params:
+ path_params['edit_id'] = params['edit_id'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/work/edit/{edit_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_work_history(self, ident, **kwargs): # noqa: E501
+ """get_work_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_history(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_work_history_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_work_history_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_work_history_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_work_history # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_history_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param int limit:
+ :return: list[EntityHistoryEntry]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'limit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_work_history" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_work_history`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'limit' in params:
+ query_params.append(('limit', params['limit'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/work/{ident}/history', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[EntityHistoryEntry]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_work_redirects(self, ident, **kwargs): # noqa: E501
+ """get_work_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_redirects(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_work_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_work_redirects_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_work_redirects_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_work_redirects # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_redirects_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :return: list[str]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_work_redirects" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_work_redirects`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/work/{ident}/redirects', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[str]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_work_releases(self, ident, **kwargs): # noqa: E501
+ """get_work_releases # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_releases(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For works, none implemented yet.
+ :return: list[ReleaseEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_work_releases_with_http_info(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_work_releases_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def get_work_releases_with_http_info(self, ident, **kwargs): # noqa: E501
+ """get_work_releases # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_releases_with_http_info(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str hide: List of entity fields to elide in response. For works, none implemented yet.
+ :return: list[ReleaseEntity]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_work_releases" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `get_work_releases`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/work/{ident}/releases', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[ReleaseEntity]', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_work_revision(self, rev_id, **kwargs): # noqa: E501
+ """get_work_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_revision(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For works, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For works, none accepted (yet).
+ :return: WorkEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.get_work_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_work_revision_with_http_info(rev_id, **kwargs) # noqa: E501
+ return data
+
+ def get_work_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501
+ """get_work_revision # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.get_work_revision_with_http_info(rev_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str rev_id: UUID (lower-case, dash-separated, hex-encoded 128-bit) (required)
+ :param str expand: List of sub-entities to expand in response. For works, none accepted (yet).
+ :param str hide: List of entity fields to elide in response. For works, none accepted (yet).
+ :return: WorkEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['rev_id', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_work_revision" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'rev_id' is set
+ if ('rev_id' not in params or
+ params['rev_id'] is None):
+ raise ValueError("Missing the required parameter `rev_id` when calling `get_work_revision`") # noqa: E501
+
+ if ('rev_id' in params and
+ len(params['rev_id']) > 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_work_revision`, length must be less than or equal to `36`") # noqa: E501
+ if ('rev_id' in params and
+ len(params['rev_id']) < 36):
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_work_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if 'rev_id' in params and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', params['rev_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `rev_id` when calling `get_work_revision`, must conform to the pattern `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'rev_id' in params:
+ path_params['rev_id'] = params['rev_id'] # noqa: E501
+
+ query_params = []
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/work/rev/{rev_id}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='WorkEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def lookup_container(self, **kwargs): # noqa: E501
+ """lookup_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_container(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str issnl:
+ :param str wikidata_qid:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of entity fields to elide in response. For container, none accepted (yet).
+ :return: ContainerEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.lookup_container_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.lookup_container_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def lookup_container_with_http_info(self, **kwargs): # noqa: E501
+ """lookup_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_container_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str issnl:
+ :param str wikidata_qid:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of entity fields to elide in response. For container, none accepted (yet).
+ :return: ContainerEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['issnl', 'wikidata_qid', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method lookup_container" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ if ('issnl' in params and
+ len(params['issnl']) > 9):
+ raise ValueError("Invalid value for parameter `issnl` when calling `lookup_container`, length must be less than or equal to `9`") # noqa: E501
+ if ('issnl' in params and
+ len(params['issnl']) < 9):
+ raise ValueError("Invalid value for parameter `issnl` when calling `lookup_container`, length must be greater than or equal to `9`") # noqa: E501
+ if 'issnl' in params and not re.search('\\d{4}-\\d{3}[0-9X]', params['issnl']): # noqa: E501
+ raise ValueError("Invalid value for parameter `issnl` when calling `lookup_container`, must conform to the pattern `/\\d{4}-\\d{3}[0-9X]/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'issnl' in params:
+ query_params.append(('issnl', params['issnl'])) # noqa: E501
+ if 'wikidata_qid' in params:
+ query_params.append(('wikidata_qid', params['wikidata_qid'])) # noqa: E501
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/container/lookup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ContainerEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def lookup_creator(self, **kwargs): # noqa: E501
+ """lookup_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_creator(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str orcid:
+ :param str wikidata_qid:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of entity fields to elide in response. For creator, none accepted (yet).
+ :return: CreatorEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.lookup_creator_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.lookup_creator_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def lookup_creator_with_http_info(self, **kwargs): # noqa: E501
+ """lookup_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_creator_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str orcid:
+ :param str wikidata_qid:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of entity fields to elide in response. For creator, none accepted (yet).
+ :return: CreatorEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['orcid', 'wikidata_qid', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method lookup_creator" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ if ('orcid' in params and
+ len(params['orcid']) > 19):
+ raise ValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, length must be less than or equal to `19`") # noqa: E501
+ if ('orcid' in params and
+ len(params['orcid']) < 19):
+ raise ValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, length must be greater than or equal to `19`") # noqa: E501
+ if 'orcid' in params and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]', params['orcid']): # noqa: E501
+ raise ValueError("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 = {}
+
+ query_params = []
+ if 'orcid' in params:
+ query_params.append(('orcid', params['orcid'])) # noqa: E501
+ if 'wikidata_qid' in params:
+ query_params.append(('wikidata_qid', params['wikidata_qid'])) # noqa: E501
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/creator/lookup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='CreatorEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def lookup_file(self, **kwargs): # noqa: E501
+ """lookup_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_file(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str md5:
+ :param str sha1:
+ :param str sha256:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: FileEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.lookup_file_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.lookup_file_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def lookup_file_with_http_info(self, **kwargs): # noqa: E501
+ """lookup_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_file_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str md5:
+ :param str sha1:
+ :param str sha256:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of entity fields to elide in response. For files, none accepted (yet).
+ :return: FileEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['md5', 'sha1', 'sha256', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method lookup_file" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ if ('md5' in params and
+ len(params['md5']) > 32):
+ raise ValueError("Invalid value for parameter `md5` when calling `lookup_file`, length must be less than or equal to `32`") # noqa: E501
+ if ('md5' in params and
+ len(params['md5']) < 32):
+ raise ValueError("Invalid value for parameter `md5` when calling `lookup_file`, length must be greater than or equal to `32`") # noqa: E501
+ if 'md5' in params and not re.search('[a-f0-9]{32}', params['md5']): # noqa: E501
+ raise ValueError("Invalid value for parameter `md5` when calling `lookup_file`, must conform to the pattern `/[a-f0-9]{32}/`") # noqa: E501
+ if ('sha1' in params and
+ len(params['sha1']) > 40):
+ raise ValueError("Invalid value for parameter `sha1` when calling `lookup_file`, length must be less than or equal to `40`") # noqa: E501
+ if ('sha1' in params and
+ len(params['sha1']) < 40):
+ raise ValueError("Invalid value for parameter `sha1` when calling `lookup_file`, length must be greater than or equal to `40`") # noqa: E501
+ if 'sha1' in params and not re.search('[a-f0-9]{40}', params['sha1']): # noqa: E501
+ raise ValueError("Invalid value for parameter `sha1` when calling `lookup_file`, must conform to the pattern `/[a-f0-9]{40}/`") # noqa: E501
+ if ('sha256' in params and
+ len(params['sha256']) > 64):
+ raise ValueError("Invalid value for parameter `sha256` when calling `lookup_file`, length must be less than or equal to `64`") # noqa: E501
+ if ('sha256' in params and
+ len(params['sha256']) < 64):
+ raise ValueError("Invalid value for parameter `sha256` when calling `lookup_file`, length must be greater than or equal to `64`") # noqa: E501
+ if 'sha256' in params and not re.search('[a-f0-9]{64}', params['sha256']): # noqa: E501
+ raise ValueError("Invalid value for parameter `sha256` when calling `lookup_file`, must conform to the pattern `/[a-f0-9]{64}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'md5' in params:
+ query_params.append(('md5', params['md5'])) # noqa: E501
+ if 'sha1' in params:
+ query_params.append(('sha1', params['sha1'])) # noqa: E501
+ if 'sha256' in params:
+ query_params.append(('sha256', params['sha256'])) # noqa: E501
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/file/lookup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='FileEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def lookup_release(self, **kwargs): # noqa: E501
+ """lookup_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_release(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str doi:
+ :param str wikidata_qid:
+ :param str isbn13:
+ :param str pmid:
+ :param str pmcid:
+ :param str core:
+ :param str arxiv:
+ :param str jstor:
+ :param str ark:
+ :param str mag:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid.
+ :return: ReleaseEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.lookup_release_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.lookup_release_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def lookup_release_with_http_info(self, **kwargs): # noqa: E501
+ """lookup_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.lookup_release_with_http_info(async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str doi:
+ :param str wikidata_qid:
+ :param str isbn13:
+ :param str pmid:
+ :param str pmcid:
+ :param str core:
+ :param str arxiv:
+ :param str jstor:
+ :param str ark:
+ :param str mag:
+ :param str expand: List of sub-entities to expand in response.
+ :param str hide: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid.
+ :return: ReleaseEntity
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['doi', 'wikidata_qid', 'isbn13', 'pmid', 'pmcid', 'core', 'arxiv', 'jstor', 'ark', 'mag', 'expand', 'hide'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method lookup_release" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'doi' in params:
+ query_params.append(('doi', params['doi'])) # noqa: E501
+ if 'wikidata_qid' in params:
+ query_params.append(('wikidata_qid', params['wikidata_qid'])) # noqa: E501
+ if 'isbn13' in params:
+ query_params.append(('isbn13', params['isbn13'])) # noqa: E501
+ if 'pmid' in params:
+ query_params.append(('pmid', params['pmid'])) # noqa: E501
+ if 'pmcid' in params:
+ query_params.append(('pmcid', params['pmcid'])) # noqa: E501
+ if 'core' in params:
+ query_params.append(('core', params['core'])) # noqa: E501
+ if 'arxiv' in params:
+ query_params.append(('arxiv', params['arxiv'])) # noqa: E501
+ if 'jstor' in params:
+ query_params.append(('jstor', params['jstor'])) # noqa: E501
+ if 'ark' in params:
+ query_params.append(('ark', params['ark'])) # noqa: E501
+ if 'mag' in params:
+ query_params.append(('mag', params['mag'])) # noqa: E501
+ if 'expand' in params:
+ query_params.append(('expand', params['expand'])) # noqa: E501
+ if 'hide' in params:
+ query_params.append(('hide', params['hide'])) # 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
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/release/lookup', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ReleaseEntity', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_container(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_container(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param ContainerEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_container_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_container_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_container_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_container # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_container_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param ContainerEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_container" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_container`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_container`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_container`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/container/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_creator(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_creator(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param CreatorEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_creator_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_creator_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_creator_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_creator # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_creator_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param CreatorEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_creator" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_creator`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_creator`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_creator`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/creator/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_editgroup(self, editgroup_id, editgroup, **kwargs): # noqa: E501
+ """update_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_editgroup(editgroup_id, editgroup, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :param Editgroup editgroup: (required)
+ :param bool submit:
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_editgroup_with_http_info(editgroup_id, editgroup, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_editgroup_with_http_info(editgroup_id, editgroup, **kwargs) # noqa: E501
+ return data
+
+ def update_editgroup_with_http_info(self, editgroup_id, editgroup, **kwargs): # noqa: E501
+ """update_editgroup # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_editgroup_with_http_info(editgroup_id, editgroup, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: base32-encoded unique identifier (required)
+ :param Editgroup editgroup: (required)
+ :param bool submit:
+ :return: Editgroup
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'editgroup', 'submit'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_editgroup" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_editgroup`") # noqa: E501
+ # verify the required parameter 'editgroup' is set
+ if ('editgroup' not in params or
+ params['editgroup'] is None):
+ raise ValueError("Missing the required parameter `editgroup` when calling `update_editgroup`") # noqa: E501
+
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) > 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `update_editgroup`, length must be less than or equal to `26`") # noqa: E501
+ if ('editgroup_id' in params and
+ len(params['editgroup_id']) < 26):
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `update_editgroup`, length must be greater than or equal to `26`") # noqa: E501
+ if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501
+ raise ValueError("Invalid value for parameter `editgroup_id` when calling `update_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+
+ query_params = []
+ if 'submit' in params:
+ query_params.append(('submit', params['submit'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'editgroup' in params:
+ body_params = params['editgroup']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='Editgroup', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_editor(self, editor_id, editor, **kwargs): # noqa: E501
+ """update_editor # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_editor(editor_id, editor, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: (required)
+ :param Editor editor: (required)
+ :return: Editor
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_editor_with_http_info(editor_id, editor, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_editor_with_http_info(editor_id, editor, **kwargs) # noqa: E501
+ return data
+
+ def update_editor_with_http_info(self, editor_id, editor, **kwargs): # noqa: E501
+ """update_editor # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_editor_with_http_info(editor_id, editor, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editor_id: (required)
+ :param Editor editor: (required)
+ :return: Editor
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editor_id', 'editor'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_editor" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editor_id' is set
+ if ('editor_id' not in params or
+ params['editor_id'] is None):
+ raise ValueError("Missing the required parameter `editor_id` when calling `update_editor`") # noqa: E501
+ # verify the required parameter 'editor' is set
+ if ('editor' not in params or
+ params['editor'] is None):
+ raise ValueError("Missing the required parameter `editor` when calling `update_editor`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editor_id' in params:
+ path_params['editor_id'] = params['editor_id'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'editor' in params:
+ body_params = params['editor']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editor/{editor_id}', 'PUT',
+ 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=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_file(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_file(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param FileEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_file_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_file_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_file_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_file # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_file_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param FileEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_file" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_file`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_file`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_file`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/file/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_fileset(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_fileset(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param FilesetEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_fileset_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_fileset_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_fileset_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_fileset # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_fileset_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param FilesetEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_fileset" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_fileset`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_fileset`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_fileset`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/fileset/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_release(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_release(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param ReleaseEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_release_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_release_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_release_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_release # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_release_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param ReleaseEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_release" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_release`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_release`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_release`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/release/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_webcapture(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_webcapture(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param WebcaptureEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_webcapture_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_webcapture_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_webcapture_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_webcapture # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_webcapture_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param WebcaptureEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_webcapture" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_webcapture`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_webcapture`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_webcapture`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/webcapture/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def update_work(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_work(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param WorkEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async'):
+ return self.update_work_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_work_with_http_info(editgroup_id, ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_work_with_http_info(self, editgroup_id, ident, entity, **kwargs): # noqa: E501
+ """update_work # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async=True
+ >>> thread = api.update_work_with_http_info(editgroup_id, ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str editgroup_id: (required)
+ :param str ident: (required)
+ :param WorkEntity entity: (required)
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['editgroup_id', 'ident', 'entity'] # noqa: E501
+ all_params.append('async')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method update_work" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'editgroup_id' is set
+ if ('editgroup_id' not in params or
+ params['editgroup_id'] is None):
+ raise ValueError("Missing the required parameter `editgroup_id` when calling `update_work`") # noqa: E501
+ # verify the required parameter 'ident' is set
+ if ('ident' not in params or
+ params['ident'] is None):
+ raise ValueError("Missing the required parameter `ident` when calling `update_work`") # noqa: E501
+ # verify the required parameter 'entity' is set
+ if ('entity' not in params or
+ params['entity'] is None):
+ raise ValueError("Missing the required parameter `entity` when calling `update_work`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'editgroup_id' in params:
+ path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity' in params:
+ body_params = params['entity']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['Bearer'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/editgroup/{editgroup_id}/work/{ident}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='EntityEdit', # noqa: E501
+ auth_settings=auth_settings,
+ async=params.get('async'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/python_openapi_client/fatcat_openapi_client/api_client.py b/python_openapi_client/fatcat_openapi_client/api_client.py
new file mode 100644
index 00000000..af0ddfb7
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/api_client.py
@@ -0,0 +1,624 @@
+# coding: utf-8
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import datetime
+import json
+import mimetypes
+from multiprocessing.pool import ThreadPool
+import os
+import re
+import tempfile
+
+# python 2 and python 3 compatibility library
+import six
+from six.moves.urllib.parse import quote
+
+from fatcat_openapi_client.configuration import Configuration
+import fatcat_openapi_client.models
+from fatcat_openapi_client import rest
+
+
+class ApiClient(object):
+ """Generic API client for Swagger client library builds.
+
+ Swagger generic API client. This client handles the client-
+ server communication, and is invariant across implementations. Specifics of
+ the methods and models for each application are generated from the Swagger
+ templates.
+
+ NOTE: This class is auto generated by the swagger code generator program.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ Do not edit the class manually.
+
+ :param configuration: .Configuration object for this client
+ :param header_name: a header to pass when making calls to the API.
+ :param header_value: a header value to pass when making calls to
+ the API.
+ :param cookie: a cookie to include in the header when making calls
+ to the API
+ """
+
+ PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types
+ NATIVE_TYPES_MAPPING = {
+ 'int': int,
+ 'long': int if six.PY3 else long, # noqa: F821
+ 'float': float,
+ 'str': str,
+ 'bool': bool,
+ 'date': datetime.date,
+ 'datetime': datetime.datetime,
+ 'object': object,
+ }
+
+ def __init__(self, configuration=None, header_name=None, header_value=None,
+ cookie=None):
+ if configuration is None:
+ configuration = Configuration()
+ self.configuration = configuration
+
+ self.pool = ThreadPool()
+ self.rest_client = rest.RESTClientObject(configuration)
+ self.default_headers = {}
+ if header_name is not None:
+ self.default_headers[header_name] = header_value
+ self.cookie = cookie
+ # Set default User-Agent.
+ self.user_agent = 'Swagger-Codegen/1.0.0/python'
+
+ def __del__(self):
+ try:
+ self.pool.close()
+ self.pool.join()
+ except:
+ pass
+
+ @property
+ def user_agent(self):
+ """User agent for this API client"""
+ return self.default_headers['User-Agent']
+
+ @user_agent.setter
+ def user_agent(self, value):
+ self.default_headers['User-Agent'] = value
+
+ def set_default_header(self, header_name, header_value):
+ self.default_headers[header_name] = header_value
+
+ def __call_api(
+ self, resource_path, method, path_params=None,
+ query_params=None, header_params=None, body=None, post_params=None,
+ files=None, response_type=None, auth_settings=None,
+ _return_http_data_only=None, collection_formats=None,
+ _preload_content=True, _request_timeout=None):
+
+ config = self.configuration
+
+ # header parameters
+ header_params = header_params or {}
+ header_params.update(self.default_headers)
+ if self.cookie:
+ header_params['Cookie'] = self.cookie
+ if header_params:
+ header_params = self.sanitize_for_serialization(header_params)
+ header_params = dict(self.parameters_to_tuples(header_params,
+ collection_formats))
+
+ # path parameters
+ if path_params:
+ path_params = self.sanitize_for_serialization(path_params)
+ path_params = self.parameters_to_tuples(path_params,
+ collection_formats)
+ for k, v in path_params:
+ # specified safe chars, encode everything
+ resource_path = resource_path.replace(
+ '{%s}' % k,
+ quote(str(v), safe=config.safe_chars_for_path_param)
+ )
+
+ # query parameters
+ if query_params:
+ query_params = self.sanitize_for_serialization(query_params)
+ query_params = self.parameters_to_tuples(query_params,
+ collection_formats)
+
+ # post parameters
+ if post_params or files:
+ post_params = self.prepare_post_parameters(post_params, files)
+ post_params = self.sanitize_for_serialization(post_params)
+ post_params = self.parameters_to_tuples(post_params,
+ collection_formats)
+
+ # auth setting
+ self.update_params_for_auth(header_params, query_params, auth_settings)
+
+ # body
+ if body:
+ body = self.sanitize_for_serialization(body)
+
+ # request url
+ url = self.configuration.host + resource_path
+
+ # perform request and return response
+ response_data = self.request(
+ method, url, query_params=query_params, headers=header_params,
+ post_params=post_params, body=body,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout)
+
+ self.last_response = response_data
+
+ return_data = response_data
+ if _preload_content:
+ # deserialize response data
+ if response_type:
+ return_data = self.deserialize(response_data, response_type)
+ else:
+ return_data = None
+
+ if _return_http_data_only:
+ return (return_data)
+ else:
+ return (return_data, response_data.status,
+ response_data.getheaders())
+
+ def sanitize_for_serialization(self, obj):
+ """Builds a JSON POST object.
+
+ If obj is None, return None.
+ If obj is str, int, long, float, bool, return directly.
+ If obj is datetime.datetime, datetime.date
+ convert to string in iso8601 format.
+ If obj is list, sanitize each element in the list.
+ If obj is dict, return the dict.
+ If obj is swagger model, return the properties dict.
+
+ :param obj: The data to serialize.
+ :return: The serialized form of data.
+ """
+ if obj is None:
+ return None
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
+ return obj
+ elif isinstance(obj, list):
+ return [self.sanitize_for_serialization(sub_obj)
+ for sub_obj in obj]
+ elif isinstance(obj, tuple):
+ return tuple(self.sanitize_for_serialization(sub_obj)
+ for sub_obj in obj)
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
+ return obj.isoformat()
+
+ if isinstance(obj, dict):
+ obj_dict = obj
+ else:
+ # Convert model obj to dict except
+ # attributes `swagger_types`, `attribute_map`
+ # and attributes which value is not None.
+ # Convert attribute name to json key in
+ # model definition for request.
+ obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
+ for attr, _ in six.iteritems(obj.swagger_types)
+ if getattr(obj, attr) is not None}
+
+ return {key: self.sanitize_for_serialization(val)
+ for key, val in six.iteritems(obj_dict)}
+
+ def deserialize(self, response, response_type):
+ """Deserializes response into an object.
+
+ :param response: RESTResponse object to be deserialized.
+ :param response_type: class literal for
+ deserialized object, or string of class name.
+
+ :return: deserialized object.
+ """
+ # handle file downloading
+ # save response body into a tmp file and return the instance
+ if response_type == "file":
+ return self.__deserialize_file(response)
+
+ # fetch data from response object
+ try:
+ data = json.loads(response.data)
+ except ValueError:
+ data = response.data
+
+ return self.__deserialize(data, response_type)
+
+ def __deserialize(self, data, klass):
+ """Deserializes dict, list, str into an object.
+
+ :param data: dict, list or str.
+ :param klass: class literal, or string of class name.
+
+ :return: object.
+ """
+ if data is None:
+ return None
+
+ if type(klass) == str:
+ if klass.startswith('list['):
+ sub_kls = re.match('list\[(.*)\]', klass).group(1)
+ return [self.__deserialize(sub_data, sub_kls)
+ for sub_data in data]
+
+ if klass.startswith('dict('):
+ sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2)
+ return {k: self.__deserialize(v, sub_kls)
+ for k, v in six.iteritems(data)}
+
+ # convert str to class
+ if klass in self.NATIVE_TYPES_MAPPING:
+ klass = self.NATIVE_TYPES_MAPPING[klass]
+ else:
+ klass = getattr(fatcat_openapi_client.models, klass)
+
+ if klass in self.PRIMITIVE_TYPES:
+ return self.__deserialize_primitive(data, klass)
+ elif klass == object:
+ return self.__deserialize_object(data)
+ elif klass == datetime.date:
+ return self.__deserialize_date(data)
+ elif klass == datetime.datetime:
+ return self.__deserialize_datatime(data)
+ else:
+ return self.__deserialize_model(data, klass)
+
+ def call_api(self, resource_path, method,
+ path_params=None, query_params=None, header_params=None,
+ body=None, post_params=None, files=None,
+ response_type=None, auth_settings=None, async=None,
+ _return_http_data_only=None, collection_formats=None,
+ _preload_content=True, _request_timeout=None):
+ """Makes the HTTP request (synchronous) and returns deserialized data.
+
+ To make an async request, set the async parameter.
+
+ :param resource_path: Path to method endpoint.
+ :param method: Method to call.
+ :param path_params: Path parameters in the url.
+ :param query_params: Query parameters in the url.
+ :param header_params: Header parameters to be
+ placed in the request header.
+ :param body: Request body.
+ :param post_params dict: Request post form parameters,
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
+ :param auth_settings list: Auth Settings names for the request.
+ :param response: Response data type.
+ :param files dict: key -> filename, value -> filepath,
+ for `multipart/form-data`.
+ :param async bool: execute request asynchronously
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param collection_formats: dict of collection formats for path, query,
+ header, and post parameters.
+ :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:
+ If async parameter is True,
+ the request will be called asynchronously.
+ The method will return the request thread.
+ If parameter async is False or missing,
+ then the method will return the response directly.
+ """
+ if not async:
+ return self.__call_api(resource_path, method,
+ path_params, query_params, header_params,
+ body, post_params, files,
+ response_type, auth_settings,
+ _return_http_data_only, collection_formats,
+ _preload_content, _request_timeout)
+ else:
+ thread = self.pool.apply_async(self.__call_api, (resource_path,
+ method, path_params, query_params,
+ header_params, body,
+ post_params, files,
+ response_type, auth_settings,
+ _return_http_data_only,
+ collection_formats,
+ _preload_content, _request_timeout))
+ return thread
+
+ def request(self, method, url, query_params=None, headers=None,
+ post_params=None, body=None, _preload_content=True,
+ _request_timeout=None):
+ """Makes the HTTP request using RESTClient."""
+ if method == "GET":
+ return self.rest_client.GET(url,
+ query_params=query_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ headers=headers)
+ elif method == "HEAD":
+ return self.rest_client.HEAD(url,
+ query_params=query_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ headers=headers)
+ elif method == "OPTIONS":
+ return self.rest_client.OPTIONS(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "POST":
+ return self.rest_client.POST(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "PUT":
+ return self.rest_client.PUT(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "PATCH":
+ return self.rest_client.PATCH(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "DELETE":
+ return self.rest_client.DELETE(url,
+ query_params=query_params,
+ headers=headers,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ else:
+ raise ValueError(
+ "http method must be `GET`, `HEAD`, `OPTIONS`,"
+ " `POST`, `PATCH`, `PUT` or `DELETE`."
+ )
+
+ def parameters_to_tuples(self, params, collection_formats):
+ """Get parameters as list of tuples, formatting collections.
+
+ :param params: Parameters as dict or list of two-tuples
+ :param dict collection_formats: Parameter collection formats
+ :return: Parameters as list of tuples, collections formatted
+ """
+ new_params = []
+ if collection_formats is None:
+ collection_formats = {}
+ for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501
+ if k in collection_formats:
+ collection_format = collection_formats[k]
+ if collection_format == 'multi':
+ new_params.extend((k, value) for value in v)
+ else:
+ if collection_format == 'ssv':
+ delimiter = ' '
+ elif collection_format == 'tsv':
+ delimiter = '\t'
+ elif collection_format == 'pipes':
+ delimiter = '|'
+ else: # csv is the default
+ delimiter = ','
+ new_params.append(
+ (k, delimiter.join(str(value) for value in v)))
+ else:
+ new_params.append((k, v))
+ return new_params
+
+ def prepare_post_parameters(self, post_params=None, files=None):
+ """Builds form parameters.
+
+ :param post_params: Normal form parameters.
+ :param files: File parameters.
+ :return: Form parameters with files.
+ """
+ params = []
+
+ if post_params:
+ params = post_params
+
+ if files:
+ for k, v in six.iteritems(files):
+ if not v:
+ continue
+ file_names = v if type(v) is list else [v]
+ for n in file_names:
+ with open(n, 'rb') as f:
+ filename = os.path.basename(f.name)
+ filedata = f.read()
+ mimetype = (mimetypes.guess_type(filename)[0] or
+ 'application/octet-stream')
+ params.append(
+ tuple([k, tuple([filename, filedata, mimetype])]))
+
+ return params
+
+ def select_header_accept(self, accepts):
+ """Returns `Accept` based on an array of accepts provided.
+
+ :param accepts: List of headers.
+ :return: Accept (e.g. application/json).
+ """
+ if not accepts:
+ return
+
+ accepts = [x.lower() for x in accepts]
+
+ if 'application/json' in accepts:
+ return 'application/json'
+ else:
+ return ', '.join(accepts)
+
+ def select_header_content_type(self, content_types):
+ """Returns `Content-Type` based on an array of content_types provided.
+
+ :param content_types: List of content-types.
+ :return: Content-Type (e.g. application/json).
+ """
+ if not content_types:
+ return 'application/json'
+
+ content_types = [x.lower() for x in content_types]
+
+ if 'application/json' in content_types or '*/*' in content_types:
+ return 'application/json'
+ else:
+ return content_types[0]
+
+ def update_params_for_auth(self, headers, querys, auth_settings):
+ """Updates header and query params based on authentication setting.
+
+ :param headers: Header parameters dict to be updated.
+ :param querys: Query parameters tuple list to be updated.
+ :param auth_settings: Authentication setting identifiers list.
+ """
+ if not auth_settings:
+ return
+
+ for auth in auth_settings:
+ auth_setting = self.configuration.auth_settings().get(auth)
+ if auth_setting:
+ if not auth_setting['value']:
+ continue
+ elif auth_setting['in'] == 'header':
+ headers[auth_setting['key']] = auth_setting['value']
+ elif auth_setting['in'] == 'query':
+ querys.append((auth_setting['key'], auth_setting['value']))
+ else:
+ raise ValueError(
+ 'Authentication token must be in `query` or `header`'
+ )
+
+ def __deserialize_file(self, response):
+ """Deserializes body to file
+
+ Saves response body into a file in a temporary folder,
+ using the filename from the `Content-Disposition` header if provided.
+
+ :param response: RESTResponse.
+ :return: file path.
+ """
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
+ os.close(fd)
+ os.remove(path)
+
+ content_disposition = response.getheader("Content-Disposition")
+ if content_disposition:
+ filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
+ content_disposition).group(1)
+ path = os.path.join(os.path.dirname(path), filename)
+
+ with open(path, "wb") as f:
+ f.write(response.data)
+
+ return path
+
+ def __deserialize_primitive(self, data, klass):
+ """Deserializes string to primitive type.
+
+ :param data: str.
+ :param klass: class literal.
+
+ :return: int, long, float, str, bool.
+ """
+ try:
+ return klass(data)
+ except UnicodeEncodeError:
+ return six.u(data)
+ except TypeError:
+ return data
+
+ def __deserialize_object(self, value):
+ """Return a original value.
+
+ :return: object.
+ """
+ return value
+
+ def __deserialize_date(self, string):
+ """Deserializes string to date.
+
+ :param string: str.
+ :return: date.
+ """
+ try:
+ from dateutil.parser import parse
+ return parse(string).date()
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason="Failed to parse `{0}` as date object".format(string)
+ )
+
+ def __deserialize_datatime(self, string):
+ """Deserializes string to datetime.
+
+ The string should be in iso8601 datetime format.
+
+ :param string: str.
+ :return: datetime.
+ """
+ try:
+ from dateutil.parser import parse
+ return parse(string)
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason=(
+ "Failed to parse `{0}` as datetime object"
+ .format(string)
+ )
+ )
+
+ def __deserialize_model(self, data, klass):
+ """Deserializes list or dict to model.
+
+ :param data: dict, list.
+ :param klass: class literal.
+ :return: model object.
+ """
+
+ if not klass.swagger_types and not hasattr(klass,
+ 'get_real_child_model'):
+ return data
+
+ kwargs = {}
+ if klass.swagger_types is not None:
+ for attr, attr_type in six.iteritems(klass.swagger_types):
+ if (data is not None and
+ klass.attribute_map[attr] in data and
+ isinstance(data, (list, dict))):
+ value = data[klass.attribute_map[attr]]
+ kwargs[attr] = self.__deserialize(value, attr_type)
+
+ instance = klass(**kwargs)
+
+ if hasattr(instance, 'get_real_child_model'):
+ klass_name = instance.get_real_child_model(data)
+ if klass_name:
+ instance = self.__deserialize(data, klass_name)
+ return instance
diff --git a/python_openapi_client/fatcat_openapi_client/configuration.py b/python_openapi_client/fatcat_openapi_client/configuration.py
new file mode 100644
index 00000000..8294f584
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/configuration.py
@@ -0,0 +1,247 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import copy
+import logging
+import multiprocessing
+import sys
+import urllib3
+
+import six
+from six.moves import http_client as httplib
+
+
+class TypeWithDefault(type):
+ def __init__(cls, name, bases, dct):
+ super(TypeWithDefault, cls).__init__(name, bases, dct)
+ cls._default = None
+
+ def __call__(cls):
+ if cls._default is None:
+ cls._default = type.__call__(cls)
+ return copy.copy(cls._default)
+
+ def set_default(cls, default):
+ cls._default = copy.copy(default)
+
+
+class Configuration(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Ref: https://github.com/swagger-api/swagger-codegen
+ Do not edit the class manually.
+ """
+
+ def __init__(self):
+ """Constructor"""
+ # Default Base url
+ self.host = "https://api.fatcat.wiki/v0"
+ # Temp file folder for downloading files
+ self.temp_folder_path = None
+
+ # Authentication Settings
+ # dict to store API key(s)
+ self.api_key = {}
+ # dict to store API prefix (e.g. Bearer)
+ self.api_key_prefix = {}
+ # Username for HTTP basic authentication
+ self.username = ""
+ # Password for HTTP basic authentication
+ self.password = ""
+
+ # Logging Settings
+ self.logger = {}
+ self.logger["package_logger"] = logging.getLogger("fatcat_openapi_client")
+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")
+ # Log format
+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'
+ # Log stream handler
+ self.logger_stream_handler = None
+ # Log file handler
+ self.logger_file_handler = None
+ # Debug file location
+ self.logger_file = None
+ # Debug switch
+ self.debug = False
+
+ # SSL/TLS verification
+ # Set this to false to skip verifying SSL certificate when calling API
+ # from https server.
+ self.verify_ssl = True
+ # Set this to customize the certificate file to verify the peer.
+ self.ssl_ca_cert = None
+ # client certificate file
+ self.cert_file = None
+ # client key file
+ self.key_file = None
+ # Set this to True/False to enable/disable SSL hostname verification.
+ self.assert_hostname = None
+
+ # urllib3 connection pool's maximum number of connections saved
+ # per pool. urllib3 uses 1 connection as default value, but this is
+ # not the best value when you are making a lot of possibly parallel
+ # requests to the same host, which is often the case here.
+ # cpu_count * 5 is used as default value to increase performance.
+ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
+
+ # Proxy URL
+ self.proxy = None
+ # Safe chars for path_param
+ self.safe_chars_for_path_param = ''
+
+ @property
+ def logger_file(self):
+ """The logger file.
+
+ If the logger_file is None, then add stream handler and remove file
+ handler. Otherwise, add file handler and remove stream handler.
+
+ :param value: The logger_file path.
+ :type: str
+ """
+ return self.__logger_file
+
+ @logger_file.setter
+ def logger_file(self, value):
+ """The logger file.
+
+ If the logger_file is None, then add stream handler and remove file
+ handler. Otherwise, add file handler and remove stream handler.
+
+ :param value: The logger_file path.
+ :type: str
+ """
+ self.__logger_file = value
+ if self.__logger_file:
+ # If set logging file,
+ # then add file handler and remove stream handler.
+ self.logger_file_handler = logging.FileHandler(self.__logger_file)
+ self.logger_file_handler.setFormatter(self.logger_formatter)
+ for _, logger in six.iteritems(self.logger):
+ logger.addHandler(self.logger_file_handler)
+ if self.logger_stream_handler:
+ logger.removeHandler(self.logger_stream_handler)
+ else:
+ # If not set logging file,
+ # then add stream handler and remove file handler.
+ self.logger_stream_handler = logging.StreamHandler()
+ self.logger_stream_handler.setFormatter(self.logger_formatter)
+ for _, logger in six.iteritems(self.logger):
+ logger.addHandler(self.logger_stream_handler)
+ if self.logger_file_handler:
+ logger.removeHandler(self.logger_file_handler)
+
+ @property
+ def debug(self):
+ """Debug status
+
+ :param value: The debug status, True or False.
+ :type: bool
+ """
+ return self.__debug
+
+ @debug.setter
+ def debug(self, value):
+ """Debug status
+
+ :param value: The debug status, True or False.
+ :type: bool
+ """
+ self.__debug = value
+ if self.__debug:
+ # if debug status is True, turn on debug logging
+ for _, logger in six.iteritems(self.logger):
+ logger.setLevel(logging.DEBUG)
+ # turn on httplib debug
+ httplib.HTTPConnection.debuglevel = 1
+ else:
+ # if debug status is False, turn off debug logging,
+ # setting log level to default `logging.WARNING`
+ for _, logger in six.iteritems(self.logger):
+ logger.setLevel(logging.WARNING)
+ # turn off httplib debug
+ httplib.HTTPConnection.debuglevel = 0
+
+ @property
+ def logger_format(self):
+ """The logger format.
+
+ The logger_formatter will be updated when sets logger_format.
+
+ :param value: The format string.
+ :type: str
+ """
+ return self.__logger_format
+
+ @logger_format.setter
+ def logger_format(self, value):
+ """The logger format.
+
+ The logger_formatter will be updated when sets logger_format.
+
+ :param value: The format string.
+ :type: str
+ """
+ self.__logger_format = value
+ self.logger_formatter = logging.Formatter(self.__logger_format)
+
+ def get_api_key_with_prefix(self, identifier):
+ """Gets API key (with prefix if set).
+
+ :param identifier: The identifier of apiKey.
+ :return: The token for api key authentication.
+ """
+ if (self.api_key.get(identifier) and
+ self.api_key_prefix.get(identifier)):
+ return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501
+ elif self.api_key.get(identifier):
+ return self.api_key[identifier]
+
+ def get_basic_auth_token(self):
+ """Gets HTTP basic authentication header (string).
+
+ :return: The token for basic HTTP authentication.
+ """
+ return urllib3.util.make_headers(
+ basic_auth=self.username + ':' + self.password
+ ).get('authorization')
+
+ def auth_settings(self):
+ """Gets Auth Settings dict for api client.
+
+ :return: The Auth Settings information dict.
+ """
+ return {
+ 'Bearer':
+ {
+ 'type': 'api_key',
+ 'in': 'header',
+ 'key': 'Authorization',
+ 'value': self.get_api_key_with_prefix('Authorization')
+ },
+
+ }
+
+ def to_debug_report(self):
+ """Gets the essential information for debugging.
+
+ :return: The report for debugging.
+ """
+ return "Python SDK Debug Report:\n"\
+ "OS: {env}\n"\
+ "Python Version: {pyversion}\n"\
+ "Version of the API: 0.3.0\n"\
+ "SDK Package Version: 1.0.0".\
+ format(env=sys.platform, pyversion=sys.version)
diff --git a/python_openapi_client/fatcat_openapi_client/models/__init__.py b/python_openapi_client/fatcat_openapi_client/models/__init__.py
new file mode 100644
index 00000000..751e4a68
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/__init__.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+# flake8: noqa
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+# import models into model package
+from fatcat_openapi_client.models.auth_oidc import AuthOidc
+from fatcat_openapi_client.models.auth_oidc_result import AuthOidcResult
+from fatcat_openapi_client.models.changelog_entry import ChangelogEntry
+from fatcat_openapi_client.models.container_auto_batch import ContainerAutoBatch
+from fatcat_openapi_client.models.container_entity import ContainerEntity
+from fatcat_openapi_client.models.creator_auto_batch import CreatorAutoBatch
+from fatcat_openapi_client.models.creator_entity import CreatorEntity
+from fatcat_openapi_client.models.editgroup import Editgroup
+from fatcat_openapi_client.models.editgroup_annotation import EditgroupAnnotation
+from fatcat_openapi_client.models.editgroup_edits import EditgroupEdits
+from fatcat_openapi_client.models.editor import Editor
+from fatcat_openapi_client.models.entity_edit import EntityEdit
+from fatcat_openapi_client.models.entity_history_entry import EntityHistoryEntry
+from fatcat_openapi_client.models.error_response import ErrorResponse
+from fatcat_openapi_client.models.file_auto_batch import FileAutoBatch
+from fatcat_openapi_client.models.file_entity import FileEntity
+from fatcat_openapi_client.models.file_url import FileUrl
+from fatcat_openapi_client.models.fileset_auto_batch import FilesetAutoBatch
+from fatcat_openapi_client.models.fileset_entity import FilesetEntity
+from fatcat_openapi_client.models.fileset_file import FilesetFile
+from fatcat_openapi_client.models.fileset_url import FilesetUrl
+from fatcat_openapi_client.models.release_abstract import ReleaseAbstract
+from fatcat_openapi_client.models.release_auto_batch import ReleaseAutoBatch
+from fatcat_openapi_client.models.release_contrib import ReleaseContrib
+from fatcat_openapi_client.models.release_entity import ReleaseEntity
+from fatcat_openapi_client.models.release_ext_ids import ReleaseExtIds
+from fatcat_openapi_client.models.release_ref import ReleaseRef
+from fatcat_openapi_client.models.success import Success
+from fatcat_openapi_client.models.webcapture_auto_batch import WebcaptureAutoBatch
+from fatcat_openapi_client.models.webcapture_cdx_line import WebcaptureCdxLine
+from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity
+from fatcat_openapi_client.models.webcapture_url import WebcaptureUrl
+from fatcat_openapi_client.models.work_auto_batch import WorkAutoBatch
+from fatcat_openapi_client.models.work_entity import WorkEntity
diff --git a/python_openapi_client/fatcat_openapi_client/models/auth_oidc.py b/python_openapi_client/fatcat_openapi_client/models/auth_oidc.py
new file mode 100644
index 00000000..5d11adab
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/auth_oidc.py
@@ -0,0 +1,194 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class AuthOidc(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'provider': 'str',
+ 'sub': 'str',
+ 'iss': 'str',
+ 'preferred_username': 'str'
+ }
+
+ attribute_map = {
+ 'provider': 'provider',
+ 'sub': 'sub',
+ 'iss': 'iss',
+ 'preferred_username': 'preferred_username'
+ }
+
+ def __init__(self, provider=None, sub=None, iss=None, preferred_username=None): # noqa: E501
+ """AuthOidc - a model defined in Swagger""" # noqa: E501
+
+ self._provider = None
+ self._sub = None
+ self._iss = None
+ self._preferred_username = None
+ self.discriminator = None
+
+ self.provider = provider
+ self.sub = sub
+ self.iss = iss
+ self.preferred_username = preferred_username
+
+ @property
+ def provider(self):
+ """Gets the provider of this AuthOidc. # noqa: E501
+
+
+ :return: The provider of this AuthOidc. # noqa: E501
+ :rtype: str
+ """
+ return self._provider
+
+ @provider.setter
+ def provider(self, provider):
+ """Sets the provider of this AuthOidc.
+
+
+ :param provider: The provider of this AuthOidc. # noqa: E501
+ :type: str
+ """
+ if provider is None:
+ raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
+
+ self._provider = provider
+
+ @property
+ def sub(self):
+ """Gets the sub of this AuthOidc. # noqa: E501
+
+
+ :return: The sub of this AuthOidc. # noqa: E501
+ :rtype: str
+ """
+ return self._sub
+
+ @sub.setter
+ def sub(self, sub):
+ """Sets the sub of this AuthOidc.
+
+
+ :param sub: The sub of this AuthOidc. # noqa: E501
+ :type: str
+ """
+ if sub is None:
+ raise ValueError("Invalid value for `sub`, must not be `None`") # noqa: E501
+
+ self._sub = sub
+
+ @property
+ def iss(self):
+ """Gets the iss of this AuthOidc. # noqa: E501
+
+
+ :return: The iss of this AuthOidc. # noqa: E501
+ :rtype: str
+ """
+ return self._iss
+
+ @iss.setter
+ def iss(self, iss):
+ """Sets the iss of this AuthOidc.
+
+
+ :param iss: The iss of this AuthOidc. # noqa: E501
+ :type: str
+ """
+ if iss is None:
+ raise ValueError("Invalid value for `iss`, must not be `None`") # noqa: E501
+
+ self._iss = iss
+
+ @property
+ def preferred_username(self):
+ """Gets the preferred_username of this AuthOidc. # noqa: E501
+
+
+ :return: The preferred_username of this AuthOidc. # noqa: E501
+ :rtype: str
+ """
+ return self._preferred_username
+
+ @preferred_username.setter
+ def preferred_username(self, preferred_username):
+ """Sets the preferred_username of this AuthOidc.
+
+
+ :param preferred_username: The preferred_username of this AuthOidc. # noqa: E501
+ :type: str
+ """
+ if preferred_username is None:
+ raise ValueError("Invalid value for `preferred_username`, must not be `None`") # noqa: E501
+
+ self._preferred_username = preferred_username
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, AuthOidc):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py b/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py
new file mode 100644
index 00000000..ef2d7f32
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editor import Editor # noqa: F401,E501
+
+
+class AuthOidcResult(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editor': 'Editor',
+ 'token': 'str'
+ }
+
+ attribute_map = {
+ 'editor': 'editor',
+ 'token': 'token'
+ }
+
+ def __init__(self, editor=None, token=None): # noqa: E501
+ """AuthOidcResult - a model defined in Swagger""" # noqa: E501
+
+ self._editor = None
+ self._token = None
+ self.discriminator = None
+
+ self.editor = editor
+ self.token = token
+
+ @property
+ def editor(self):
+ """Gets the editor of this AuthOidcResult. # noqa: E501
+
+
+ :return: The editor of this AuthOidcResult. # noqa: E501
+ :rtype: Editor
+ """
+ return self._editor
+
+ @editor.setter
+ def editor(self, editor):
+ """Sets the editor of this AuthOidcResult.
+
+
+ :param editor: The editor of this AuthOidcResult. # noqa: E501
+ :type: Editor
+ """
+ if editor is None:
+ raise ValueError("Invalid value for `editor`, must not be `None`") # noqa: E501
+
+ self._editor = editor
+
+ @property
+ def token(self):
+ """Gets the token of this AuthOidcResult. # noqa: E501
+
+
+ :return: The token of this AuthOidcResult. # noqa: E501
+ :rtype: str
+ """
+ return self._token
+
+ @token.setter
+ def token(self, token):
+ """Sets the token of this AuthOidcResult.
+
+
+ :param token: The token of this AuthOidcResult. # noqa: E501
+ :type: str
+ """
+ if token is None:
+ raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501
+
+ self._token = token
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, AuthOidcResult):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/changelog_entry.py b/python_openapi_client/fatcat_openapi_client/models/changelog_entry.py
new file mode 100644
index 00000000..893a3d2b
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/changelog_entry.py
@@ -0,0 +1,195 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+
+
+class ChangelogEntry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'index': 'int',
+ 'editgroup_id': 'str',
+ 'timestamp': 'datetime',
+ 'editgroup': 'Editgroup'
+ }
+
+ attribute_map = {
+ 'index': 'index',
+ 'editgroup_id': 'editgroup_id',
+ 'timestamp': 'timestamp',
+ 'editgroup': 'editgroup'
+ }
+
+ def __init__(self, index=None, editgroup_id=None, timestamp=None, editgroup=None): # noqa: E501
+ """ChangelogEntry - a model defined in Swagger""" # noqa: E501
+
+ self._index = None
+ self._editgroup_id = None
+ self._timestamp = None
+ self._editgroup = None
+ self.discriminator = None
+
+ self.index = index
+ self.editgroup_id = editgroup_id
+ self.timestamp = timestamp
+ if editgroup is not None:
+ self.editgroup = editgroup
+
+ @property
+ def index(self):
+ """Gets the index of this ChangelogEntry. # noqa: E501
+
+
+ :return: The index of this ChangelogEntry. # noqa: E501
+ :rtype: int
+ """
+ return self._index
+
+ @index.setter
+ def index(self, index):
+ """Sets the index of this ChangelogEntry.
+
+
+ :param index: The index of this ChangelogEntry. # noqa: E501
+ :type: int
+ """
+ if index is None:
+ raise ValueError("Invalid value for `index`, must not be `None`") # noqa: E501
+
+ self._index = index
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this ChangelogEntry. # noqa: E501
+
+
+ :return: The editgroup_id of this ChangelogEntry. # noqa: E501
+ :rtype: str
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this ChangelogEntry.
+
+
+ :param editgroup_id: The editgroup_id of this ChangelogEntry. # noqa: E501
+ :type: str
+ """
+ if editgroup_id is None:
+ raise ValueError("Invalid value for `editgroup_id`, must not be `None`") # noqa: E501
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this ChangelogEntry. # noqa: E501
+
+
+ :return: The timestamp of this ChangelogEntry. # noqa: E501
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this ChangelogEntry.
+
+
+ :param timestamp: The timestamp of this ChangelogEntry. # noqa: E501
+ :type: datetime
+ """
+ if timestamp is None:
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
+
+ self._timestamp = timestamp
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this ChangelogEntry. # noqa: E501
+
+
+ :return: The editgroup of this ChangelogEntry. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this ChangelogEntry.
+
+
+ :param editgroup: The editgroup of this ChangelogEntry. # noqa: E501
+ :type: Editgroup
+ """
+
+ self._editgroup = editgroup
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ChangelogEntry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py
new file mode 100644
index 00000000..2a431196
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.container_entity import ContainerEntity # noqa: F401,E501
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+
+
+class ContainerAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[ContainerEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """ContainerAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this ContainerAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this ContainerAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this ContainerAutoBatch.
+
+
+ :param editgroup: The editgroup of this ContainerAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this ContainerAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this ContainerAutoBatch. # noqa: E501
+ :rtype: list[ContainerEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this ContainerAutoBatch.
+
+
+ :param entity_list: The entity_list of this ContainerAutoBatch. # noqa: E501
+ :type: list[ContainerEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ContainerAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/container_entity.py b/python_openapi_client/fatcat_openapi_client/models/container_entity.py
new file mode 100644
index 00000000..5fb1a51b
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/container_entity.py
@@ -0,0 +1,412 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ContainerEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'wikidata_qid': 'str',
+ 'issnl': 'str',
+ 'publisher': 'str',
+ 'container_type': 'str',
+ 'name': 'str',
+ 'edit_extra': 'object',
+ 'extra': 'object',
+ 'redirect': 'str',
+ 'revision': 'str',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'wikidata_qid': 'wikidata_qid',
+ 'issnl': 'issnl',
+ 'publisher': 'publisher',
+ 'container_type': 'container_type',
+ 'name': 'name',
+ 'edit_extra': 'edit_extra',
+ 'extra': 'extra',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, wikidata_qid=None, issnl=None, publisher=None, container_type=None, name=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """ContainerEntity - a model defined in Swagger""" # noqa: E501
+
+ self._wikidata_qid = None
+ self._issnl = None
+ self._publisher = None
+ self._container_type = None
+ self._name = None
+ self._edit_extra = None
+ self._extra = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if wikidata_qid is not None:
+ self.wikidata_qid = wikidata_qid
+ if issnl is not None:
+ self.issnl = issnl
+ if publisher is not None:
+ self.publisher = publisher
+ if container_type is not None:
+ self.container_type = container_type
+ if name is not None:
+ self.name = name
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if extra is not None:
+ self.extra = extra
+ if redirect is not None:
+ self.redirect = redirect
+ if revision is not None:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this ContainerEntity. # noqa: E501
+
+
+ :return: The wikidata_qid of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._wikidata_qid
+
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this ContainerEntity.
+
+
+ :param wikidata_qid: The wikidata_qid of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._wikidata_qid = wikidata_qid
+
+ @property
+ def issnl(self):
+ """Gets the issnl of this ContainerEntity. # noqa: E501
+
+
+ :return: The issnl of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._issnl
+
+ @issnl.setter
+ def issnl(self, issnl):
+ """Sets the issnl of this ContainerEntity.
+
+
+ :param issnl: The issnl of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if issnl is not None and len(issnl) > 9:
+ raise ValueError("Invalid value for `issnl`, length must be less than or equal to `9`") # noqa: E501
+ if issnl is not None and len(issnl) < 9:
+ raise ValueError("Invalid value for `issnl`, length must be greater than or equal to `9`") # noqa: E501
+ if issnl is not None and not re.search('\\d{4}-\\d{3}[0-9X]', issnl): # noqa: E501
+ raise ValueError("Invalid value for `issnl`, must be a follow pattern or equal to `/\\d{4}-\\d{3}[0-9X]/`") # noqa: E501
+
+ self._issnl = issnl
+
+ @property
+ def publisher(self):
+ """Gets the publisher of this ContainerEntity. # noqa: E501
+
+
+ :return: The publisher of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._publisher
+
+ @publisher.setter
+ def publisher(self, publisher):
+ """Sets the publisher of this ContainerEntity.
+
+
+ :param publisher: The publisher of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._publisher = publisher
+
+ @property
+ def container_type(self):
+ """Gets the container_type of this ContainerEntity. # noqa: E501
+
+ Eg, 'journal' # noqa: E501
+
+ :return: The container_type of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._container_type
+
+ @container_type.setter
+ def container_type(self, container_type):
+ """Sets the container_type of this ContainerEntity.
+
+ Eg, 'journal' # noqa: E501
+
+ :param container_type: The container_type of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._container_type = container_type
+
+ @property
+ def name(self):
+ """Gets the name of this ContainerEntity. # noqa: E501
+
+ Required for valid entities # noqa: E501
+
+ :return: The name of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this ContainerEntity.
+
+ Required for valid entities # noqa: E501
+
+ :param name: The name of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this ContainerEntity. # noqa: E501
+
+
+ :return: The edit_extra of this ContainerEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this ContainerEntity.
+
+
+ :param edit_extra: The edit_extra of this ContainerEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ @property
+ def extra(self):
+ """Gets the extra of this ContainerEntity. # noqa: E501
+
+
+ :return: The extra of this ContainerEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ContainerEntity.
+
+
+ :param extra: The extra of this ContainerEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this ContainerEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this ContainerEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this ContainerEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this ContainerEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this ContainerEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this ContainerEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this ContainerEntity. # noqa: E501
+
+
+ :return: The state of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this ContainerEntity.
+
+
+ :param state: The state of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ContainerEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py
new file mode 100644
index 00000000..6080c7dc
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.creator_entity import CreatorEntity # noqa: F401,E501
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+
+
+class CreatorAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[CreatorEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """CreatorAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this CreatorAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this CreatorAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this CreatorAutoBatch.
+
+
+ :param editgroup: The editgroup of this CreatorAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this CreatorAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this CreatorAutoBatch. # noqa: E501
+ :rtype: list[CreatorEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this CreatorAutoBatch.
+
+
+ :param entity_list: The entity_list of this CreatorAutoBatch. # noqa: E501
+ :type: list[CreatorEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, CreatorAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/creator_entity.py b/python_openapi_client/fatcat_openapi_client/models/creator_entity.py
new file mode 100644
index 00000000..d015701b
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/creator_entity.py
@@ -0,0 +1,410 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class CreatorEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'wikidata_qid': 'str',
+ 'orcid': 'str',
+ 'surname': 'str',
+ 'given_name': 'str',
+ 'display_name': 'str',
+ 'state': 'str',
+ 'ident': 'str',
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'object',
+ 'edit_extra': 'object'
+ }
+
+ attribute_map = {
+ 'wikidata_qid': 'wikidata_qid',
+ 'orcid': 'orcid',
+ 'surname': 'surname',
+ 'given_name': 'given_name',
+ 'display_name': 'display_name',
+ 'state': 'state',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra'
+ }
+
+ def __init__(self, wikidata_qid=None, orcid=None, surname=None, given_name=None, display_name=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ """CreatorEntity - a model defined in Swagger""" # noqa: E501
+
+ self._wikidata_qid = None
+ self._orcid = None
+ self._surname = None
+ self._given_name = None
+ self._display_name = None
+ self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
+ self.discriminator = None
+
+ if wikidata_qid is not None:
+ self.wikidata_qid = wikidata_qid
+ if orcid is not None:
+ self.orcid = orcid
+ if surname is not None:
+ self.surname = surname
+ if given_name is not None:
+ self.given_name = given_name
+ if display_name is not None:
+ self.display_name = display_name
+ if state is not None:
+ self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+
+ @property
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this CreatorEntity. # noqa: E501
+
+
+ :return: The wikidata_qid of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._wikidata_qid
+
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this CreatorEntity.
+
+
+ :param wikidata_qid: The wikidata_qid of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._wikidata_qid = wikidata_qid
+
+ @property
+ def orcid(self):
+ """Gets the orcid of this CreatorEntity. # noqa: E501
+
+
+ :return: The orcid of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._orcid
+
+ @orcid.setter
+ def orcid(self, orcid):
+ """Sets the orcid of this CreatorEntity.
+
+
+ :param orcid: The orcid of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if orcid is not None and len(orcid) > 19:
+ raise ValueError("Invalid value for `orcid`, length must be less than or equal to `19`") # noqa: E501
+ if orcid is not None and len(orcid) < 19:
+ raise ValueError("Invalid value for `orcid`, length must be greater than or equal to `19`") # noqa: E501
+ if orcid is not None and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]', orcid): # noqa: E501
+ raise ValueError("Invalid value for `orcid`, must be a follow pattern or equal to `/\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]/`") # noqa: E501
+
+ self._orcid = orcid
+
+ @property
+ def surname(self):
+ """Gets the surname of this CreatorEntity. # noqa: E501
+
+
+ :return: The surname of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._surname
+
+ @surname.setter
+ def surname(self, surname):
+ """Sets the surname of this CreatorEntity.
+
+
+ :param surname: The surname of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ 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
+
+ Required for valid entities # 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.
+
+ Required for valid entities # noqa: E501
+
+ :param display_name: The display_name of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._display_name = display_name
+
+ @property
+ def state(self):
+ """Gets the state of this CreatorEntity. # noqa: E501
+
+
+ :return: The state of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this CreatorEntity.
+
+
+ :param state: The state of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ @property
+ def ident(self):
+ """Gets the ident of this CreatorEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this CreatorEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this CreatorEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this CreatorEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this CreatorEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this CreatorEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def extra(self):
+ """Gets the extra of this CreatorEntity. # noqa: E501
+
+
+ :return: The extra of this CreatorEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this CreatorEntity.
+
+
+ :param extra: The extra of this CreatorEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this CreatorEntity. # noqa: E501
+
+
+ :return: The edit_extra of this CreatorEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this CreatorEntity.
+
+
+ :param edit_extra: The edit_extra of this CreatorEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, CreatorEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/editgroup.py b/python_openapi_client/fatcat_openapi_client/models/editgroup.py
new file mode 100644
index 00000000..4874f528
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/editgroup.py
@@ -0,0 +1,366 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup_annotation import EditgroupAnnotation # noqa: F401,E501
+from fatcat_openapi_client.models.editgroup_edits import EditgroupEdits # noqa: F401,E501
+from fatcat_openapi_client.models.editor import Editor # noqa: F401,E501
+
+
+class Editgroup(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup_id': 'str',
+ 'editor_id': 'str',
+ 'editor': 'Editor',
+ 'changelog_index': 'int',
+ 'created': 'datetime',
+ 'submitted': 'datetime',
+ 'description': 'str',
+ 'extra': 'object',
+ 'annotations': 'list[EditgroupAnnotation]',
+ 'edits': 'EditgroupEdits'
+ }
+
+ attribute_map = {
+ 'editgroup_id': 'editgroup_id',
+ 'editor_id': 'editor_id',
+ 'editor': 'editor',
+ 'changelog_index': 'changelog_index',
+ 'created': 'created',
+ 'submitted': 'submitted',
+ 'description': 'description',
+ 'extra': 'extra',
+ 'annotations': 'annotations',
+ 'edits': 'edits'
+ }
+
+ def __init__(self, editgroup_id=None, editor_id=None, editor=None, changelog_index=None, created=None, submitted=None, description=None, extra=None, annotations=None, edits=None): # noqa: E501
+ """Editgroup - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup_id = None
+ self._editor_id = None
+ self._editor = None
+ self._changelog_index = None
+ self._created = None
+ self._submitted = None
+ self._description = None
+ self._extra = None
+ self._annotations = None
+ self._edits = None
+ self.discriminator = None
+
+ if editgroup_id is not None:
+ self.editgroup_id = editgroup_id
+ if editor_id is not None:
+ self.editor_id = editor_id
+ if editor is not None:
+ self.editor = editor
+ if changelog_index is not None:
+ self.changelog_index = changelog_index
+ if created is not None:
+ self.created = created
+ if submitted is not None:
+ self.submitted = submitted
+ if description is not None:
+ self.description = description
+ if extra is not None:
+ self.extra = extra
+ if annotations is not None:
+ self.annotations = annotations
+ if edits is not None:
+ self.edits = edits
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this Editgroup. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The editgroup_id of this Editgroup. # noqa: E501
+ :rtype: str
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this Editgroup.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param editgroup_id: The editgroup_id of this Editgroup. # noqa: E501
+ :type: str
+ """
+ if editgroup_id is not None and len(editgroup_id) > 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and len(editgroup_id) < 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def editor_id(self):
+ """Gets the editor_id of this Editgroup. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The editor_id of this Editgroup. # noqa: E501
+ :rtype: str
+ """
+ return self._editor_id
+
+ @editor_id.setter
+ def editor_id(self, editor_id):
+ """Sets the editor_id of this Editgroup.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param editor_id: The editor_id of this Editgroup. # noqa: E501
+ :type: str
+ """
+ if editor_id is not None and len(editor_id) > 26:
+ raise ValueError("Invalid value for `editor_id`, length must be less than or equal to `26`") # noqa: E501
+ if editor_id is not None and len(editor_id) < 26:
+ raise ValueError("Invalid value for `editor_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editor_id is not None and not re.search('[a-zA-Z2-7]{26}', editor_id): # noqa: E501
+ raise ValueError("Invalid value for `editor_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._editor_id = editor_id
+
+ @property
+ def editor(self):
+ """Gets the editor of this Editgroup. # noqa: E501
+
+
+ :return: The editor of this Editgroup. # noqa: E501
+ :rtype: Editor
+ """
+ return self._editor
+
+ @editor.setter
+ def editor(self, editor):
+ """Sets the editor of this Editgroup.
+
+
+ :param editor: The editor of this Editgroup. # noqa: E501
+ :type: Editor
+ """
+
+ self._editor = editor
+
+ @property
+ def changelog_index(self):
+ """Gets the changelog_index of this Editgroup. # noqa: E501
+
+
+ :return: The changelog_index of this Editgroup. # noqa: E501
+ :rtype: int
+ """
+ return self._changelog_index
+
+ @changelog_index.setter
+ def changelog_index(self, changelog_index):
+ """Sets the changelog_index of this Editgroup.
+
+
+ :param changelog_index: The changelog_index of this Editgroup. # noqa: E501
+ :type: int
+ """
+
+ self._changelog_index = changelog_index
+
+ @property
+ def created(self):
+ """Gets the created of this Editgroup. # noqa: E501
+
+
+ :return: The created of this Editgroup. # noqa: E501
+ :rtype: datetime
+ """
+ return self._created
+
+ @created.setter
+ def created(self, created):
+ """Sets the created of this Editgroup.
+
+
+ :param created: The created of this Editgroup. # noqa: E501
+ :type: datetime
+ """
+
+ self._created = created
+
+ @property
+ def submitted(self):
+ """Gets the submitted of this Editgroup. # noqa: E501
+
+
+ :return: The submitted of this Editgroup. # noqa: E501
+ :rtype: datetime
+ """
+ return self._submitted
+
+ @submitted.setter
+ def submitted(self, submitted):
+ """Sets the submitted of this Editgroup.
+
+
+ :param submitted: The submitted of this Editgroup. # noqa: E501
+ :type: datetime
+ """
+
+ self._submitted = submitted
+
+ @property
+ def description(self):
+ """Gets the description of this Editgroup. # noqa: E501
+
+
+ :return: The description of this Editgroup. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this Editgroup.
+
+
+ :param description: The description of this Editgroup. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
+
+ @property
+ def extra(self):
+ """Gets the extra of this Editgroup. # noqa: E501
+
+
+ :return: The extra of this Editgroup. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this Editgroup.
+
+
+ :param extra: The extra of this Editgroup. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def annotations(self):
+ """Gets the annotations of this Editgroup. # noqa: E501
+
+
+ :return: The annotations of this Editgroup. # noqa: E501
+ :rtype: list[EditgroupAnnotation]
+ """
+ return self._annotations
+
+ @annotations.setter
+ def annotations(self, annotations):
+ """Sets the annotations of this Editgroup.
+
+
+ :param annotations: The annotations of this Editgroup. # noqa: E501
+ :type: list[EditgroupAnnotation]
+ """
+
+ self._annotations = annotations
+
+ @property
+ def edits(self):
+ """Gets the edits of this Editgroup. # noqa: E501
+
+
+ :return: The edits of this Editgroup. # noqa: E501
+ :rtype: EditgroupEdits
+ """
+ return self._edits
+
+ @edits.setter
+ def edits(self, edits):
+ """Sets the edits of this Editgroup.
+
+
+ :param edits: The edits of this Editgroup. # noqa: E501
+ :type: EditgroupEdits
+ """
+
+ self._edits = edits
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Editgroup):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py b/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py
new file mode 100644
index 00000000..d2dde642
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py
@@ -0,0 +1,294 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editor import Editor # noqa: F401,E501
+
+
+class EditgroupAnnotation(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'annotation_id': 'str',
+ 'editgroup_id': 'str',
+ 'editor_id': 'str',
+ 'editor': 'Editor',
+ 'created': 'datetime',
+ 'comment_markdown': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'annotation_id': 'annotation_id',
+ 'editgroup_id': 'editgroup_id',
+ 'editor_id': 'editor_id',
+ 'editor': 'editor',
+ 'created': 'created',
+ 'comment_markdown': 'comment_markdown',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, annotation_id=None, editgroup_id=None, editor_id=None, editor=None, created=None, comment_markdown=None, extra=None): # noqa: E501
+ """EditgroupAnnotation - a model defined in Swagger""" # noqa: E501
+
+ self._annotation_id = None
+ self._editgroup_id = None
+ self._editor_id = None
+ self._editor = None
+ self._created = None
+ self._comment_markdown = None
+ self._extra = None
+ self.discriminator = None
+
+ if annotation_id is not None:
+ self.annotation_id = annotation_id
+ if editgroup_id is not None:
+ self.editgroup_id = editgroup_id
+ if editor_id is not None:
+ self.editor_id = editor_id
+ if editor is not None:
+ self.editor = editor
+ if created is not None:
+ self.created = created
+ if comment_markdown is not None:
+ self.comment_markdown = comment_markdown
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def annotation_id(self):
+ """Gets the annotation_id of this EditgroupAnnotation. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The annotation_id of this EditgroupAnnotation. # noqa: E501
+ :rtype: str
+ """
+ return self._annotation_id
+
+ @annotation_id.setter
+ def annotation_id(self, annotation_id):
+ """Sets the annotation_id of this EditgroupAnnotation.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param annotation_id: The annotation_id of this EditgroupAnnotation. # noqa: E501
+ :type: str
+ """
+ if annotation_id is not None and len(annotation_id) > 36:
+ raise ValueError("Invalid value for `annotation_id`, length must be less than or equal to `36`") # noqa: E501
+ if annotation_id is not None and len(annotation_id) < 36:
+ raise ValueError("Invalid value for `annotation_id`, length must be greater than or equal to `36`") # noqa: E501
+ if annotation_id is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', annotation_id): # noqa: E501
+ raise ValueError("Invalid value for `annotation_id`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._annotation_id = annotation_id
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this EditgroupAnnotation. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The editgroup_id of this EditgroupAnnotation. # noqa: E501
+ :rtype: str
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this EditgroupAnnotation.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param editgroup_id: The editgroup_id of this EditgroupAnnotation. # noqa: E501
+ :type: str
+ """
+ if editgroup_id is not None and len(editgroup_id) > 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and len(editgroup_id) < 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def editor_id(self):
+ """Gets the editor_id of this EditgroupAnnotation. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The editor_id of this EditgroupAnnotation. # noqa: E501
+ :rtype: str
+ """
+ return self._editor_id
+
+ @editor_id.setter
+ def editor_id(self, editor_id):
+ """Sets the editor_id of this EditgroupAnnotation.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param editor_id: The editor_id of this EditgroupAnnotation. # noqa: E501
+ :type: str
+ """
+ if editor_id is not None and len(editor_id) > 26:
+ raise ValueError("Invalid value for `editor_id`, length must be less than or equal to `26`") # noqa: E501
+ if editor_id is not None and len(editor_id) < 26:
+ raise ValueError("Invalid value for `editor_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editor_id is not None and not re.search('[a-zA-Z2-7]{26}', editor_id): # noqa: E501
+ raise ValueError("Invalid value for `editor_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._editor_id = editor_id
+
+ @property
+ def editor(self):
+ """Gets the editor of this EditgroupAnnotation. # noqa: E501
+
+
+ :return: The editor of this EditgroupAnnotation. # noqa: E501
+ :rtype: Editor
+ """
+ return self._editor
+
+ @editor.setter
+ def editor(self, editor):
+ """Sets the editor of this EditgroupAnnotation.
+
+
+ :param editor: The editor of this EditgroupAnnotation. # noqa: E501
+ :type: Editor
+ """
+
+ self._editor = editor
+
+ @property
+ def created(self):
+ """Gets the created of this EditgroupAnnotation. # noqa: E501
+
+
+ :return: The created of this EditgroupAnnotation. # noqa: E501
+ :rtype: datetime
+ """
+ return self._created
+
+ @created.setter
+ def created(self, created):
+ """Sets the created of this EditgroupAnnotation.
+
+
+ :param created: The created of this EditgroupAnnotation. # noqa: E501
+ :type: datetime
+ """
+
+ self._created = created
+
+ @property
+ def comment_markdown(self):
+ """Gets the comment_markdown of this EditgroupAnnotation. # noqa: E501
+
+
+ :return: The comment_markdown of this EditgroupAnnotation. # noqa: E501
+ :rtype: str
+ """
+ return self._comment_markdown
+
+ @comment_markdown.setter
+ def comment_markdown(self, comment_markdown):
+ """Sets the comment_markdown of this EditgroupAnnotation.
+
+
+ :param comment_markdown: The comment_markdown of this EditgroupAnnotation. # noqa: E501
+ :type: str
+ """
+
+ self._comment_markdown = comment_markdown
+
+ @property
+ def extra(self):
+ """Gets the extra of this EditgroupAnnotation. # noqa: E501
+
+
+ :return: The extra of this EditgroupAnnotation. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this EditgroupAnnotation.
+
+
+ :param extra: The extra of this EditgroupAnnotation. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EditgroupAnnotation):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py b/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py
new file mode 100644
index 00000000..07e6b9fc
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py
@@ -0,0 +1,270 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.entity_edit import EntityEdit # noqa: F401,E501
+
+
+class EditgroupEdits(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'containers': 'list[EntityEdit]',
+ 'creators': 'list[EntityEdit]',
+ 'files': 'list[EntityEdit]',
+ 'filesets': 'list[EntityEdit]',
+ 'webcaptures': 'list[EntityEdit]',
+ 'releases': 'list[EntityEdit]',
+ 'works': 'list[EntityEdit]'
+ }
+
+ attribute_map = {
+ 'containers': 'containers',
+ 'creators': 'creators',
+ 'files': 'files',
+ 'filesets': 'filesets',
+ 'webcaptures': 'webcaptures',
+ 'releases': 'releases',
+ 'works': 'works'
+ }
+
+ def __init__(self, containers=None, creators=None, files=None, filesets=None, webcaptures=None, releases=None, works=None): # noqa: E501
+ """EditgroupEdits - a model defined in Swagger""" # noqa: E501
+
+ self._containers = None
+ self._creators = None
+ self._files = None
+ self._filesets = None
+ self._webcaptures = None
+ self._releases = None
+ self._works = None
+ self.discriminator = None
+
+ if containers is not None:
+ self.containers = containers
+ if creators is not None:
+ self.creators = creators
+ if files is not None:
+ self.files = files
+ if filesets is not None:
+ self.filesets = filesets
+ if webcaptures is not None:
+ self.webcaptures = webcaptures
+ if releases is not None:
+ self.releases = releases
+ if works is not None:
+ self.works = works
+
+ @property
+ def containers(self):
+ """Gets the containers of this EditgroupEdits. # noqa: E501
+
+
+ :return: The containers of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._containers
+
+ @containers.setter
+ def containers(self, containers):
+ """Sets the containers of this EditgroupEdits.
+
+
+ :param containers: The containers of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._containers = containers
+
+ @property
+ def creators(self):
+ """Gets the creators of this EditgroupEdits. # noqa: E501
+
+
+ :return: The creators of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._creators
+
+ @creators.setter
+ def creators(self, creators):
+ """Sets the creators of this EditgroupEdits.
+
+
+ :param creators: The creators of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._creators = creators
+
+ @property
+ def files(self):
+ """Gets the files of this EditgroupEdits. # noqa: E501
+
+
+ :return: The files of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._files
+
+ @files.setter
+ def files(self, files):
+ """Sets the files of this EditgroupEdits.
+
+
+ :param files: The files of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._files = files
+
+ @property
+ def filesets(self):
+ """Gets the filesets of this EditgroupEdits. # noqa: E501
+
+
+ :return: The filesets of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._filesets
+
+ @filesets.setter
+ def filesets(self, filesets):
+ """Sets the filesets of this EditgroupEdits.
+
+
+ :param filesets: The filesets of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._filesets = filesets
+
+ @property
+ def webcaptures(self):
+ """Gets the webcaptures of this EditgroupEdits. # noqa: E501
+
+
+ :return: The webcaptures of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._webcaptures
+
+ @webcaptures.setter
+ def webcaptures(self, webcaptures):
+ """Sets the webcaptures of this EditgroupEdits.
+
+
+ :param webcaptures: The webcaptures of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._webcaptures = webcaptures
+
+ @property
+ def releases(self):
+ """Gets the releases of this EditgroupEdits. # noqa: E501
+
+
+ :return: The releases of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this EditgroupEdits.
+
+
+ :param releases: The releases of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._releases = releases
+
+ @property
+ def works(self):
+ """Gets the works of this EditgroupEdits. # noqa: E501
+
+
+ :return: The works of this EditgroupEdits. # noqa: E501
+ :rtype: list[EntityEdit]
+ """
+ return self._works
+
+ @works.setter
+ def works(self, works):
+ """Sets the works of this EditgroupEdits.
+
+
+ :param works: The works of this EditgroupEdits. # noqa: E501
+ :type: list[EntityEdit]
+ """
+
+ self._works = works
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EditgroupEdits):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/editor.py b/python_openapi_client/fatcat_openapi_client/models/editor.py
new file mode 100644
index 00000000..37657266
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/editor.py
@@ -0,0 +1,225 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class Editor(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editor_id': 'str',
+ 'username': 'str',
+ 'is_admin': 'bool',
+ 'is_bot': 'bool',
+ 'is_active': 'bool'
+ }
+
+ attribute_map = {
+ 'editor_id': 'editor_id',
+ 'username': 'username',
+ 'is_admin': 'is_admin',
+ 'is_bot': 'is_bot',
+ 'is_active': 'is_active'
+ }
+
+ def __init__(self, editor_id=None, username=None, is_admin=None, is_bot=None, is_active=None): # noqa: E501
+ """Editor - a model defined in Swagger""" # noqa: E501
+
+ self._editor_id = None
+ self._username = None
+ self._is_admin = None
+ self._is_bot = None
+ self._is_active = None
+ self.discriminator = None
+
+ if editor_id is not None:
+ self.editor_id = editor_id
+ self.username = username
+ if is_admin is not None:
+ self.is_admin = is_admin
+ if is_bot is not None:
+ self.is_bot = is_bot
+ if is_active is not None:
+ self.is_active = is_active
+
+ @property
+ def editor_id(self):
+ """Gets the editor_id of this Editor. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The editor_id of this Editor. # noqa: E501
+ :rtype: str
+ """
+ return self._editor_id
+
+ @editor_id.setter
+ def editor_id(self, editor_id):
+ """Sets the editor_id of this Editor.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param editor_id: The editor_id of this Editor. # noqa: E501
+ :type: str
+ """
+ if editor_id is not None and len(editor_id) > 26:
+ raise ValueError("Invalid value for `editor_id`, length must be less than or equal to `26`") # noqa: E501
+ if editor_id is not None and len(editor_id) < 26:
+ raise ValueError("Invalid value for `editor_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editor_id is not None and not re.search('[a-zA-Z2-7]{26}', editor_id): # noqa: E501
+ raise ValueError("Invalid value for `editor_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._editor_id = editor_id
+
+ @property
+ def username(self):
+ """Gets the username of this Editor. # noqa: E501
+
+
+ :return: The username of this Editor. # noqa: E501
+ :rtype: str
+ """
+ return self._username
+
+ @username.setter
+ def username(self, username):
+ """Sets the username of this Editor.
+
+
+ :param username: The username of this Editor. # noqa: E501
+ :type: str
+ """
+ if username is None:
+ raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501
+
+ self._username = username
+
+ @property
+ def is_admin(self):
+ """Gets the is_admin of this Editor. # noqa: E501
+
+
+ :return: The is_admin of this Editor. # noqa: E501
+ :rtype: bool
+ """
+ return self._is_admin
+
+ @is_admin.setter
+ def is_admin(self, is_admin):
+ """Sets the is_admin of this Editor.
+
+
+ :param is_admin: The is_admin of this Editor. # noqa: E501
+ :type: bool
+ """
+
+ self._is_admin = is_admin
+
+ @property
+ def is_bot(self):
+ """Gets the is_bot of this Editor. # noqa: E501
+
+
+ :return: The is_bot of this Editor. # noqa: E501
+ :rtype: bool
+ """
+ return self._is_bot
+
+ @is_bot.setter
+ def is_bot(self, is_bot):
+ """Sets the is_bot of this Editor.
+
+
+ :param is_bot: The is_bot of this Editor. # noqa: E501
+ :type: bool
+ """
+
+ self._is_bot = is_bot
+
+ @property
+ def is_active(self):
+ """Gets the is_active of this Editor. # noqa: E501
+
+
+ :return: The is_active of this Editor. # noqa: E501
+ :rtype: bool
+ """
+ return self._is_active
+
+ @is_active.setter
+ def is_active(self, is_active):
+ """Sets the is_active of this Editor.
+
+
+ :param is_active: The is_active of this Editor. # noqa: E501
+ :type: bool
+ """
+
+ self._is_active = is_active
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Editor):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/entity_edit.py b/python_openapi_client/fatcat_openapi_client/models/entity_edit.py
new file mode 100644
index 00000000..f89817c5
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/entity_edit.py
@@ -0,0 +1,319 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class EntityEdit(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edit_id': 'str',
+ 'ident': 'str',
+ 'revision': 'str',
+ 'prev_revision': 'str',
+ 'redirect_ident': 'str',
+ 'editgroup_id': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'edit_id': 'edit_id',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'prev_revision': 'prev_revision',
+ 'redirect_ident': 'redirect_ident',
+ 'editgroup_id': 'editgroup_id',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, edit_id=None, ident=None, revision=None, prev_revision=None, redirect_ident=None, editgroup_id=None, extra=None): # noqa: E501
+ """EntityEdit - a model defined in Swagger""" # noqa: E501
+
+ self._edit_id = None
+ self._ident = None
+ self._revision = None
+ self._prev_revision = None
+ self._redirect_ident = None
+ self._editgroup_id = None
+ self._extra = None
+ self.discriminator = None
+
+ self.edit_id = edit_id
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if prev_revision is not None:
+ self.prev_revision = prev_revision
+ if redirect_ident is not None:
+ self.redirect_ident = redirect_ident
+ self.editgroup_id = editgroup_id
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def edit_id(self):
+ """Gets the edit_id of this EntityEdit. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The edit_id of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._edit_id
+
+ @edit_id.setter
+ def edit_id(self, edit_id):
+ """Sets the edit_id of this EntityEdit.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param edit_id: The edit_id of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if edit_id is None:
+ raise ValueError("Invalid value for `edit_id`, must not be `None`") # noqa: E501
+ if edit_id is not None and len(edit_id) > 36:
+ raise ValueError("Invalid value for `edit_id`, length must be less than or equal to `36`") # noqa: E501
+ if edit_id is not None and len(edit_id) < 36:
+ raise ValueError("Invalid value for `edit_id`, length must be greater than or equal to `36`") # noqa: E501
+ if edit_id is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', edit_id): # noqa: E501
+ raise ValueError("Invalid value for `edit_id`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._edit_id = edit_id
+
+ @property
+ def ident(self):
+ """Gets the ident of this EntityEdit. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this EntityEdit.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if ident is None:
+ raise ValueError("Invalid value for `ident`, must not be `None`") # noqa: E501
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this EntityEdit. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this EntityEdit.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def prev_revision(self):
+ """Gets the prev_revision of this EntityEdit. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The prev_revision of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._prev_revision
+
+ @prev_revision.setter
+ def prev_revision(self, prev_revision):
+ """Sets the prev_revision of this EntityEdit.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param prev_revision: The prev_revision of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if prev_revision is not None and len(prev_revision) > 36:
+ raise ValueError("Invalid value for `prev_revision`, length must be less than or equal to `36`") # noqa: E501
+ if prev_revision is not None and len(prev_revision) < 36:
+ raise ValueError("Invalid value for `prev_revision`, length must be greater than or equal to `36`") # noqa: E501
+ if prev_revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', prev_revision): # noqa: E501
+ raise ValueError("Invalid value for `prev_revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._prev_revision = prev_revision
+
+ @property
+ def redirect_ident(self):
+ """Gets the redirect_ident of this EntityEdit. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect_ident of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect_ident
+
+ @redirect_ident.setter
+ def redirect_ident(self, redirect_ident):
+ """Sets the redirect_ident of this EntityEdit.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect_ident: The redirect_ident of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if redirect_ident is not None and len(redirect_ident) > 26:
+ raise ValueError("Invalid value for `redirect_ident`, length must be less than or equal to `26`") # noqa: E501
+ if redirect_ident is not None and len(redirect_ident) < 26:
+ raise ValueError("Invalid value for `redirect_ident`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect_ident is not None and not re.search('[a-zA-Z2-7]{26}', redirect_ident): # noqa: E501
+ raise ValueError("Invalid value for `redirect_ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect_ident = redirect_ident
+
+ @property
+ def editgroup_id(self):
+ """Gets the editgroup_id of this EntityEdit. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The editgroup_id of this EntityEdit. # noqa: E501
+ :rtype: str
+ """
+ return self._editgroup_id
+
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this EntityEdit.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param editgroup_id: The editgroup_id of this EntityEdit. # noqa: E501
+ :type: str
+ """
+ if editgroup_id is None:
+ raise ValueError("Invalid value for `editgroup_id`, must not be `None`") # noqa: E501
+ if editgroup_id is not None and len(editgroup_id) > 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and len(editgroup_id) < 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._editgroup_id = editgroup_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this EntityEdit. # noqa: E501
+
+
+ :return: The extra of this EntityEdit. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this EntityEdit.
+
+
+ :param extra: The extra of this EntityEdit. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EntityEdit):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py b/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py
new file mode 100644
index 00000000..5b457202
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py
@@ -0,0 +1,171 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.changelog_entry import ChangelogEntry # noqa: F401,E501
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+from fatcat_openapi_client.models.entity_edit import EntityEdit # noqa: F401,E501
+
+
+class EntityHistoryEntry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edit': 'EntityEdit',
+ 'editgroup': 'Editgroup',
+ 'changelog_entry': 'ChangelogEntry'
+ }
+
+ attribute_map = {
+ 'edit': 'edit',
+ 'editgroup': 'editgroup',
+ 'changelog_entry': 'changelog_entry'
+ }
+
+ def __init__(self, edit=None, editgroup=None, changelog_entry=None): # noqa: E501
+ """EntityHistoryEntry - a model defined in Swagger""" # noqa: E501
+
+ self._edit = None
+ self._editgroup = None
+ self._changelog_entry = None
+ self.discriminator = None
+
+ self.edit = edit
+ self.editgroup = editgroup
+ self.changelog_entry = changelog_entry
+
+ @property
+ def edit(self):
+ """Gets the edit of this EntityHistoryEntry. # noqa: E501
+
+
+ :return: The edit of this EntityHistoryEntry. # noqa: E501
+ :rtype: EntityEdit
+ """
+ return self._edit
+
+ @edit.setter
+ def edit(self, edit):
+ """Sets the edit of this EntityHistoryEntry.
+
+
+ :param edit: The edit of this EntityHistoryEntry. # noqa: E501
+ :type: EntityEdit
+ """
+ if edit is None:
+ raise ValueError("Invalid value for `edit`, must not be `None`") # noqa: E501
+
+ self._edit = edit
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this EntityHistoryEntry. # noqa: E501
+
+
+ :return: The editgroup of this EntityHistoryEntry. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this EntityHistoryEntry.
+
+
+ :param editgroup: The editgroup of this EntityHistoryEntry. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def changelog_entry(self):
+ """Gets the changelog_entry of this EntityHistoryEntry. # noqa: E501
+
+
+ :return: The changelog_entry of this EntityHistoryEntry. # noqa: E501
+ :rtype: ChangelogEntry
+ """
+ return self._changelog_entry
+
+ @changelog_entry.setter
+ def changelog_entry(self, changelog_entry):
+ """Sets the changelog_entry of this EntityHistoryEntry.
+
+
+ :param changelog_entry: The changelog_entry of this EntityHistoryEntry. # noqa: E501
+ :type: ChangelogEntry
+ """
+ if changelog_entry is None:
+ raise ValueError("Invalid value for `changelog_entry`, must not be `None`") # noqa: E501
+
+ self._changelog_entry = changelog_entry
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EntityHistoryEntry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/error_response.py b/python_openapi_client/fatcat_openapi_client/models/error_response.py
new file mode 100644
index 00000000..43eafb9b
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/error_response.py
@@ -0,0 +1,167 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ErrorResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'success': 'bool',
+ 'error': 'str',
+ 'message': 'str'
+ }
+
+ attribute_map = {
+ 'success': 'success',
+ 'error': 'error',
+ 'message': 'message'
+ }
+
+ def __init__(self, success=None, error=None, message=None): # noqa: E501
+ """ErrorResponse - a model defined in Swagger""" # noqa: E501
+
+ self._success = None
+ self._error = None
+ self._message = None
+ self.discriminator = None
+
+ self.success = success
+ self.error = error
+ self.message = message
+
+ @property
+ def success(self):
+ """Gets the success of this ErrorResponse. # noqa: E501
+
+
+ :return: The success of this ErrorResponse. # noqa: E501
+ :rtype: bool
+ """
+ return self._success
+
+ @success.setter
+ def success(self, success):
+ """Sets the success of this ErrorResponse.
+
+
+ :param success: The success of this ErrorResponse. # noqa: E501
+ :type: bool
+ """
+ if success is None:
+ raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
+
+ self._success = success
+
+ @property
+ def error(self):
+ """Gets the error of this ErrorResponse. # noqa: E501
+
+
+ :return: The error of this ErrorResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._error
+
+ @error.setter
+ def error(self, error):
+ """Sets the error of this ErrorResponse.
+
+
+ :param error: The error of this ErrorResponse. # noqa: E501
+ :type: str
+ """
+ if error is None:
+ raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
+
+ self._error = error
+
+ @property
+ def message(self):
+ """Gets the message of this ErrorResponse. # noqa: E501
+
+
+ :return: The message of this ErrorResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """Sets the message of this ErrorResponse.
+
+
+ :param message: The message of this ErrorResponse. # noqa: E501
+ :type: str
+ """
+ if message is None:
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
+
+ self._message = message
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ErrorResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py
new file mode 100644
index 00000000..7f8853d2
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+from fatcat_openapi_client.models.file_entity import FileEntity # noqa: F401,E501
+
+
+class FileAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[FileEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """FileAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this FileAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this FileAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this FileAutoBatch.
+
+
+ :param editgroup: The editgroup of this FileAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this FileAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this FileAutoBatch. # noqa: E501
+ :rtype: list[FileEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this FileAutoBatch.
+
+
+ :param entity_list: The entity_list of this FileAutoBatch. # noqa: E501
+ :type: list[FileEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FileAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/file_entity.py b/python_openapi_client/fatcat_openapi_client/models/file_entity.py
new file mode 100644
index 00000000..9f9a558a
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/file_entity.py
@@ -0,0 +1,502 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.file_url import FileUrl # noqa: F401,E501
+
+
+class FileEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'releases': 'list[ReleaseEntity]',
+ 'release_ids': 'list[str]',
+ 'mimetype': 'str',
+ 'urls': 'list[FileUrl]',
+ 'sha256': 'str',
+ 'sha1': 'str',
+ 'md5': 'str',
+ 'size': 'int',
+ 'edit_extra': 'object',
+ 'extra': 'object',
+ 'redirect': 'str',
+ 'revision': 'str',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'releases': 'releases',
+ 'release_ids': 'release_ids',
+ 'mimetype': 'mimetype',
+ 'urls': 'urls',
+ 'sha256': 'sha256',
+ 'sha1': 'sha1',
+ 'md5': 'md5',
+ 'size': 'size',
+ 'edit_extra': 'edit_extra',
+ 'extra': 'extra',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, releases=None, release_ids=None, mimetype=None, urls=None, sha256=None, sha1=None, md5=None, size=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """FileEntity - a model defined in Swagger""" # noqa: E501
+
+ self._releases = None
+ self._release_ids = None
+ self._mimetype = None
+ self._urls = None
+ self._sha256 = None
+ self._sha1 = None
+ self._md5 = None
+ self._size = None
+ self._edit_extra = None
+ self._extra = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if releases is not None:
+ self.releases = releases
+ if release_ids is not None:
+ self.release_ids = release_ids
+ if mimetype is not None:
+ self.mimetype = mimetype
+ if urls is not None:
+ self.urls = urls
+ if sha256 is not None:
+ self.sha256 = sha256
+ if sha1 is not None:
+ self.sha1 = sha1
+ if md5 is not None:
+ self.md5 = md5
+ if size is not None:
+ self.size = size
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if extra is not None:
+ self.extra = extra
+ if redirect is not None:
+ self.redirect = redirect
+ if revision is not None:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def releases(self):
+ """Gets the releases of this FileEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The releases of this FileEntity. # noqa: E501
+ :rtype: list[ReleaseEntity]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this FileEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param releases: The releases of this FileEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
+
+ @property
+ def release_ids(self):
+ """Gets the release_ids of this FileEntity. # noqa: E501
+
+
+ :return: The release_ids of this FileEntity. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._release_ids
+
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this FileEntity.
+
+
+ :param release_ids: The release_ids of this FileEntity. # noqa: E501
+ :type: list[str]
+ """
+
+ self._release_ids = release_ids
+
+ @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 urls(self):
+ """Gets the urls of this FileEntity. # noqa: E501
+
+
+ :return: The urls of this FileEntity. # noqa: E501
+ :rtype: list[FileUrl]
+ """
+ return self._urls
+
+ @urls.setter
+ def urls(self, urls):
+ """Sets the urls of this FileEntity.
+
+
+ :param urls: The urls of this FileEntity. # noqa: E501
+ :type: list[FileUrl]
+ """
+
+ self._urls = urls
+
+ @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
+ """
+ if sha256 is not None and len(sha256) > 64:
+ raise ValueError("Invalid value for `sha256`, length must be less than or equal to `64`") # noqa: E501
+ if sha256 is not None and len(sha256) < 64:
+ raise ValueError("Invalid value for `sha256`, length must be greater than or equal to `64`") # noqa: E501
+ if sha256 is not None and not re.search('[a-f0-9]{64}', sha256): # noqa: E501
+ raise ValueError("Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
+
+ self._sha256 = sha256
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this FileEntity. # noqa: E501
+
+
+ :return: The sha1 of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this FileEntity.
+
+
+ :param sha1: The sha1 of this FileEntity. # noqa: E501
+ :type: str
+ """
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def md5(self):
+ """Gets the md5 of this FileEntity. # noqa: E501
+
+
+ :return: The md5 of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._md5
+
+ @md5.setter
+ def md5(self, md5):
+ """Sets the md5 of this FileEntity.
+
+
+ :param md5: The md5 of this FileEntity. # noqa: E501
+ :type: str
+ """
+ if md5 is not None and len(md5) > 32:
+ raise ValueError("Invalid value for `md5`, length must be less than or equal to `32`") # noqa: E501
+ if md5 is not None and len(md5) < 32:
+ raise ValueError("Invalid value for `md5`, length must be greater than or equal to `32`") # noqa: E501
+ if md5 is not None and not re.search('[a-f0-9]{32}', md5): # noqa: E501
+ raise ValueError("Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
+
+ self._md5 = md5
+
+ @property
+ def size(self):
+ """Gets the size of this FileEntity. # noqa: E501
+
+
+ :return: The size of this FileEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this FileEntity.
+
+
+ :param size: The size of this FileEntity. # noqa: E501
+ :type: int
+ """
+
+ self._size = size
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this FileEntity. # noqa: E501
+
+
+ :return: The edit_extra of this FileEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this FileEntity.
+
+
+ :param edit_extra: The edit_extra of this FileEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ @property
+ def extra(self):
+ """Gets the extra of this FileEntity. # noqa: E501
+
+
+ :return: The extra of this FileEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FileEntity.
+
+
+ :param extra: The extra of this FileEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this FileEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this FileEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this FileEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this FileEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this FileEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this FileEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this FileEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this FileEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this FileEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this FileEntity. # noqa: E501
+
+
+ :return: The state of this FileEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this FileEntity.
+
+
+ :param state: The state of this FileEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FileEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/file_url.py b/python_openapi_client/fatcat_openapi_client/models/file_url.py
new file mode 100644
index 00000000..cce0d332
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/file_url.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FileUrl(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'url': 'str',
+ 'rel': 'str'
+ }
+
+ attribute_map = {
+ 'url': 'url',
+ 'rel': 'rel'
+ }
+
+ def __init__(self, url=None, rel=None): # noqa: E501
+ """FileUrl - a model defined in Swagger""" # noqa: E501
+
+ self._url = None
+ self._rel = None
+ self.discriminator = None
+
+ self.url = url
+ self.rel = rel
+
+ @property
+ def url(self):
+ """Gets the url of this FileUrl. # noqa: E501
+
+
+ :return: The url of this FileUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this FileUrl.
+
+
+ :param url: The url of this FileUrl. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def rel(self):
+ """Gets the rel of this FileUrl. # noqa: E501
+
+
+ :return: The rel of this FileUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this FileUrl.
+
+
+ :param rel: The rel of this FileUrl. # noqa: E501
+ :type: str
+ """
+ if rel is None:
+ raise ValueError("Invalid value for `rel`, must not be `None`") # noqa: E501
+
+ self._rel = rel
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FileUrl):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py
new file mode 100644
index 00000000..b252449d
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+from fatcat_openapi_client.models.fileset_entity import FilesetEntity # noqa: F401,E501
+
+
+class FilesetAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[FilesetEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """FilesetAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this FilesetAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this FilesetAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this FilesetAutoBatch.
+
+
+ :param editgroup: The editgroup of this FilesetAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this FilesetAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this FilesetAutoBatch. # noqa: E501
+ :rtype: list[FilesetEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this FilesetAutoBatch.
+
+
+ :param entity_list: The entity_list of this FilesetAutoBatch. # noqa: E501
+ :type: list[FilesetEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FilesetAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py b/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py
new file mode 100644
index 00000000..c0d02fd3
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py
@@ -0,0 +1,381 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.fileset_file import FilesetFile # noqa: F401,E501
+from fatcat_openapi_client.models.fileset_url import FilesetUrl # noqa: F401,E501
+
+
+class FilesetEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'releases': 'list[ReleaseEntity]',
+ 'release_ids': 'list[str]',
+ 'urls': 'list[FilesetUrl]',
+ 'manifest': 'list[FilesetFile]',
+ 'state': 'str',
+ 'ident': 'str',
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'object',
+ 'edit_extra': 'object'
+ }
+
+ attribute_map = {
+ 'releases': 'releases',
+ 'release_ids': 'release_ids',
+ 'urls': 'urls',
+ 'manifest': 'manifest',
+ 'state': 'state',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra'
+ }
+
+ def __init__(self, releases=None, release_ids=None, urls=None, manifest=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ """FilesetEntity - a model defined in Swagger""" # noqa: E501
+
+ self._releases = None
+ self._release_ids = None
+ self._urls = None
+ self._manifest = None
+ self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
+ self.discriminator = None
+
+ if releases is not None:
+ self.releases = releases
+ if release_ids is not None:
+ self.release_ids = release_ids
+ if urls is not None:
+ self.urls = urls
+ if manifest is not None:
+ self.manifest = manifest
+ if state is not None:
+ self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+
+ @property
+ def releases(self):
+ """Gets the releases of this FilesetEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The releases of this FilesetEntity. # noqa: E501
+ :rtype: list[ReleaseEntity]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this FilesetEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param releases: The releases of this FilesetEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
+
+ @property
+ def release_ids(self):
+ """Gets the release_ids of this FilesetEntity. # noqa: E501
+
+
+ :return: The release_ids of this FilesetEntity. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._release_ids
+
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this FilesetEntity.
+
+
+ :param release_ids: The release_ids of this FilesetEntity. # noqa: E501
+ :type: list[str]
+ """
+
+ self._release_ids = release_ids
+
+ @property
+ def urls(self):
+ """Gets the urls of this FilesetEntity. # noqa: E501
+
+
+ :return: The urls of this FilesetEntity. # noqa: E501
+ :rtype: list[FilesetUrl]
+ """
+ return self._urls
+
+ @urls.setter
+ def urls(self, urls):
+ """Sets the urls of this FilesetEntity.
+
+
+ :param urls: The urls of this FilesetEntity. # noqa: E501
+ :type: list[FilesetUrl]
+ """
+
+ self._urls = urls
+
+ @property
+ def manifest(self):
+ """Gets the manifest of this FilesetEntity. # noqa: E501
+
+
+ :return: The manifest of this FilesetEntity. # noqa: E501
+ :rtype: list[FilesetFile]
+ """
+ return self._manifest
+
+ @manifest.setter
+ def manifest(self, manifest):
+ """Sets the manifest of this FilesetEntity.
+
+
+ :param manifest: The manifest of this FilesetEntity. # noqa: E501
+ :type: list[FilesetFile]
+ """
+
+ self._manifest = manifest
+
+ @property
+ def state(self):
+ """Gets the state of this FilesetEntity. # noqa: E501
+
+
+ :return: The state of this FilesetEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this FilesetEntity.
+
+
+ :param state: The state of this FilesetEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ @property
+ def ident(self):
+ """Gets the ident of this FilesetEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this FilesetEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this FilesetEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this FilesetEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this FilesetEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this FilesetEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this FilesetEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this FilesetEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this FilesetEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this FilesetEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this FilesetEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this FilesetEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def extra(self):
+ """Gets the extra of this FilesetEntity. # noqa: E501
+
+
+ :return: The extra of this FilesetEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FilesetEntity.
+
+
+ :param extra: The extra of this FilesetEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this FilesetEntity. # noqa: E501
+
+
+ :return: The edit_extra of this FilesetEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this FilesetEntity.
+
+
+ :param edit_extra: The edit_extra of this FilesetEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FilesetEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_file.py b/python_openapi_client/fatcat_openapi_client/models/fileset_file.py
new file mode 100644
index 00000000..521abc98
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_file.py
@@ -0,0 +1,262 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FilesetFile(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'path': 'str',
+ 'size': 'int',
+ 'md5': 'str',
+ 'sha1': 'str',
+ 'sha256': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'path': 'path',
+ 'size': 'size',
+ 'md5': 'md5',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, path=None, size=None, md5=None, sha1=None, sha256=None, extra=None): # noqa: E501
+ """FilesetFile - a model defined in Swagger""" # noqa: E501
+
+ self._path = None
+ self._size = None
+ self._md5 = None
+ self._sha1 = None
+ self._sha256 = None
+ self._extra = None
+ self.discriminator = None
+
+ self.path = path
+ self.size = size
+ if md5 is not None:
+ self.md5 = md5
+ if sha1 is not None:
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def path(self):
+ """Gets the path of this FilesetFile. # noqa: E501
+
+
+ :return: The path of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """Sets the path of this FilesetFile.
+
+
+ :param path: The path of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if path is None:
+ raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
+
+ self._path = path
+
+ @property
+ def size(self):
+ """Gets the size of this FilesetFile. # noqa: E501
+
+
+ :return: The size of this FilesetFile. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this FilesetFile.
+
+
+ :param size: The size of this FilesetFile. # noqa: E501
+ :type: int
+ """
+ if size is None:
+ raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501
+
+ self._size = size
+
+ @property
+ def md5(self):
+ """Gets the md5 of this FilesetFile. # noqa: E501
+
+
+ :return: The md5 of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._md5
+
+ @md5.setter
+ def md5(self, md5):
+ """Sets the md5 of this FilesetFile.
+
+
+ :param md5: The md5 of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if md5 is not None and len(md5) > 32:
+ raise ValueError("Invalid value for `md5`, length must be less than or equal to `32`") # noqa: E501
+ if md5 is not None and len(md5) < 32:
+ raise ValueError("Invalid value for `md5`, length must be greater than or equal to `32`") # noqa: E501
+ if md5 is not None and not re.search('[a-f0-9]{32}', md5): # noqa: E501
+ raise ValueError("Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
+
+ self._md5 = md5
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this FilesetFile. # noqa: E501
+
+
+ :return: The sha1 of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this FilesetFile.
+
+
+ :param sha1: The sha1 of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this FilesetFile. # noqa: E501
+
+
+ :return: The sha256 of this FilesetFile. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this FilesetFile.
+
+
+ :param sha256: The sha256 of this FilesetFile. # noqa: E501
+ :type: str
+ """
+ if sha256 is not None and len(sha256) > 64:
+ raise ValueError("Invalid value for `sha256`, length must be less than or equal to `64`") # noqa: E501
+ if sha256 is not None and len(sha256) < 64:
+ raise ValueError("Invalid value for `sha256`, length must be greater than or equal to `64`") # noqa: E501
+ if sha256 is not None and not re.search('[a-f0-9]{64}', sha256): # noqa: E501
+ raise ValueError("Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
+
+ self._sha256 = sha256
+
+ @property
+ def extra(self):
+ """Gets the extra of this FilesetFile. # noqa: E501
+
+
+ :return: The extra of this FilesetFile. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FilesetFile.
+
+
+ :param extra: The extra of this FilesetFile. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FilesetFile):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_url.py b/python_openapi_client/fatcat_openapi_client/models/fileset_url.py
new file mode 100644
index 00000000..d0e3a1e7
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_url.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FilesetUrl(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'url': 'str',
+ 'rel': 'str'
+ }
+
+ attribute_map = {
+ 'url': 'url',
+ 'rel': 'rel'
+ }
+
+ def __init__(self, url=None, rel=None): # noqa: E501
+ """FilesetUrl - a model defined in Swagger""" # noqa: E501
+
+ self._url = None
+ self._rel = None
+ self.discriminator = None
+
+ self.url = url
+ self.rel = rel
+
+ @property
+ def url(self):
+ """Gets the url of this FilesetUrl. # noqa: E501
+
+
+ :return: The url of this FilesetUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this FilesetUrl.
+
+
+ :param url: The url of this FilesetUrl. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def rel(self):
+ """Gets the rel of this FilesetUrl. # noqa: E501
+
+
+ :return: The rel of this FilesetUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this FilesetUrl.
+
+
+ :param rel: The rel of this FilesetUrl. # noqa: E501
+ :type: str
+ """
+ if rel is None:
+ raise ValueError("Invalid value for `rel`, must not be `None`") # noqa: E501
+
+ self._rel = rel
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, FilesetUrl):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_abstract.py b/python_openapi_client/fatcat_openapi_client/models/release_abstract.py
new file mode 100644
index 00000000..173aaa4c
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/release_abstract.py
@@ -0,0 +1,196 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseAbstract(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'sha1': 'str',
+ 'content': 'str',
+ 'mimetype': 'str',
+ 'lang': 'str'
+ }
+
+ attribute_map = {
+ 'sha1': 'sha1',
+ 'content': 'content',
+ 'mimetype': 'mimetype',
+ 'lang': 'lang'
+ }
+
+ def __init__(self, sha1=None, content=None, mimetype=None, lang=None): # noqa: E501
+ """ReleaseAbstract - a model defined in Swagger""" # noqa: E501
+
+ self._sha1 = None
+ self._content = None
+ self._mimetype = None
+ self._lang = None
+ self.discriminator = None
+
+ if sha1 is not None:
+ self.sha1 = sha1
+ if content is not None:
+ self.content = content
+ if mimetype is not None:
+ self.mimetype = mimetype
+ if lang is not None:
+ self.lang = lang
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The sha1 of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this ReleaseAbstract.
+
+
+ :param sha1: The sha1 of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def content(self):
+ """Gets the content of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The content of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._content
+
+ @content.setter
+ def content(self, content):
+ """Sets the content of this ReleaseAbstract.
+
+
+ :param content: The content of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+
+ self._content = content
+
+ @property
+ def mimetype(self):
+ """Gets the mimetype of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The mimetype of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this ReleaseAbstract.
+
+
+ :param mimetype: The mimetype of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
+ def lang(self):
+ """Gets the lang of this ReleaseAbstract. # noqa: E501
+
+
+ :return: The lang of this ReleaseAbstract. # noqa: E501
+ :rtype: str
+ """
+ return self._lang
+
+ @lang.setter
+ def lang(self, lang):
+ """Sets the lang of this ReleaseAbstract.
+
+
+ :param lang: The lang of this ReleaseAbstract. # noqa: E501
+ :type: str
+ """
+
+ self._lang = lang
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseAbstract):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py
new file mode 100644
index 00000000..30466a78
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+from fatcat_openapi_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+
+
+class ReleaseAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[ReleaseEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """ReleaseAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this ReleaseAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this ReleaseAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this ReleaseAutoBatch.
+
+
+ :param editgroup: The editgroup of this ReleaseAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this ReleaseAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this ReleaseAutoBatch. # noqa: E501
+ :rtype: list[ReleaseEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this ReleaseAutoBatch.
+
+
+ :param entity_list: The entity_list of this ReleaseAutoBatch. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_contrib.py b/python_openapi_client/fatcat_openapi_client/models/release_contrib.py
new file mode 100644
index 00000000..8956618a
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/release_contrib.py
@@ -0,0 +1,334 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.creator_entity import CreatorEntity # noqa: F401,E501
+
+
+class ReleaseContrib(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'index': 'int',
+ 'creator_id': 'str',
+ 'creator': 'CreatorEntity',
+ 'raw_name': 'str',
+ 'given_name': 'str',
+ 'surname': 'str',
+ 'role': 'str',
+ 'raw_affiliation': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'index': 'index',
+ 'creator_id': 'creator_id',
+ 'creator': 'creator',
+ 'raw_name': 'raw_name',
+ 'given_name': 'given_name',
+ 'surname': 'surname',
+ 'role': 'role',
+ 'raw_affiliation': 'raw_affiliation',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, index=None, creator_id=None, creator=None, raw_name=None, given_name=None, surname=None, role=None, raw_affiliation=None, extra=None): # noqa: E501
+ """ReleaseContrib - a model defined in Swagger""" # noqa: E501
+
+ self._index = None
+ self._creator_id = None
+ self._creator = None
+ self._raw_name = None
+ self._given_name = None
+ self._surname = None
+ self._role = None
+ self._raw_affiliation = None
+ self._extra = None
+ self.discriminator = None
+
+ if index is not None:
+ self.index = index
+ if creator_id is not None:
+ self.creator_id = creator_id
+ if creator is not None:
+ self.creator = creator
+ if raw_name is not None:
+ self.raw_name = raw_name
+ if given_name is not None:
+ self.given_name = given_name
+ if surname is not None:
+ self.surname = surname
+ if role is not None:
+ self.role = role
+ if raw_affiliation is not None:
+ self.raw_affiliation = raw_affiliation
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def index(self):
+ """Gets the index of this ReleaseContrib. # noqa: E501
+
+
+ :return: The index of this ReleaseContrib. # noqa: E501
+ :rtype: int
+ """
+ return self._index
+
+ @index.setter
+ def index(self, index):
+ """Sets the index of this ReleaseContrib.
+
+
+ :param index: The index of this ReleaseContrib. # noqa: E501
+ :type: int
+ """
+
+ self._index = index
+
+ @property
+ def creator_id(self):
+ """Gets the creator_id of this ReleaseContrib. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The creator_id of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._creator_id
+
+ @creator_id.setter
+ def creator_id(self, creator_id):
+ """Sets the creator_id of this ReleaseContrib.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param creator_id: The creator_id of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+ if creator_id is not None and len(creator_id) > 26:
+ raise ValueError("Invalid value for `creator_id`, length must be less than or equal to `26`") # noqa: E501
+ if creator_id is not None and len(creator_id) < 26:
+ raise ValueError("Invalid value for `creator_id`, length must be greater than or equal to `26`") # noqa: E501
+ if creator_id is not None and not re.search('[a-zA-Z2-7]{26}', creator_id): # noqa: E501
+ raise ValueError("Invalid value for `creator_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._creator_id = creator_id
+
+ @property
+ def creator(self):
+ """Gets the creator of this ReleaseContrib. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The creator of this ReleaseContrib. # noqa: E501
+ :rtype: CreatorEntity
+ """
+ return self._creator
+
+ @creator.setter
+ def creator(self, creator):
+ """Sets the creator of this ReleaseContrib.
+
+ Optional; GET-only # noqa: E501
+
+ :param creator: The creator of this ReleaseContrib. # noqa: E501
+ :type: CreatorEntity
+ """
+
+ self._creator = creator
+
+ @property
+ def raw_name(self):
+ """Gets the raw_name of this ReleaseContrib. # noqa: E501
+
+
+ :return: The raw_name of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._raw_name
+
+ @raw_name.setter
+ def raw_name(self, raw_name):
+ """Sets the raw_name of this ReleaseContrib.
+
+
+ :param raw_name: The raw_name of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._raw_name = raw_name
+
+ @property
+ def given_name(self):
+ """Gets the given_name of this ReleaseContrib. # noqa: E501
+
+
+ :return: The given_name of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._given_name
+
+ @given_name.setter
+ def given_name(self, given_name):
+ """Sets the given_name of this ReleaseContrib.
+
+
+ :param given_name: The given_name of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._given_name = given_name
+
+ @property
+ def surname(self):
+ """Gets the surname of this ReleaseContrib. # noqa: E501
+
+
+ :return: The surname of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._surname
+
+ @surname.setter
+ def surname(self, surname):
+ """Sets the surname of this ReleaseContrib.
+
+
+ :param surname: The surname of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._surname = surname
+
+ @property
+ def role(self):
+ """Gets the role of this ReleaseContrib. # noqa: E501
+
+
+ :return: The role of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._role
+
+ @role.setter
+ def role(self, role):
+ """Sets the role of this ReleaseContrib.
+
+
+ :param role: The role of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._role = role
+
+ @property
+ def raw_affiliation(self):
+ """Gets the raw_affiliation of this ReleaseContrib. # noqa: E501
+
+ Raw affiliation string as displayed in text # noqa: E501
+
+ :return: The raw_affiliation of this ReleaseContrib. # noqa: E501
+ :rtype: str
+ """
+ return self._raw_affiliation
+
+ @raw_affiliation.setter
+ def raw_affiliation(self, raw_affiliation):
+ """Sets the raw_affiliation of this ReleaseContrib.
+
+ Raw affiliation string as displayed in text # noqa: E501
+
+ :param raw_affiliation: The raw_affiliation of this ReleaseContrib. # noqa: E501
+ :type: str
+ """
+
+ self._raw_affiliation = raw_affiliation
+
+ @property
+ def extra(self):
+ """Gets the extra of this ReleaseContrib. # noqa: E501
+
+
+ :return: The extra of this ReleaseContrib. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ReleaseContrib.
+
+
+ :param extra: The extra of this ReleaseContrib. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseContrib):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_entity.py b/python_openapi_client/fatcat_openapi_client/models/release_entity.py
new file mode 100644
index 00000000..119f5b1d
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/release_entity.py
@@ -0,0 +1,1028 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.container_entity import ContainerEntity # noqa: F401,E501
+from fatcat_openapi_client.models.file_entity import FileEntity # noqa: F401,E501
+from fatcat_openapi_client.models.fileset_entity import FilesetEntity # noqa: F401,E501
+from fatcat_openapi_client.models.release_abstract import ReleaseAbstract # noqa: F401,E501
+from fatcat_openapi_client.models.release_contrib import ReleaseContrib # noqa: F401,E501
+from fatcat_openapi_client.models.release_ext_ids import ReleaseExtIds # noqa: F401,E501
+from fatcat_openapi_client.models.release_ref import ReleaseRef # noqa: F401,E501
+from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
+
+
+class ReleaseEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'abstracts': 'list[ReleaseAbstract]',
+ 'refs': 'list[ReleaseRef]',
+ 'contribs': 'list[ReleaseContrib]',
+ 'license_slug': 'str',
+ 'language': 'str',
+ 'publisher': 'str',
+ 'version': 'str',
+ 'number': 'str',
+ 'pages': 'str',
+ 'issue': 'str',
+ 'volume': 'str',
+ 'ext_ids': 'ReleaseExtIds',
+ 'withdrawn_year': 'int',
+ 'withdrawn_date': 'date',
+ 'withdrawn_status': 'str',
+ 'release_year': 'int',
+ 'release_date': 'date',
+ 'release_stage': 'str',
+ 'release_type': 'str',
+ 'container_id': 'str',
+ 'webcaptures': 'list[WebcaptureEntity]',
+ 'filesets': 'list[FilesetEntity]',
+ 'files': 'list[FileEntity]',
+ 'container': 'ContainerEntity',
+ 'work_id': 'str',
+ 'original_title': 'str',
+ 'subtitle': 'str',
+ 'title': 'str',
+ 'state': 'str',
+ 'ident': 'str',
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'object',
+ 'edit_extra': 'object'
+ }
+
+ attribute_map = {
+ 'abstracts': 'abstracts',
+ 'refs': 'refs',
+ 'contribs': 'contribs',
+ 'license_slug': 'license_slug',
+ 'language': 'language',
+ 'publisher': 'publisher',
+ 'version': 'version',
+ 'number': 'number',
+ 'pages': 'pages',
+ 'issue': 'issue',
+ 'volume': 'volume',
+ 'ext_ids': 'ext_ids',
+ 'withdrawn_year': 'withdrawn_year',
+ 'withdrawn_date': 'withdrawn_date',
+ 'withdrawn_status': 'withdrawn_status',
+ 'release_year': 'release_year',
+ 'release_date': 'release_date',
+ 'release_stage': 'release_stage',
+ 'release_type': 'release_type',
+ 'container_id': 'container_id',
+ 'webcaptures': 'webcaptures',
+ 'filesets': 'filesets',
+ 'files': 'files',
+ 'container': 'container',
+ 'work_id': 'work_id',
+ 'original_title': 'original_title',
+ 'subtitle': 'subtitle',
+ 'title': 'title',
+ 'state': 'state',
+ 'ident': 'ident',
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra'
+ }
+
+ def __init__(self, abstracts=None, refs=None, contribs=None, license_slug=None, language=None, publisher=None, version=None, number=None, pages=None, issue=None, volume=None, ext_ids=None, withdrawn_year=None, withdrawn_date=None, withdrawn_status=None, release_year=None, release_date=None, release_stage=None, release_type=None, container_id=None, webcaptures=None, filesets=None, files=None, container=None, work_id=None, original_title=None, subtitle=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ """ReleaseEntity - a model defined in Swagger""" # noqa: E501
+
+ self._abstracts = None
+ self._refs = None
+ self._contribs = None
+ self._license_slug = None
+ self._language = None
+ self._publisher = None
+ self._version = None
+ self._number = None
+ self._pages = None
+ self._issue = None
+ self._volume = None
+ self._ext_ids = None
+ self._withdrawn_year = None
+ self._withdrawn_date = None
+ self._withdrawn_status = None
+ self._release_year = None
+ self._release_date = None
+ self._release_stage = None
+ self._release_type = None
+ self._container_id = None
+ self._webcaptures = None
+ self._filesets = None
+ self._files = None
+ self._container = None
+ self._work_id = None
+ self._original_title = None
+ self._subtitle = None
+ self._title = None
+ self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
+ self.discriminator = None
+
+ if abstracts is not None:
+ self.abstracts = abstracts
+ if refs is not None:
+ self.refs = refs
+ if contribs is not None:
+ self.contribs = contribs
+ if license_slug is not None:
+ self.license_slug = license_slug
+ if language is not None:
+ self.language = language
+ if publisher is not None:
+ self.publisher = publisher
+ if version is not None:
+ self.version = version
+ if number is not None:
+ self.number = number
+ if pages is not None:
+ self.pages = pages
+ if issue is not None:
+ self.issue = issue
+ if volume is not None:
+ self.volume = volume
+ self.ext_ids = ext_ids
+ if withdrawn_year is not None:
+ self.withdrawn_year = withdrawn_year
+ if withdrawn_date is not None:
+ self.withdrawn_date = withdrawn_date
+ if withdrawn_status is not None:
+ self.withdrawn_status = withdrawn_status
+ if release_year is not None:
+ self.release_year = release_year
+ if release_date is not None:
+ self.release_date = release_date
+ if release_stage is not None:
+ self.release_stage = release_stage
+ if release_type is not None:
+ self.release_type = release_type
+ if container_id is not None:
+ self.container_id = container_id
+ if webcaptures is not None:
+ self.webcaptures = webcaptures
+ if filesets is not None:
+ self.filesets = filesets
+ if files is not None:
+ self.files = files
+ if container is not None:
+ self.container = container
+ if work_id is not None:
+ self.work_id = work_id
+ if original_title is not None:
+ self.original_title = original_title
+ if subtitle is not None:
+ self.subtitle = subtitle
+ if title is not None:
+ self.title = title
+ if state is not None:
+ self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+
+ @property
+ def abstracts(self):
+ """Gets the abstracts of this ReleaseEntity. # noqa: E501
+
+
+ :return: The abstracts of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseAbstract]
+ """
+ return self._abstracts
+
+ @abstracts.setter
+ def abstracts(self, abstracts):
+ """Sets the abstracts of this ReleaseEntity.
+
+
+ :param abstracts: The abstracts of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseAbstract]
+ """
+
+ self._abstracts = abstracts
+
+ @property
+ def refs(self):
+ """Gets the refs of this ReleaseEntity. # noqa: E501
+
+
+ :return: The refs of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseRef]
+ """
+ return self._refs
+
+ @refs.setter
+ def refs(self, refs):
+ """Sets the refs of this ReleaseEntity.
+
+
+ :param refs: The refs of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseRef]
+ """
+
+ self._refs = refs
+
+ @property
+ def contribs(self):
+ """Gets the contribs of this ReleaseEntity. # noqa: E501
+
+
+ :return: The contribs of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseContrib]
+ """
+ return self._contribs
+
+ @contribs.setter
+ def contribs(self, contribs):
+ """Sets the contribs of this ReleaseEntity.
+
+
+ :param contribs: The contribs of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseContrib]
+ """
+
+ self._contribs = contribs
+
+ @property
+ def license_slug(self):
+ """Gets the license_slug of this ReleaseEntity. # noqa: E501
+
+ Short version of license name. Eg, 'CC-BY' # noqa: E501
+
+ :return: The license_slug of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._license_slug
+
+ @license_slug.setter
+ def license_slug(self, license_slug):
+ """Sets the license_slug of this ReleaseEntity.
+
+ Short version of license name. Eg, 'CC-BY' # noqa: E501
+
+ :param license_slug: The license_slug of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._license_slug = license_slug
+
+ @property
+ def language(self):
+ """Gets the language of this ReleaseEntity. # noqa: E501
+
+ Two-letter RFC1766/ISO639-1 language code, with extensions # 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.
+
+ Two-letter RFC1766/ISO639-1 language code, with extensions # noqa: E501
+
+ :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
+
+
+ :return: The publisher of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._publisher
+
+ @publisher.setter
+ def publisher(self, publisher):
+ """Sets the publisher of this ReleaseEntity.
+
+
+ :param publisher: The publisher of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._publisher = publisher
+
+ @property
+ def version(self):
+ """Gets the version of this ReleaseEntity. # noqa: E501
+
+
+ :return: The version of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """Sets the version of this ReleaseEntity.
+
+
+ :param version: The version of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._version = version
+
+ @property
+ def number(self):
+ """Gets the number of this ReleaseEntity. # noqa: E501
+
+
+ :return: The number of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._number
+
+ @number.setter
+ def number(self, number):
+ """Sets the number of this ReleaseEntity.
+
+
+ :param number: The number of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._number = number
+
+ @property
+ def pages(self):
+ """Gets the pages of this ReleaseEntity. # noqa: E501
+
+
+ :return: The pages of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._pages
+
+ @pages.setter
+ def pages(self, pages):
+ """Sets the pages of this ReleaseEntity.
+
+
+ :param pages: The pages of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._pages = pages
+
+ @property
+ def issue(self):
+ """Gets the issue of this ReleaseEntity. # noqa: E501
+
+
+ :return: The issue of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._issue
+
+ @issue.setter
+ def issue(self, issue):
+ """Sets the issue of this ReleaseEntity.
+
+
+ :param issue: The issue of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._issue = issue
+
+ @property
+ def volume(self):
+ """Gets the volume of this ReleaseEntity. # noqa: E501
+
+
+ :return: The volume of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._volume
+
+ @volume.setter
+ def volume(self, volume):
+ """Sets the volume of this ReleaseEntity.
+
+
+ :param volume: The volume of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._volume = volume
+
+ @property
+ def ext_ids(self):
+ """Gets the ext_ids of this ReleaseEntity. # noqa: E501
+
+
+ :return: The ext_ids of this ReleaseEntity. # noqa: E501
+ :rtype: ReleaseExtIds
+ """
+ return self._ext_ids
+
+ @ext_ids.setter
+ def ext_ids(self, ext_ids):
+ """Sets the ext_ids of this ReleaseEntity.
+
+
+ :param ext_ids: The ext_ids of this ReleaseEntity. # noqa: E501
+ :type: ReleaseExtIds
+ """
+ if ext_ids is None:
+ raise ValueError("Invalid value for `ext_ids`, must not be `None`") # noqa: E501
+
+ self._ext_ids = ext_ids
+
+ @property
+ def withdrawn_year(self):
+ """Gets the withdrawn_year of this ReleaseEntity. # noqa: E501
+
+
+ :return: The withdrawn_year of this ReleaseEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._withdrawn_year
+
+ @withdrawn_year.setter
+ def withdrawn_year(self, withdrawn_year):
+ """Sets the withdrawn_year of this ReleaseEntity.
+
+
+ :param withdrawn_year: The withdrawn_year of this ReleaseEntity. # noqa: E501
+ :type: int
+ """
+
+ self._withdrawn_year = withdrawn_year
+
+ @property
+ def withdrawn_date(self):
+ """Gets the withdrawn_date of this ReleaseEntity. # noqa: E501
+
+
+ :return: The withdrawn_date of this ReleaseEntity. # noqa: E501
+ :rtype: date
+ """
+ return self._withdrawn_date
+
+ @withdrawn_date.setter
+ def withdrawn_date(self, withdrawn_date):
+ """Sets the withdrawn_date of this ReleaseEntity.
+
+
+ :param withdrawn_date: The withdrawn_date of this ReleaseEntity. # noqa: E501
+ :type: date
+ """
+
+ self._withdrawn_date = withdrawn_date
+
+ @property
+ def withdrawn_status(self):
+ """Gets the withdrawn_status of this ReleaseEntity. # noqa: E501
+
+
+ :return: The withdrawn_status of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._withdrawn_status
+
+ @withdrawn_status.setter
+ def withdrawn_status(self, withdrawn_status):
+ """Sets the withdrawn_status of this ReleaseEntity.
+
+
+ :param withdrawn_status: The withdrawn_status of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._withdrawn_status = withdrawn_status
+
+ @property
+ def release_year(self):
+ """Gets the release_year of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_year of this ReleaseEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._release_year
+
+ @release_year.setter
+ def release_year(self, release_year):
+ """Sets the release_year of this ReleaseEntity.
+
+
+ :param release_year: The release_year of this ReleaseEntity. # noqa: E501
+ :type: int
+ """
+
+ self._release_year = release_year
+
+ @property
+ def release_date(self):
+ """Gets the release_date of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_date of this ReleaseEntity. # noqa: E501
+ :rtype: date
+ """
+ return self._release_date
+
+ @release_date.setter
+ def release_date(self, release_date):
+ """Sets the release_date of this ReleaseEntity.
+
+
+ :param release_date: The release_date of this ReleaseEntity. # noqa: E501
+ :type: date
+ """
+
+ self._release_date = release_date
+
+ @property
+ def release_stage(self):
+ """Gets the release_stage of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_stage of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._release_stage
+
+ @release_stage.setter
+ def release_stage(self, release_stage):
+ """Sets the release_stage of this ReleaseEntity.
+
+
+ :param release_stage: The release_stage of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._release_stage = release_stage
+
+ @property
+ def release_type(self):
+ """Gets the release_type of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_type of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._release_type
+
+ @release_type.setter
+ def release_type(self, release_type):
+ """Sets the release_type of this ReleaseEntity.
+
+
+ :param release_type: The release_type of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._release_type = release_type
+
+ @property
+ def container_id(self):
+ """Gets the container_id of this ReleaseEntity. # noqa: E501
+
+
+ :return: The container_id of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._container_id
+
+ @container_id.setter
+ def container_id(self, container_id):
+ """Sets the container_id of this ReleaseEntity.
+
+
+ :param container_id: The container_id of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._container_id = container_id
+
+ @property
+ def webcaptures(self):
+ """Gets the webcaptures of this ReleaseEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The webcaptures of this ReleaseEntity. # noqa: E501
+ :rtype: list[WebcaptureEntity]
+ """
+ return self._webcaptures
+
+ @webcaptures.setter
+ def webcaptures(self, webcaptures):
+ """Sets the webcaptures of this ReleaseEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param webcaptures: The webcaptures of this ReleaseEntity. # noqa: E501
+ :type: list[WebcaptureEntity]
+ """
+
+ self._webcaptures = webcaptures
+
+ @property
+ def filesets(self):
+ """Gets the filesets of this ReleaseEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The filesets of this ReleaseEntity. # noqa: E501
+ :rtype: list[FilesetEntity]
+ """
+ return self._filesets
+
+ @filesets.setter
+ def filesets(self, filesets):
+ """Sets the filesets of this ReleaseEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param filesets: The filesets of this ReleaseEntity. # noqa: E501
+ :type: list[FilesetEntity]
+ """
+
+ self._filesets = filesets
+
+ @property
+ def files(self):
+ """Gets the files of this ReleaseEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The files of this ReleaseEntity. # noqa: E501
+ :rtype: list[FileEntity]
+ """
+ return self._files
+
+ @files.setter
+ def files(self, files):
+ """Sets the files of this ReleaseEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param files: The files of this ReleaseEntity. # noqa: E501
+ :type: list[FileEntity]
+ """
+
+ self._files = files
+
+ @property
+ def container(self):
+ """Gets the container of this ReleaseEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The container of this ReleaseEntity. # noqa: E501
+ :rtype: ContainerEntity
+ """
+ return self._container
+
+ @container.setter
+ def container(self, container):
+ """Sets the container of this ReleaseEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param container: The container of this ReleaseEntity. # noqa: E501
+ :type: ContainerEntity
+ """
+
+ self._container = container
+
+ @property
+ def work_id(self):
+ """Gets the work_id of this ReleaseEntity. # noqa: E501
+
+
+ :return: The work_id of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._work_id
+
+ @work_id.setter
+ def work_id(self, work_id):
+ """Sets the work_id of this ReleaseEntity.
+
+
+ :param work_id: The work_id of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._work_id = work_id
+
+ @property
+ def original_title(self):
+ """Gets the original_title of this ReleaseEntity. # noqa: E501
+
+ Title in original language (or, the language of the full text of this release) # noqa: E501
+
+ :return: The original_title of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._original_title
+
+ @original_title.setter
+ def original_title(self, original_title):
+ """Sets the original_title of this ReleaseEntity.
+
+ Title in original language (or, the language of the full text of this release) # noqa: E501
+
+ :param original_title: The original_title of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._original_title = original_title
+
+ @property
+ def subtitle(self):
+ """Gets the subtitle of this ReleaseEntity. # noqa: E501
+
+ Avoid this field if possible, and merge with title; usually English # noqa: E501
+
+ :return: The subtitle of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._subtitle
+
+ @subtitle.setter
+ def subtitle(self, subtitle):
+ """Sets the subtitle of this ReleaseEntity.
+
+ Avoid this field if possible, and merge with title; usually English # noqa: E501
+
+ :param subtitle: The subtitle of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._subtitle = subtitle
+
+ @property
+ def title(self):
+ """Gets the title of this ReleaseEntity. # noqa: E501
+
+ Required for valid entities. The title used in citations and for display; usually English # noqa: E501
+
+ :return: The title of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._title
+
+ @title.setter
+ def title(self, title):
+ """Sets the title of this ReleaseEntity.
+
+ Required for valid entities. The title used in citations and for display; usually English # noqa: E501
+
+ :param title: The title of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+
+ self._title = title
+
+ @property
+ def state(self):
+ """Gets the state of this ReleaseEntity. # noqa: E501
+
+
+ :return: The state of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this ReleaseEntity.
+
+
+ :param state: The state of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ @property
+ def ident(self):
+ """Gets the ident of this ReleaseEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this ReleaseEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def revision(self):
+ """Gets the revision of this ReleaseEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this ReleaseEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this ReleaseEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this ReleaseEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this ReleaseEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this ReleaseEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def extra(self):
+ """Gets the extra of this ReleaseEntity. # noqa: E501
+
+
+ :return: The extra of this ReleaseEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ReleaseEntity.
+
+
+ :param extra: The extra of this ReleaseEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this ReleaseEntity. # noqa: E501
+
+
+ :return: The edit_extra of this ReleaseEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this ReleaseEntity.
+
+
+ :param edit_extra: The edit_extra of this ReleaseEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
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
new file mode 100644
index 00000000..7c6eb2dd
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py
@@ -0,0 +1,346 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseExtIds(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'doi': 'str',
+ 'wikidata_qid': 'str',
+ 'isbn13': 'str',
+ 'pmid': 'str',
+ 'pmcid': 'str',
+ 'core': 'str',
+ 'arxiv': 'str',
+ 'jstor': 'str',
+ 'ark': 'str',
+ 'mag': 'str'
+ }
+
+ attribute_map = {
+ 'doi': 'doi',
+ 'wikidata_qid': 'wikidata_qid',
+ 'isbn13': 'isbn13',
+ 'pmid': 'pmid',
+ 'pmcid': 'pmcid',
+ 'core': 'core',
+ 'arxiv': 'arxiv',
+ 'jstor': 'jstor',
+ 'ark': 'ark',
+ 'mag': 'mag'
+ }
+
+ 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
+ """ReleaseExtIds - a model defined in Swagger""" # noqa: E501
+
+ self._doi = None
+ self._wikidata_qid = None
+ self._isbn13 = None
+ self._pmid = None
+ self._pmcid = None
+ self._core = None
+ self._arxiv = None
+ self._jstor = None
+ self._ark = None
+ self._mag = None
+ self.discriminator = None
+
+ if doi is not None:
+ self.doi = doi
+ if wikidata_qid is not None:
+ self.wikidata_qid = wikidata_qid
+ if isbn13 is not None:
+ self.isbn13 = isbn13
+ if pmid is not None:
+ self.pmid = pmid
+ if pmcid is not None:
+ self.pmcid = pmcid
+ if core is not None:
+ self.core = core
+ if arxiv is not None:
+ self.arxiv = arxiv
+ if jstor is not None:
+ self.jstor = jstor
+ if ark is not None:
+ self.ark = ark
+ if mag is not None:
+ self.mag = mag
+
+ @property
+ def doi(self):
+ """Gets the doi of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The doi of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._doi
+
+ @doi.setter
+ def doi(self, doi):
+ """Sets the doi of this ReleaseExtIds.
+
+
+ :param doi: The doi of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._doi = doi
+
+ @property
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The wikidata_qid of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._wikidata_qid
+
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this ReleaseExtIds.
+
+
+ :param wikidata_qid: The wikidata_qid of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._wikidata_qid = wikidata_qid
+
+ @property
+ def isbn13(self):
+ """Gets the isbn13 of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The isbn13 of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._isbn13
+
+ @isbn13.setter
+ def isbn13(self, isbn13):
+ """Sets the isbn13 of this ReleaseExtIds.
+
+
+ :param isbn13: The isbn13 of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._isbn13 = isbn13
+
+ @property
+ def pmid(self):
+ """Gets the pmid of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The pmid of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._pmid
+
+ @pmid.setter
+ def pmid(self, pmid):
+ """Sets the pmid of this ReleaseExtIds.
+
+
+ :param pmid: The pmid of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._pmid = pmid
+
+ @property
+ def pmcid(self):
+ """Gets the pmcid of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The pmcid of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._pmcid
+
+ @pmcid.setter
+ def pmcid(self, pmcid):
+ """Sets the pmcid of this ReleaseExtIds.
+
+
+ :param pmcid: The pmcid of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._pmcid = pmcid
+
+ @property
+ def core(self):
+ """Gets the core of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The core of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._core
+
+ @core.setter
+ def core(self, core):
+ """Sets the core of this ReleaseExtIds.
+
+
+ :param core: The core of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._core = core
+
+ @property
+ def arxiv(self):
+ """Gets the arxiv of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The arxiv of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._arxiv
+
+ @arxiv.setter
+ def arxiv(self, arxiv):
+ """Sets the arxiv of this ReleaseExtIds.
+
+
+ :param arxiv: The arxiv of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._arxiv = arxiv
+
+ @property
+ def jstor(self):
+ """Gets the jstor of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The jstor of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._jstor
+
+ @jstor.setter
+ def jstor(self, jstor):
+ """Sets the jstor of this ReleaseExtIds.
+
+
+ :param jstor: The jstor of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._jstor = jstor
+
+ @property
+ def ark(self):
+ """Gets the ark of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The ark of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._ark
+
+ @ark.setter
+ def ark(self, ark):
+ """Sets the ark of this ReleaseExtIds.
+
+
+ :param ark: The ark of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._ark = ark
+
+ @property
+ def mag(self):
+ """Gets the mag of this ReleaseExtIds. # noqa: E501
+
+
+ :return: The mag of this ReleaseExtIds. # noqa: E501
+ :rtype: str
+ """
+ return self._mag
+
+ @mag.setter
+ def mag(self, mag):
+ """Sets the mag of this ReleaseExtIds.
+
+
+ :param mag: The mag of this ReleaseExtIds. # noqa: E501
+ :type: str
+ """
+
+ self._mag = mag
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseExtIds):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_ref.py b/python_openapi_client/fatcat_openapi_client/models/release_ref.py
new file mode 100644
index 00000000..ed44158b
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/release_ref.py
@@ -0,0 +1,302 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class ReleaseRef(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'index': 'int',
+ 'target_release_id': 'str',
+ 'extra': 'object',
+ 'key': 'str',
+ 'year': 'int',
+ 'container_name': 'str',
+ 'title': 'str',
+ 'locator': 'str'
+ }
+
+ attribute_map = {
+ 'index': 'index',
+ 'target_release_id': 'target_release_id',
+ 'extra': 'extra',
+ 'key': 'key',
+ 'year': 'year',
+ 'container_name': 'container_name',
+ 'title': 'title',
+ 'locator': 'locator'
+ }
+
+ def __init__(self, index=None, target_release_id=None, extra=None, key=None, year=None, container_name=None, title=None, locator=None): # noqa: E501
+ """ReleaseRef - a model defined in Swagger""" # noqa: E501
+
+ self._index = None
+ self._target_release_id = None
+ self._extra = None
+ self._key = None
+ self._year = None
+ self._container_name = 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 extra is not None:
+ self.extra = extra
+ if key is not None:
+ self.key = key
+ if year is not None:
+ self.year = year
+ if container_name is not None:
+ self.container_name = container_name
+ if title is not None:
+ self.title = title
+ if locator is not None:
+ self.locator = locator
+
+ @property
+ def index(self):
+ """Gets the index of this ReleaseRef. # noqa: E501
+
+
+ :return: The index of this ReleaseRef. # noqa: E501
+ :rtype: int
+ """
+ return self._index
+
+ @index.setter
+ def index(self, index):
+ """Sets the index of this ReleaseRef.
+
+
+ :param index: The index of this ReleaseRef. # noqa: E501
+ :type: int
+ """
+
+ self._index = index
+
+ @property
+ def target_release_id(self):
+ """Gets the target_release_id of this ReleaseRef. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The target_release_id of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._target_release_id
+
+ @target_release_id.setter
+ def target_release_id(self, target_release_id):
+ """Sets the target_release_id of this ReleaseRef.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param target_release_id: The target_release_id of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+ if target_release_id is not None and len(target_release_id) > 26:
+ raise ValueError("Invalid value for `target_release_id`, length must be less than or equal to `26`") # noqa: E501
+ if target_release_id is not None and len(target_release_id) < 26:
+ raise ValueError("Invalid value for `target_release_id`, length must be greater than or equal to `26`") # noqa: E501
+ if target_release_id is not None and not re.search('[a-zA-Z2-7]{26}', target_release_id): # noqa: E501
+ raise ValueError("Invalid value for `target_release_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._target_release_id = target_release_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this ReleaseRef. # noqa: E501
+
+
+ :return: The extra of this ReleaseRef. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ReleaseRef.
+
+
+ :param extra: The extra of this ReleaseRef. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @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_name(self):
+ """Gets the container_name of this ReleaseRef. # noqa: E501
+
+
+ :return: The container_name of this ReleaseRef. # noqa: E501
+ :rtype: str
+ """
+ return self._container_name
+
+ @container_name.setter
+ def container_name(self, container_name):
+ """Sets the container_name of this ReleaseRef.
+
+
+ :param container_name: The container_name of this ReleaseRef. # noqa: E501
+ :type: str
+ """
+
+ self._container_name = container_name
+
+ @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"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ReleaseRef):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/success.py b/python_openapi_client/fatcat_openapi_client/models/success.py
new file mode 100644
index 00000000..337efebb
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/success.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class Success(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'success': 'bool',
+ 'message': 'str'
+ }
+
+ attribute_map = {
+ 'success': 'success',
+ 'message': 'message'
+ }
+
+ def __init__(self, success=None, message=None): # noqa: E501
+ """Success - a model defined in Swagger""" # noqa: E501
+
+ self._success = None
+ self._message = None
+ self.discriminator = None
+
+ self.success = success
+ self.message = message
+
+ @property
+ def success(self):
+ """Gets the success of this Success. # noqa: E501
+
+
+ :return: The success of this Success. # noqa: E501
+ :rtype: bool
+ """
+ return self._success
+
+ @success.setter
+ def success(self, success):
+ """Sets the success of this Success.
+
+
+ :param success: The success of this Success. # noqa: E501
+ :type: bool
+ """
+ if success is None:
+ raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
+
+ self._success = success
+
+ @property
+ def message(self):
+ """Gets the message of this Success. # noqa: E501
+
+
+ :return: The message of this Success. # noqa: E501
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """Sets the message of this Success.
+
+
+ :param message: The message of this Success. # noqa: E501
+ :type: str
+ """
+ if message is None:
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
+
+ self._message = message
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Success):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py
new file mode 100644
index 00000000..cc968f8b
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
+
+
+class WebcaptureAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[WebcaptureEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """WebcaptureAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this WebcaptureAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this WebcaptureAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this WebcaptureAutoBatch.
+
+
+ :param editgroup: The editgroup of this WebcaptureAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this WebcaptureAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this WebcaptureAutoBatch. # noqa: E501
+ :rtype: list[WebcaptureEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this WebcaptureAutoBatch.
+
+
+ :param entity_list: The entity_list of this WebcaptureAutoBatch. # noqa: E501
+ :type: list[WebcaptureEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WebcaptureAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py
new file mode 100644
index 00000000..623607ba
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py
@@ -0,0 +1,312 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureCdxLine(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'surt': 'str',
+ 'timestamp': 'datetime',
+ 'url': 'str',
+ 'mimetype': 'str',
+ 'status_code': 'int',
+ 'size': 'int',
+ 'sha1': 'str',
+ 'sha256': 'str'
+ }
+
+ attribute_map = {
+ 'surt': 'surt',
+ 'timestamp': 'timestamp',
+ 'url': 'url',
+ 'mimetype': 'mimetype',
+ 'status_code': 'status_code',
+ 'size': 'size',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256'
+ }
+
+ def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, size=None, sha1=None, sha256=None): # noqa: E501
+ """WebcaptureCdxLine - a model defined in Swagger""" # noqa: E501
+
+ self._surt = None
+ self._timestamp = None
+ self._url = None
+ self._mimetype = None
+ self._status_code = None
+ self._size = None
+ self._sha1 = None
+ self._sha256 = None
+ self.discriminator = None
+
+ self.surt = surt
+ self.timestamp = timestamp
+ self.url = url
+ if mimetype is not None:
+ self.mimetype = mimetype
+ if status_code is not None:
+ self.status_code = status_code
+ if size is not None:
+ self.size = size
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+
+ @property
+ def surt(self):
+ """Gets the surt of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The surt of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._surt
+
+ @surt.setter
+ def surt(self, surt):
+ """Sets the surt of this WebcaptureCdxLine.
+
+
+ :param surt: The surt of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if surt is None:
+ raise ValueError("Invalid value for `surt`, must not be `None`") # noqa: E501
+
+ self._surt = surt
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this WebcaptureCdxLine. # noqa: E501
+
+ UTC, 'Z'-terminated, second (or better) precision # noqa: E501
+
+ :return: The timestamp of this WebcaptureCdxLine. # noqa: E501
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this WebcaptureCdxLine.
+
+ UTC, 'Z'-terminated, second (or better) precision # noqa: E501
+
+ :param timestamp: The timestamp of this WebcaptureCdxLine. # noqa: E501
+ :type: datetime
+ """
+ if timestamp is None:
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
+
+ self._timestamp = timestamp
+
+ @property
+ def url(self):
+ """Gets the url of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The url of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureCdxLine.
+
+
+ :param url: The url of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def mimetype(self):
+ """Gets the mimetype of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The mimetype of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this WebcaptureCdxLine.
+
+
+ :param mimetype: The mimetype of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
+ def status_code(self):
+ """Gets the status_code of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The status_code of this WebcaptureCdxLine. # noqa: E501
+ :rtype: int
+ """
+ return self._status_code
+
+ @status_code.setter
+ def status_code(self, status_code):
+ """Sets the status_code of this WebcaptureCdxLine.
+
+
+ :param status_code: The status_code of this WebcaptureCdxLine. # noqa: E501
+ :type: int
+ """
+
+ self._status_code = status_code
+
+ @property
+ def size(self):
+ """Gets the size of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The size of this WebcaptureCdxLine. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this WebcaptureCdxLine.
+
+
+ :param size: The size of this WebcaptureCdxLine. # noqa: E501
+ :type: int
+ """
+
+ self._size = size
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The sha1 of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this WebcaptureCdxLine.
+
+
+ :param sha1: The sha1 of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if sha1 is None:
+ raise ValueError("Invalid value for `sha1`, must not be `None`") # noqa: E501
+ if sha1 is not None and len(sha1) > 40:
+ raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
+ if sha1 is not None and len(sha1) < 40:
+ raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
+ if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this WebcaptureCdxLine. # noqa: E501
+
+
+ :return: The sha256 of this WebcaptureCdxLine. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this WebcaptureCdxLine.
+
+
+ :param sha256: The sha256 of this WebcaptureCdxLine. # noqa: E501
+ :type: str
+ """
+ if sha256 is not None and len(sha256) > 64:
+ raise ValueError("Invalid value for `sha256`, length must be less than or equal to `64`") # noqa: E501
+ if sha256 is not None and len(sha256) < 64:
+ raise ValueError("Invalid value for `sha256`, length must be greater than or equal to `64`") # noqa: E501
+ if sha256 is not None and not re.search('[a-f0-9]{64}', sha256): # noqa: E501
+ raise ValueError("Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
+
+ self._sha256 = sha256
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WebcaptureCdxLine):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py
new file mode 100644
index 00000000..af4748c5
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py
@@ -0,0 +1,435 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
+from fatcat_openapi_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501
+
+
+class WebcaptureEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'releases': 'list[ReleaseEntity]',
+ 'release_ids': 'list[str]',
+ 'timestamp': 'datetime',
+ 'original_url': 'str',
+ 'archive_urls': 'list[WebcaptureUrl]',
+ 'cdx': 'list[WebcaptureCdxLine]',
+ 'edit_extra': 'object',
+ 'extra': 'object',
+ 'redirect': 'str',
+ 'revision': 'str',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'releases': 'releases',
+ 'release_ids': 'release_ids',
+ 'timestamp': 'timestamp',
+ 'original_url': 'original_url',
+ 'archive_urls': 'archive_urls',
+ 'cdx': 'cdx',
+ 'edit_extra': 'edit_extra',
+ 'extra': 'extra',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, releases=None, release_ids=None, timestamp=None, original_url=None, archive_urls=None, cdx=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """WebcaptureEntity - a model defined in Swagger""" # noqa: E501
+
+ self._releases = None
+ self._release_ids = None
+ self._timestamp = None
+ self._original_url = None
+ self._archive_urls = None
+ self._cdx = None
+ self._edit_extra = None
+ self._extra = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if releases is not None:
+ self.releases = releases
+ if release_ids is not None:
+ self.release_ids = release_ids
+ if timestamp is not None:
+ self.timestamp = timestamp
+ if original_url is not None:
+ self.original_url = original_url
+ if archive_urls is not None:
+ self.archive_urls = archive_urls
+ if cdx is not None:
+ self.cdx = cdx
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if extra is not None:
+ self.extra = extra
+ if redirect is not None:
+ self.redirect = redirect
+ if revision is not None:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def releases(self):
+ """Gets the releases of this WebcaptureEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The releases of this WebcaptureEntity. # noqa: E501
+ :rtype: list[ReleaseEntity]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this WebcaptureEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param releases: The releases of this WebcaptureEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
+
+ @property
+ def release_ids(self):
+ """Gets the release_ids of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The release_ids of this WebcaptureEntity. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._release_ids
+
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this WebcaptureEntity.
+
+
+ :param release_ids: The release_ids of this WebcaptureEntity. # noqa: E501
+ :type: list[str]
+ """
+
+ self._release_ids = release_ids
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this WebcaptureEntity. # noqa: E501
+
+ same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Can be the earliest or average of CDX timestamps if that makes sense. # noqa: E501
+
+ :return: The timestamp of this WebcaptureEntity. # noqa: E501
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this WebcaptureEntity.
+
+ same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Can be the earliest or average of CDX timestamps if that makes sense. # noqa: E501
+
+ :param timestamp: The timestamp of this WebcaptureEntity. # noqa: E501
+ :type: datetime
+ """
+
+ self._timestamp = timestamp
+
+ @property
+ def original_url(self):
+ """Gets the original_url of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The original_url of this WebcaptureEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._original_url
+
+ @original_url.setter
+ def original_url(self, original_url):
+ """Sets the original_url of this WebcaptureEntity.
+
+
+ :param original_url: The original_url of this WebcaptureEntity. # noqa: E501
+ :type: str
+ """
+
+ self._original_url = original_url
+
+ @property
+ def archive_urls(self):
+ """Gets the archive_urls of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The archive_urls of this WebcaptureEntity. # noqa: E501
+ :rtype: list[WebcaptureUrl]
+ """
+ return self._archive_urls
+
+ @archive_urls.setter
+ def archive_urls(self, archive_urls):
+ """Sets the archive_urls of this WebcaptureEntity.
+
+
+ :param archive_urls: The archive_urls of this WebcaptureEntity. # noqa: E501
+ :type: list[WebcaptureUrl]
+ """
+
+ self._archive_urls = archive_urls
+
+ @property
+ def cdx(self):
+ """Gets the cdx of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The cdx of this WebcaptureEntity. # noqa: E501
+ :rtype: list[WebcaptureCdxLine]
+ """
+ return self._cdx
+
+ @cdx.setter
+ def cdx(self, cdx):
+ """Sets the cdx of this WebcaptureEntity.
+
+
+ :param cdx: The cdx of this WebcaptureEntity. # noqa: E501
+ :type: list[WebcaptureCdxLine]
+ """
+
+ self._cdx = cdx
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The edit_extra of this WebcaptureEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this WebcaptureEntity.
+
+
+ :param edit_extra: The edit_extra of this WebcaptureEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ @property
+ def extra(self):
+ """Gets the extra of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The extra of this WebcaptureEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this WebcaptureEntity.
+
+
+ :param extra: The extra of this WebcaptureEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this WebcaptureEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this WebcaptureEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this WebcaptureEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this WebcaptureEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this WebcaptureEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this WebcaptureEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this WebcaptureEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this WebcaptureEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this WebcaptureEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this WebcaptureEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this WebcaptureEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this WebcaptureEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this WebcaptureEntity. # noqa: E501
+
+
+ :return: The state of this WebcaptureEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this WebcaptureEntity.
+
+
+ :param state: The state of this WebcaptureEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WebcaptureEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_url.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_url.py
new file mode 100644
index 00000000..9d6f1e21
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_url.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureUrl(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'url': 'str',
+ 'rel': 'str'
+ }
+
+ attribute_map = {
+ 'url': 'url',
+ 'rel': 'rel'
+ }
+
+ def __init__(self, url=None, rel=None): # noqa: E501
+ """WebcaptureUrl - a model defined in Swagger""" # noqa: E501
+
+ self._url = None
+ self._rel = None
+ self.discriminator = None
+
+ self.url = url
+ self.rel = rel
+
+ @property
+ def url(self):
+ """Gets the url of this WebcaptureUrl. # noqa: E501
+
+
+ :return: The url of this WebcaptureUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureUrl.
+
+
+ :param url: The url of this WebcaptureUrl. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def rel(self):
+ """Gets the rel of this WebcaptureUrl. # noqa: E501
+
+
+ :return: The rel of this WebcaptureUrl. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this WebcaptureUrl.
+
+
+ :param rel: The rel of this WebcaptureUrl. # noqa: E501
+ :type: str
+ """
+ if rel is None:
+ raise ValueError("Invalid value for `rel`, must not be `None`") # noqa: E501
+
+ self._rel = rel
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WebcaptureUrl):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py
new file mode 100644
index 00000000..76a8ae1e
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
+from fatcat_openapi_client.models.work_entity import WorkEntity # noqa: F401,E501
+
+
+class WorkAutoBatch(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'editgroup': 'Editgroup',
+ 'entity_list': 'list[WorkEntity]'
+ }
+
+ attribute_map = {
+ 'editgroup': 'editgroup',
+ 'entity_list': 'entity_list'
+ }
+
+ def __init__(self, editgroup=None, entity_list=None): # noqa: E501
+ """WorkAutoBatch - a model defined in Swagger""" # noqa: E501
+
+ self._editgroup = None
+ self._entity_list = None
+ self.discriminator = None
+
+ self.editgroup = editgroup
+ self.entity_list = entity_list
+
+ @property
+ def editgroup(self):
+ """Gets the editgroup of this WorkAutoBatch. # noqa: E501
+
+
+ :return: The editgroup of this WorkAutoBatch. # noqa: E501
+ :rtype: Editgroup
+ """
+ return self._editgroup
+
+ @editgroup.setter
+ def editgroup(self, editgroup):
+ """Sets the editgroup of this WorkAutoBatch.
+
+
+ :param editgroup: The editgroup of this WorkAutoBatch. # noqa: E501
+ :type: Editgroup
+ """
+ if editgroup is None:
+ raise ValueError("Invalid value for `editgroup`, must not be `None`") # noqa: E501
+
+ self._editgroup = editgroup
+
+ @property
+ def entity_list(self):
+ """Gets the entity_list of this WorkAutoBatch. # noqa: E501
+
+
+ :return: The entity_list of this WorkAutoBatch. # noqa: E501
+ :rtype: list[WorkEntity]
+ """
+ return self._entity_list
+
+ @entity_list.setter
+ def entity_list(self, entity_list):
+ """Sets the entity_list of this WorkAutoBatch.
+
+
+ :param entity_list: The entity_list of this WorkAutoBatch. # noqa: E501
+ :type: list[WorkEntity]
+ """
+ if entity_list is None:
+ raise ValueError("Invalid value for `entity_list`, must not be `None`") # noqa: E501
+
+ self._entity_list = entity_list
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WorkAutoBatch):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/models/work_entity.py b/python_openapi_client/fatcat_openapi_client/models/work_entity.py
new file mode 100644
index 00000000..80cb2330
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/models/work_entity.py
@@ -0,0 +1,272 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WorkEntity(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edit_extra': 'object',
+ 'extra': 'object',
+ 'redirect': 'str',
+ 'revision': 'str',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ 'edit_extra': 'edit_extra',
+ 'extra': 'extra',
+ 'redirect': 'redirect',
+ 'revision': 'revision',
+ 'ident': 'ident',
+ 'state': 'state'
+ }
+
+ def __init__(self, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ """WorkEntity - a model defined in Swagger""" # noqa: E501
+
+ self._edit_extra = None
+ self._extra = None
+ self._redirect = None
+ self._revision = None
+ self._ident = None
+ self._state = None
+ self.discriminator = None
+
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if extra is not None:
+ self.extra = extra
+ if redirect is not None:
+ self.redirect = redirect
+ if revision is not None:
+ self.revision = revision
+ if ident is not None:
+ self.ident = ident
+ if state is not None:
+ self.state = state
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this WorkEntity. # noqa: E501
+
+
+ :return: The edit_extra of this WorkEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this WorkEntity.
+
+
+ :param edit_extra: The edit_extra of this WorkEntity. # noqa: E501
+ :type: object
+ """
+
+ self._edit_extra = edit_extra
+
+ @property
+ def extra(self):
+ """Gets the extra of this WorkEntity. # noqa: E501
+
+
+ :return: The extra of this WorkEntity. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this WorkEntity.
+
+
+ :param extra: The extra of this WorkEntity. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ @property
+ def redirect(self):
+ """Gets the redirect of this WorkEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The redirect of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._redirect
+
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this WorkEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param redirect: The redirect of this WorkEntity. # noqa: E501
+ :type: str
+ """
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._redirect = redirect
+
+ @property
+ def revision(self):
+ """Gets the revision of this WorkEntity. # noqa: E501
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :return: The revision of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._revision
+
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this WorkEntity.
+
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+
+ :param revision: The revision of this WorkEntity. # noqa: E501
+ :type: str
+ """
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+
+ self._revision = revision
+
+ @property
+ def ident(self):
+ """Gets the ident of this WorkEntity. # noqa: E501
+
+ base32-encoded unique identifier # noqa: E501
+
+ :return: The ident of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._ident
+
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this WorkEntity.
+
+ base32-encoded unique identifier # noqa: E501
+
+ :param ident: The ident of this WorkEntity. # noqa: E501
+ :type: str
+ """
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+
+ self._ident = ident
+
+ @property
+ def state(self):
+ """Gets the state of this WorkEntity. # noqa: E501
+
+
+ :return: The state of this WorkEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._state
+
+ @state.setter
+ def state(self, state):
+ """Sets the state of this WorkEntity.
+
+
+ :param state: The state of this WorkEntity. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
+
+ self._state = state
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WorkEntity):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/python_openapi_client/fatcat_openapi_client/rest.py b/python_openapi_client/fatcat_openapi_client/rest.py
new file mode 100644
index 00000000..59ce1b74
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/rest.py
@@ -0,0 +1,323 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import io
+import json
+import logging
+import re
+import ssl
+
+import certifi
+# python 2 and python 3 compatibility library
+import six
+from six.moves.urllib.parse import urlencode
+
+try:
+ import urllib3
+except ImportError:
+ raise ImportError('Swagger python client requires urllib3.')
+
+
+logger = logging.getLogger(__name__)
+
+
+class RESTResponse(io.IOBase):
+
+ def __init__(self, resp):
+ self.urllib3_response = resp
+ self.status = resp.status
+ self.reason = resp.reason
+ self.data = resp.data
+
+ def getheaders(self):
+ """Returns a dictionary of the response headers."""
+ return self.urllib3_response.getheaders()
+
+ def getheader(self, name, default=None):
+ """Returns a given response header."""
+ return self.urllib3_response.getheader(name, default)
+
+
+class RESTClientObject(object):
+
+ def __init__(self, configuration, pools_size=4, maxsize=None):
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
+ # maxsize is the number of requests to host that are allowed in parallel # noqa: E501
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
+
+ # cert_reqs
+ if configuration.verify_ssl:
+ cert_reqs = ssl.CERT_REQUIRED
+ else:
+ cert_reqs = ssl.CERT_NONE
+
+ # ca_certs
+ if configuration.ssl_ca_cert:
+ ca_certs = configuration.ssl_ca_cert
+ else:
+ # if not set certificate file, use Mozilla's root certificates.
+ ca_certs = certifi.where()
+
+ addition_pool_args = {}
+ if configuration.assert_hostname is not None:
+ addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
+
+ if maxsize is None:
+ if configuration.connection_pool_maxsize is not None:
+ maxsize = configuration.connection_pool_maxsize
+ else:
+ maxsize = 4
+
+ # https pool manager
+ if configuration.proxy:
+ self.pool_manager = urllib3.ProxyManager(
+ num_pools=pools_size,
+ maxsize=maxsize,
+ cert_reqs=cert_reqs,
+ ca_certs=ca_certs,
+ cert_file=configuration.cert_file,
+ key_file=configuration.key_file,
+ proxy_url=configuration.proxy,
+ **addition_pool_args
+ )
+ else:
+ self.pool_manager = urllib3.PoolManager(
+ num_pools=pools_size,
+ maxsize=maxsize,
+ cert_reqs=cert_reqs,
+ ca_certs=ca_certs,
+ cert_file=configuration.cert_file,
+ key_file=configuration.key_file,
+ **addition_pool_args
+ )
+
+ def request(self, method, url, query_params=None, headers=None,
+ body=None, post_params=None, _preload_content=True,
+ _request_timeout=None):
+ """Perform requests.
+
+ :param method: http request method
+ :param url: http request url
+ :param query_params: query parameters in the url
+ :param headers: http request headers
+ :param body: request json body, for `application/json`
+ :param post_params: request post parameters,
+ `application/x-www-form-urlencoded`
+ and `multipart/form-data`
+ :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.
+ """
+ method = method.upper()
+ assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
+ 'PATCH', 'OPTIONS']
+
+ if post_params and body:
+ raise ValueError(
+ "body parameter cannot be used with post_params parameter."
+ )
+
+ post_params = post_params or {}
+ headers = headers or {}
+
+ timeout = None
+ if _request_timeout:
+ if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821
+ timeout = urllib3.Timeout(total=_request_timeout)
+ elif (isinstance(_request_timeout, tuple) and
+ len(_request_timeout) == 2):
+ timeout = urllib3.Timeout(
+ connect=_request_timeout[0], read=_request_timeout[1])
+
+ if 'Content-Type' not in headers:
+ headers['Content-Type'] = 'application/json'
+
+ try:
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
+ if query_params:
+ url += '?' + urlencode(query_params)
+ if re.search('json', headers['Content-Type'], re.IGNORECASE):
+ request_body = None
+ if body is not None:
+ request_body = json.dumps(body)
+ r = self.pool_manager.request(
+ method, url,
+ body=request_body,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
+ r = self.pool_manager.request(
+ method, url,
+ fields=post_params,
+ encode_multipart=False,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ elif headers['Content-Type'] == 'multipart/form-data':
+ # must del headers['Content-Type'], or the correct
+ # Content-Type which generated by urllib3 will be
+ # overwritten.
+ del headers['Content-Type']
+ r = self.pool_manager.request(
+ method, url,
+ fields=post_params,
+ encode_multipart=True,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ # Pass a `string` parameter directly in the body to support
+ # other content types than Json when `body` argument is
+ # provided in serialized form
+ elif isinstance(body, str):
+ request_body = body
+ r = self.pool_manager.request(
+ method, url,
+ body=request_body,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ else:
+ # Cannot generate the request from given parameters
+ msg = """Cannot prepare a request message for provided
+ arguments. Please check that your arguments match
+ declared content type."""
+ raise ApiException(status=0, reason=msg)
+ # For `GET`, `HEAD`
+ else:
+ r = self.pool_manager.request(method, url,
+ fields=query_params,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ except urllib3.exceptions.SSLError as e:
+ msg = "{0}\n{1}".format(type(e).__name__, str(e))
+ raise ApiException(status=0, reason=msg)
+
+ if _preload_content:
+ r = RESTResponse(r)
+
+ # In the python 3, the response.data is bytes.
+ # we need to decode it to string.
+ if six.PY3:
+ r.data = r.data.decode('utf8')
+
+ # log response body
+ logger.debug("response body: %s", r.data)
+
+ if not 200 <= r.status <= 299:
+ raise ApiException(http_resp=r)
+
+ return r
+
+ def GET(self, url, headers=None, query_params=None, _preload_content=True,
+ _request_timeout=None):
+ return self.request("GET", url,
+ headers=headers,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ query_params=query_params)
+
+ def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
+ _request_timeout=None):
+ return self.request("HEAD", url,
+ headers=headers,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ query_params=query_params)
+
+ def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("OPTIONS", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def DELETE(self, url, headers=None, query_params=None, body=None,
+ _preload_content=True, _request_timeout=None):
+ return self.request("DELETE", url,
+ headers=headers,
+ query_params=query_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def POST(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("POST", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def PUT(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("PUT", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def PATCH(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("PATCH", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+
+class ApiException(Exception):
+
+ def __init__(self, status=None, reason=None, http_resp=None):
+ if http_resp:
+ self.status = http_resp.status
+ self.reason = http_resp.reason
+ self.body = http_resp.data
+ self.headers = http_resp.getheaders()
+ else:
+ self.status = status
+ self.reason = reason
+ self.body = None
+ self.headers = None
+
+ def __str__(self):
+ """Custom error messages for exception"""
+ error_message = "({0})\n"\
+ "Reason: {1}\n".format(self.status, self.reason)
+ if self.headers:
+ error_message += "HTTP response headers: {0}\n".format(
+ self.headers)
+
+ if self.body:
+ error_message += "HTTP response body: {0}\n".format(self.body)
+
+ return error_message
diff --git a/python_openapi_client/pytest.ini b/python_openapi_client/pytest.ini
new file mode 100644
index 00000000..98e77c63
--- /dev/null
+++ b/python_openapi_client/pytest.ini
@@ -0,0 +1,10 @@
+
+[pytest]
+
+ignore = setup.py
+
+# allow imports from files in current directory
+python_paths = fatcat_openapi_client, tests
+
+# search for 'test_*' functions in all python files, not just under tests
+python_files = *.py
diff --git a/python_openapi_client/setup.py b/python_openapi_client/setup.py
new file mode 100644
index 00000000..a7809ab2
--- /dev/null
+++ b/python_openapi_client/setup.py
@@ -0,0 +1,139 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+# Based on: https://github.com/kennethreitz/setup.py
+# This setup.py is intended to package *only* the fatcat_openapi_client module.
+
+# Note: To use the 'upload' functionality of this file, you must:
+# $ pip install twine
+
+import io
+import os
+import sys
+from shutil import rmtree
+
+from setuptools import find_packages, setup, Command
+
+# Package meta-data.
+NAME = 'fatcat_openapi_client'
+DESCRIPTION = 'API client library for fatcat.wiki (a bibliographic catalog)'
+URL = 'https://github.com/internetarchive/fatcat'
+EMAIL = 'bnewbold@archive.org'
+AUTHOR = 'Bryan Newbold'
+REQUIRES_PYTHON = '>=3.4.0'
+VERSION = None
+LICENSE = "CC-0"
+
+# What packages are required for this module to be executed?
+REQUIRED = [
+ "urllib3 >= 1.15",
+ "six >= 1.10",
+ "certifi",
+ "python-dateutil",
+]
+
+# What packages are optional?
+EXTRAS = {
+ # 'fancy feature': ['django'],
+}
+
+# The rest you shouldn't have to touch too much :)
+# ------------------------------------------------
+# Except, perhaps the License and Trove Classifiers!
+# If you do change the License, remember to change the Trove Classifier for that!
+
+here = os.path.abspath(os.path.dirname(__file__))
+
+# Import the README and use it as the long-description.
+# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
+try:
+ with io.open(os.path.join(here, './README.md'), encoding='utf-8') as f:
+ long_description = '\n' + f.read()
+except FileNotFoundError:
+ long_description = DESCRIPTION
+
+# Load the package's __version__.py module as a dictionary.
+about = {}
+if not VERSION:
+ with open(os.path.join(here, NAME, '__version__.py')) as f:
+ exec(f.read(), about)
+else:
+ about['__version__'] = VERSION
+
+
+class UploadCommand(Command):
+ """Support setup.py upload."""
+
+ description = 'Build and publish the package.'
+ user_options = []
+
+ @staticmethod
+ def status(s):
+ """Prints things in bold."""
+ print('\033[1m{0}\033[0m'.format(s))
+
+ def initialize_options(self):
+ pass
+
+ def finalize_options(self):
+ pass
+
+ def run(self):
+ try:
+ self.status('Removing previous builds…')
+ rmtree(os.path.join(here, 'dist'))
+ except OSError:
+ pass
+
+ self.status('Building Source and Wheel (universal) distribution…')
+ os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))
+
+ self.status('Uploading the package to PyPI via Twine…')
+ os.system('twine upload dist/*')
+
+ self.status('Pushing git tags…')
+ os.system('git tag v{0}'.format(about['__version__']))
+ os.system('git push --tags')
+
+ sys.exit()
+
+
+# Where the magic happens:
+setup(
+ name=NAME,
+ version=about['__version__'],
+ description=DESCRIPTION,
+ long_description=long_description,
+ long_description_content_type='text/markdown',
+ keywords=["Swagger", "fatcat"],
+ author=AUTHOR,
+ author_email=EMAIL,
+ python_requires=REQUIRES_PYTHON,
+ url=URL,
+ packages=find_packages(exclude=('tests')),
+ # If your package is a single module, use this instead of 'packages':
+ #py_modules=['fatcat_openapi_client'],
+ # entry_points={
+ # 'console_scripts': ['mycli=mymodule:cli'],
+ # },
+ install_requires=REQUIRED,
+ extras_require=EXTRAS,
+ include_package_data=True,
+ license=LICENSE,
+ classifiers=[
+ # Trove classifiers
+ # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
+ #'License :: OSI Approved :: MIT License',
+ 'Development Status :: 3 - Alpha',
+ 'Intended Audience :: Developers',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.5',
+ #'Programming Language :: Python :: Implementation :: CPython',
+ #'Programming Language :: Python :: Implementation :: PyPy'
+ ],
+ # $ setup.py publish support.
+ cmdclass={
+ 'upload': UploadCommand,
+ },
+)
diff --git a/python_openapi_client/tests/codegen/__init__.py b/python_openapi_client/tests/codegen/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/python_openapi_client/tests/codegen/__init__.py
diff --git a/python_openapi_client/tests/codegen/test_auth_oidc.py b/python_openapi_client/tests/codegen/test_auth_oidc.py
new file mode 100644
index 00000000..489cac61
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_auth_oidc.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.auth_oidc import AuthOidc # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestAuthOidc(unittest.TestCase):
+ """AuthOidc unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testAuthOidc(self):
+ """Test AuthOidc"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.auth_oidc.AuthOidc() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_auth_oidc_result.py b/python_openapi_client/tests/codegen/test_auth_oidc_result.py
new file mode 100644
index 00000000..5962d954
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_auth_oidc_result.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.auth_oidc_result import AuthOidcResult # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestAuthOidcResult(unittest.TestCase):
+ """AuthOidcResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testAuthOidcResult(self):
+ """Test AuthOidcResult"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.auth_oidc_result.AuthOidcResult() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_changelog_entry.py b/python_openapi_client/tests/codegen/test_changelog_entry.py
new file mode 100644
index 00000000..813307a6
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_changelog_entry.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.changelog_entry import ChangelogEntry # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestChangelogEntry(unittest.TestCase):
+ """ChangelogEntry unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testChangelogEntry(self):
+ """Test ChangelogEntry"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.changelog_entry.ChangelogEntry() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_container_auto_batch.py b/python_openapi_client/tests/codegen/test_container_auto_batch.py
new file mode 100644
index 00000000..8eba8a6d
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_container_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.container_auto_batch import ContainerAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestContainerAutoBatch(unittest.TestCase):
+ """ContainerAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testContainerAutoBatch(self):
+ """Test ContainerAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.container_auto_batch.ContainerAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_container_entity.py b/python_openapi_client/tests/codegen/test_container_entity.py
new file mode 100644
index 00000000..32771475
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_container_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.container_entity import ContainerEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestContainerEntity(unittest.TestCase):
+ """ContainerEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testContainerEntity(self):
+ """Test ContainerEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.container_entity.ContainerEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_creator_auto_batch.py b/python_openapi_client/tests/codegen/test_creator_auto_batch.py
new file mode 100644
index 00000000..9181c098
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_creator_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.creator_auto_batch import CreatorAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestCreatorAutoBatch(unittest.TestCase):
+ """CreatorAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testCreatorAutoBatch(self):
+ """Test CreatorAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.creator_auto_batch.CreatorAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_creator_entity.py b/python_openapi_client/tests/codegen/test_creator_entity.py
new file mode 100644
index 00000000..2b55ff26
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_creator_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.creator_entity import CreatorEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestCreatorEntity(unittest.TestCase):
+ """CreatorEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testCreatorEntity(self):
+ """Test CreatorEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.creator_entity.CreatorEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_default_api.py b/python_openapi_client/tests/codegen/test_default_api.py
new file mode 100644
index 00000000..3ea87237
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_default_api.py
@@ -0,0 +1,598 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.api.default_api import DefaultApi # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestDefaultApi(unittest.TestCase):
+ """DefaultApi unit test stubs"""
+
+ def setUp(self):
+ self.api = fatcat_openapi_client.api.default_api.DefaultApi() # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_accept_editgroup(self):
+ """Test case for accept_editgroup
+
+ """
+ pass
+
+ def test_auth_check(self):
+ """Test case for auth_check
+
+ """
+ pass
+
+ def test_auth_oidc(self):
+ """Test case for auth_oidc
+
+ """
+ pass
+
+ def test_create_container(self):
+ """Test case for create_container
+
+ """
+ pass
+
+ def test_create_container_auto_batch(self):
+ """Test case for create_container_auto_batch
+
+ """
+ pass
+
+ def test_create_creator(self):
+ """Test case for create_creator
+
+ """
+ pass
+
+ def test_create_creator_auto_batch(self):
+ """Test case for create_creator_auto_batch
+
+ """
+ pass
+
+ def test_create_editgroup(self):
+ """Test case for create_editgroup
+
+ """
+ pass
+
+ def test_create_editgroup_annotation(self):
+ """Test case for create_editgroup_annotation
+
+ """
+ pass
+
+ def test_create_file(self):
+ """Test case for create_file
+
+ """
+ pass
+
+ def test_create_file_auto_batch(self):
+ """Test case for create_file_auto_batch
+
+ """
+ pass
+
+ def test_create_fileset(self):
+ """Test case for create_fileset
+
+ """
+ pass
+
+ def test_create_fileset_auto_batch(self):
+ """Test case for create_fileset_auto_batch
+
+ """
+ pass
+
+ def test_create_release(self):
+ """Test case for create_release
+
+ """
+ pass
+
+ def test_create_release_auto_batch(self):
+ """Test case for create_release_auto_batch
+
+ """
+ pass
+
+ def test_create_webcapture(self):
+ """Test case for create_webcapture
+
+ """
+ pass
+
+ def test_create_webcapture_auto_batch(self):
+ """Test case for create_webcapture_auto_batch
+
+ """
+ pass
+
+ def test_create_work(self):
+ """Test case for create_work
+
+ """
+ pass
+
+ def test_create_work_auto_batch(self):
+ """Test case for create_work_auto_batch
+
+ """
+ pass
+
+ def test_delete_container(self):
+ """Test case for delete_container
+
+ """
+ pass
+
+ def test_delete_container_edit(self):
+ """Test case for delete_container_edit
+
+ """
+ pass
+
+ def test_delete_creator(self):
+ """Test case for delete_creator
+
+ """
+ pass
+
+ def test_delete_creator_edit(self):
+ """Test case for delete_creator_edit
+
+ """
+ pass
+
+ def test_delete_file(self):
+ """Test case for delete_file
+
+ """
+ pass
+
+ def test_delete_file_edit(self):
+ """Test case for delete_file_edit
+
+ """
+ pass
+
+ def test_delete_fileset(self):
+ """Test case for delete_fileset
+
+ """
+ pass
+
+ def test_delete_fileset_edit(self):
+ """Test case for delete_fileset_edit
+
+ """
+ pass
+
+ def test_delete_release(self):
+ """Test case for delete_release
+
+ """
+ pass
+
+ def test_delete_release_edit(self):
+ """Test case for delete_release_edit
+
+ """
+ pass
+
+ def test_delete_webcapture(self):
+ """Test case for delete_webcapture
+
+ """
+ pass
+
+ def test_delete_webcapture_edit(self):
+ """Test case for delete_webcapture_edit
+
+ """
+ pass
+
+ def test_delete_work(self):
+ """Test case for delete_work
+
+ """
+ pass
+
+ def test_delete_work_edit(self):
+ """Test case for delete_work_edit
+
+ """
+ pass
+
+ def test_get_changelog(self):
+ """Test case for get_changelog
+
+ """
+ pass
+
+ def test_get_changelog_entry(self):
+ """Test case for get_changelog_entry
+
+ """
+ pass
+
+ def test_get_container(self):
+ """Test case for get_container
+
+ """
+ pass
+
+ def test_get_container_edit(self):
+ """Test case for get_container_edit
+
+ """
+ pass
+
+ def test_get_container_history(self):
+ """Test case for get_container_history
+
+ """
+ pass
+
+ def test_get_container_redirects(self):
+ """Test case for get_container_redirects
+
+ """
+ pass
+
+ def test_get_container_revision(self):
+ """Test case for get_container_revision
+
+ """
+ pass
+
+ def test_get_creator(self):
+ """Test case for get_creator
+
+ """
+ pass
+
+ def test_get_creator_edit(self):
+ """Test case for get_creator_edit
+
+ """
+ pass
+
+ def test_get_creator_history(self):
+ """Test case for get_creator_history
+
+ """
+ pass
+
+ def test_get_creator_redirects(self):
+ """Test case for get_creator_redirects
+
+ """
+ pass
+
+ def test_get_creator_releases(self):
+ """Test case for get_creator_releases
+
+ """
+ pass
+
+ def test_get_creator_revision(self):
+ """Test case for get_creator_revision
+
+ """
+ pass
+
+ def test_get_editgroup(self):
+ """Test case for get_editgroup
+
+ """
+ pass
+
+ def test_get_editgroup_annotations(self):
+ """Test case for get_editgroup_annotations
+
+ """
+ pass
+
+ def test_get_editgroups_reviewable(self):
+ """Test case for get_editgroups_reviewable
+
+ """
+ pass
+
+ def test_get_editor(self):
+ """Test case for get_editor
+
+ """
+ pass
+
+ def test_get_editor_annotations(self):
+ """Test case for get_editor_annotations
+
+ """
+ pass
+
+ def test_get_editor_editgroups(self):
+ """Test case for get_editor_editgroups
+
+ """
+ pass
+
+ def test_get_file(self):
+ """Test case for get_file
+
+ """
+ pass
+
+ def test_get_file_edit(self):
+ """Test case for get_file_edit
+
+ """
+ pass
+
+ def test_get_file_history(self):
+ """Test case for get_file_history
+
+ """
+ pass
+
+ def test_get_file_redirects(self):
+ """Test case for get_file_redirects
+
+ """
+ pass
+
+ def test_get_file_revision(self):
+ """Test case for get_file_revision
+
+ """
+ pass
+
+ def test_get_fileset(self):
+ """Test case for get_fileset
+
+ """
+ pass
+
+ def test_get_fileset_edit(self):
+ """Test case for get_fileset_edit
+
+ """
+ pass
+
+ def test_get_fileset_history(self):
+ """Test case for get_fileset_history
+
+ """
+ pass
+
+ def test_get_fileset_redirects(self):
+ """Test case for get_fileset_redirects
+
+ """
+ pass
+
+ def test_get_fileset_revision(self):
+ """Test case for get_fileset_revision
+
+ """
+ pass
+
+ def test_get_release(self):
+ """Test case for get_release
+
+ """
+ pass
+
+ def test_get_release_edit(self):
+ """Test case for get_release_edit
+
+ """
+ pass
+
+ def test_get_release_files(self):
+ """Test case for get_release_files
+
+ """
+ pass
+
+ def test_get_release_filesets(self):
+ """Test case for get_release_filesets
+
+ """
+ pass
+
+ def test_get_release_history(self):
+ """Test case for get_release_history
+
+ """
+ pass
+
+ def test_get_release_redirects(self):
+ """Test case for get_release_redirects
+
+ """
+ pass
+
+ def test_get_release_revision(self):
+ """Test case for get_release_revision
+
+ """
+ pass
+
+ def test_get_release_webcaptures(self):
+ """Test case for get_release_webcaptures
+
+ """
+ pass
+
+ def test_get_webcapture(self):
+ """Test case for get_webcapture
+
+ """
+ pass
+
+ def test_get_webcapture_edit(self):
+ """Test case for get_webcapture_edit
+
+ """
+ pass
+
+ def test_get_webcapture_history(self):
+ """Test case for get_webcapture_history
+
+ """
+ pass
+
+ def test_get_webcapture_redirects(self):
+ """Test case for get_webcapture_redirects
+
+ """
+ pass
+
+ def test_get_webcapture_revision(self):
+ """Test case for get_webcapture_revision
+
+ """
+ pass
+
+ def test_get_work(self):
+ """Test case for get_work
+
+ """
+ pass
+
+ def test_get_work_edit(self):
+ """Test case for get_work_edit
+
+ """
+ pass
+
+ def test_get_work_history(self):
+ """Test case for get_work_history
+
+ """
+ pass
+
+ def test_get_work_redirects(self):
+ """Test case for get_work_redirects
+
+ """
+ pass
+
+ def test_get_work_releases(self):
+ """Test case for get_work_releases
+
+ """
+ pass
+
+ def test_get_work_revision(self):
+ """Test case for get_work_revision
+
+ """
+ pass
+
+ def test_lookup_container(self):
+ """Test case for lookup_container
+
+ """
+ pass
+
+ def test_lookup_creator(self):
+ """Test case for lookup_creator
+
+ """
+ pass
+
+ def test_lookup_file(self):
+ """Test case for lookup_file
+
+ """
+ pass
+
+ def test_lookup_release(self):
+ """Test case for lookup_release
+
+ """
+ pass
+
+ def test_update_container(self):
+ """Test case for update_container
+
+ """
+ pass
+
+ def test_update_creator(self):
+ """Test case for update_creator
+
+ """
+ pass
+
+ def test_update_editgroup(self):
+ """Test case for update_editgroup
+
+ """
+ pass
+
+ def test_update_editor(self):
+ """Test case for update_editor
+
+ """
+ pass
+
+ def test_update_file(self):
+ """Test case for update_file
+
+ """
+ pass
+
+ def test_update_fileset(self):
+ """Test case for update_fileset
+
+ """
+ pass
+
+ def test_update_release(self):
+ """Test case for update_release
+
+ """
+ pass
+
+ def test_update_webcapture(self):
+ """Test case for update_webcapture
+
+ """
+ pass
+
+ def test_update_work(self):
+ """Test case for update_work
+
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_editgroup.py b/python_openapi_client/tests/codegen/test_editgroup.py
new file mode 100644
index 00000000..41282829
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_editgroup.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.editgroup import Editgroup # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestEditgroup(unittest.TestCase):
+ """Editgroup unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testEditgroup(self):
+ """Test Editgroup"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.editgroup.Editgroup() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_editgroup_annotation.py b/python_openapi_client/tests/codegen/test_editgroup_annotation.py
new file mode 100644
index 00000000..4e4f3e25
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_editgroup_annotation.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.editgroup_annotation import EditgroupAnnotation # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestEditgroupAnnotation(unittest.TestCase):
+ """EditgroupAnnotation unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testEditgroupAnnotation(self):
+ """Test EditgroupAnnotation"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.editgroup_annotation.EditgroupAnnotation() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_editgroup_edits.py b/python_openapi_client/tests/codegen/test_editgroup_edits.py
new file mode 100644
index 00000000..5d3cebe8
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_editgroup_edits.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.editgroup_edits import EditgroupEdits # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestEditgroupEdits(unittest.TestCase):
+ """EditgroupEdits unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testEditgroupEdits(self):
+ """Test EditgroupEdits"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.editgroup_edits.EditgroupEdits() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_editor.py b/python_openapi_client/tests/codegen/test_editor.py
new file mode 100644
index 00000000..65064564
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_editor.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.editor import Editor # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestEditor(unittest.TestCase):
+ """Editor unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testEditor(self):
+ """Test Editor"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.editor.Editor() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_entity_edit.py b/python_openapi_client/tests/codegen/test_entity_edit.py
new file mode 100644
index 00000000..cc097c3d
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_entity_edit.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.entity_edit import EntityEdit # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestEntityEdit(unittest.TestCase):
+ """EntityEdit unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testEntityEdit(self):
+ """Test EntityEdit"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.entity_edit.EntityEdit() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_entity_history_entry.py b/python_openapi_client/tests/codegen/test_entity_history_entry.py
new file mode 100644
index 00000000..7a6e7146
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_entity_history_entry.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.entity_history_entry import EntityHistoryEntry # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestEntityHistoryEntry(unittest.TestCase):
+ """EntityHistoryEntry unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testEntityHistoryEntry(self):
+ """Test EntityHistoryEntry"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.entity_history_entry.EntityHistoryEntry() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_error_response.py b/python_openapi_client/tests/codegen/test_error_response.py
new file mode 100644
index 00000000..04f8baa2
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_error_response.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.error_response import ErrorResponse # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestErrorResponse(unittest.TestCase):
+ """ErrorResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testErrorResponse(self):
+ """Test ErrorResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.error_response.ErrorResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_file_auto_batch.py b/python_openapi_client/tests/codegen/test_file_auto_batch.py
new file mode 100644
index 00000000..407f60fc
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_file_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.file_auto_batch import FileAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFileAutoBatch(unittest.TestCase):
+ """FileAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFileAutoBatch(self):
+ """Test FileAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.file_auto_batch.FileAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_file_entity.py b/python_openapi_client/tests/codegen/test_file_entity.py
new file mode 100644
index 00000000..790a3280
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_file_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.file_entity import FileEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFileEntity(unittest.TestCase):
+ """FileEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFileEntity(self):
+ """Test FileEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.file_entity.FileEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_file_url.py b/python_openapi_client/tests/codegen/test_file_url.py
new file mode 100644
index 00000000..8b15fffa
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_file_url.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.file_url import FileUrl # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFileUrl(unittest.TestCase):
+ """FileUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFileUrl(self):
+ """Test FileUrl"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.file_url.FileUrl() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_fileset_auto_batch.py b/python_openapi_client/tests/codegen/test_fileset_auto_batch.py
new file mode 100644
index 00000000..4b28e4c1
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_fileset_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.fileset_auto_batch import FilesetAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFilesetAutoBatch(unittest.TestCase):
+ """FilesetAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFilesetAutoBatch(self):
+ """Test FilesetAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.fileset_auto_batch.FilesetAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_fileset_entity.py b/python_openapi_client/tests/codegen/test_fileset_entity.py
new file mode 100644
index 00000000..629c901f
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_fileset_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.fileset_entity import FilesetEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFilesetEntity(unittest.TestCase):
+ """FilesetEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFilesetEntity(self):
+ """Test FilesetEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.fileset_entity.FilesetEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_fileset_file.py b/python_openapi_client/tests/codegen/test_fileset_file.py
new file mode 100644
index 00000000..99cc6172
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_fileset_file.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.fileset_file import FilesetFile # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFilesetFile(unittest.TestCase):
+ """FilesetFile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFilesetFile(self):
+ """Test FilesetFile"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.fileset_file.FilesetFile() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_fileset_url.py b/python_openapi_client/tests/codegen/test_fileset_url.py
new file mode 100644
index 00000000..657c3568
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_fileset_url.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.fileset_url import FilesetUrl # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestFilesetUrl(unittest.TestCase):
+ """FilesetUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testFilesetUrl(self):
+ """Test FilesetUrl"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.fileset_url.FilesetUrl() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_release_abstract.py b/python_openapi_client/tests/codegen/test_release_abstract.py
new file mode 100644
index 00000000..50b250bb
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_release_abstract.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.release_abstract import ReleaseAbstract # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestReleaseAbstract(unittest.TestCase):
+ """ReleaseAbstract unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseAbstract(self):
+ """Test ReleaseAbstract"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.release_abstract.ReleaseAbstract() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_release_auto_batch.py b/python_openapi_client/tests/codegen/test_release_auto_batch.py
new file mode 100644
index 00000000..9d9ab7e4
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_release_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.release_auto_batch import ReleaseAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestReleaseAutoBatch(unittest.TestCase):
+ """ReleaseAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseAutoBatch(self):
+ """Test ReleaseAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.release_auto_batch.ReleaseAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_release_contrib.py b/python_openapi_client/tests/codegen/test_release_contrib.py
new file mode 100644
index 00000000..4c9daf7d
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_release_contrib.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.release_contrib import ReleaseContrib # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestReleaseContrib(unittest.TestCase):
+ """ReleaseContrib unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseContrib(self):
+ """Test ReleaseContrib"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.release_contrib.ReleaseContrib() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_release_entity.py b/python_openapi_client/tests/codegen/test_release_entity.py
new file mode 100644
index 00000000..bee996c1
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_release_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.release_entity import ReleaseEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestReleaseEntity(unittest.TestCase):
+ """ReleaseEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseEntity(self):
+ """Test ReleaseEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.release_entity.ReleaseEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_release_ext_ids.py b/python_openapi_client/tests/codegen/test_release_ext_ids.py
new file mode 100644
index 00000000..9dce44ee
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_release_ext_ids.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.release_ext_ids import ReleaseExtIds # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestReleaseExtIds(unittest.TestCase):
+ """ReleaseExtIds unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseExtIds(self):
+ """Test ReleaseExtIds"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.release_ext_ids.ReleaseExtIds() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_release_ref.py b/python_openapi_client/tests/codegen/test_release_ref.py
new file mode 100644
index 00000000..33574195
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_release_ref.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.release_ref import ReleaseRef # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestReleaseRef(unittest.TestCase):
+ """ReleaseRef unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testReleaseRef(self):
+ """Test ReleaseRef"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.release_ref.ReleaseRef() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_success.py b/python_openapi_client/tests/codegen/test_success.py
new file mode 100644
index 00000000..f661977a
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_success.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.success import Success # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestSuccess(unittest.TestCase):
+ """Success unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testSuccess(self):
+ """Test Success"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.success.Success() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_webcapture_auto_batch.py b/python_openapi_client/tests/codegen/test_webcapture_auto_batch.py
new file mode 100644
index 00000000..766294ea
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_webcapture_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.webcapture_auto_batch import WebcaptureAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestWebcaptureAutoBatch(unittest.TestCase):
+ """WebcaptureAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWebcaptureAutoBatch(self):
+ """Test WebcaptureAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.webcapture_auto_batch.WebcaptureAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_webcapture_cdx_line.py b/python_openapi_client/tests/codegen/test_webcapture_cdx_line.py
new file mode 100644
index 00000000..4706395d
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_webcapture_cdx_line.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestWebcaptureCdxLine(unittest.TestCase):
+ """WebcaptureCdxLine unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWebcaptureCdxLine(self):
+ """Test WebcaptureCdxLine"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.webcapture_cdx_line.WebcaptureCdxLine() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_webcapture_entity.py b/python_openapi_client/tests/codegen/test_webcapture_entity.py
new file mode 100644
index 00000000..d96c96e4
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_webcapture_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestWebcaptureEntity(unittest.TestCase):
+ """WebcaptureEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWebcaptureEntity(self):
+ """Test WebcaptureEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.webcapture_entity.WebcaptureEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_webcapture_url.py b/python_openapi_client/tests/codegen/test_webcapture_url.py
new file mode 100644
index 00000000..fc15736e
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_webcapture_url.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.webcapture_url import WebcaptureUrl # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestWebcaptureUrl(unittest.TestCase):
+ """WebcaptureUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWebcaptureUrl(self):
+ """Test WebcaptureUrl"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.webcapture_url.WebcaptureUrl() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_work_auto_batch.py b/python_openapi_client/tests/codegen/test_work_auto_batch.py
new file mode 100644
index 00000000..16cbe693
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_work_auto_batch.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.work_auto_batch import WorkAutoBatch # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestWorkAutoBatch(unittest.TestCase):
+ """WorkAutoBatch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWorkAutoBatch(self):
+ """Test WorkAutoBatch"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.work_auto_batch.WorkAutoBatch() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python_openapi_client/tests/codegen/test_work_entity.py b/python_openapi_client/tests/codegen/test_work_entity.py
new file mode 100644
index 00000000..5a0936a9
--- /dev/null
+++ b/python_openapi_client/tests/codegen/test_work_entity.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.3.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import fatcat_openapi_client
+from fatcat_openapi_client.models.work_entity import WorkEntity # noqa: E501
+from fatcat_openapi_client.rest import ApiException
+
+
+class TestWorkEntity(unittest.TestCase):
+ """WorkEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testWorkEntity(self):
+ """Test WorkEntity"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = fatcat_openapi_client.models.work_entity.WorkEntity() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()