summaryrefslogtreecommitdiffstats
path: root/python/fatcat_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-26 18:18:30 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-26 18:18:30 -0800
commita8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe (patch)
treeab1b5cc37a6ff6bc1824a3881b0156c297733f94 /python/fatcat_client
parent9555367d693ccb894eb8960c98507315e581f60a (diff)
downloadfatcat-a8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe.tar.gz
fatcat-a8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe.zip
python codegren for fileset/web
Diffstat (limited to 'python/fatcat_client')
-rw-r--r--python/fatcat_client/README.md27
-rw-r--r--python/fatcat_client/__init__.py5
-rw-r--r--python/fatcat_client/api/default_api.py2254
-rw-r--r--python/fatcat_client/models/__init__.py5
-rw-r--r--python/fatcat_client/models/editgroup_edits.py54
-rw-r--r--python/fatcat_client/models/fileset_entity.py353
-rw-r--r--python/fatcat_client/models/fileset_entity_manifest.py244
-rw-r--r--python/fatcat_client/models/release_entity.py60
-rw-r--r--python/fatcat_client/models/webcapture_entity.py405
-rw-r--r--python/fatcat_client/models/webcapture_entity_archive_urls.py140
-rw-r--r--python/fatcat_client/models/webcapture_entity_cdx.py273
11 files changed, 3810 insertions, 10 deletions
diff --git a/python/fatcat_client/README.md b/python/fatcat_client/README.md
index 88db0ca4..0f170925 100644
--- a/python/fatcat_client/README.md
+++ b/python/fatcat_client/README.md
@@ -76,8 +76,12 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**create_editgroup**](docs/DefaultApi.md#create_editgroup) | **POST** /editgroup |
*DefaultApi* | [**create_file**](docs/DefaultApi.md#create_file) | **POST** /file |
*DefaultApi* | [**create_file_batch**](docs/DefaultApi.md#create_file_batch) | **POST** /file/batch |
+*DefaultApi* | [**create_fileset**](docs/DefaultApi.md#create_fileset) | **POST** /fileset |
+*DefaultApi* | [**create_fileset_batch**](docs/DefaultApi.md#create_fileset_batch) | **POST** /fileset/batch |
*DefaultApi* | [**create_release**](docs/DefaultApi.md#create_release) | **POST** /release |
*DefaultApi* | [**create_release_batch**](docs/DefaultApi.md#create_release_batch) | **POST** /release/batch |
+*DefaultApi* | [**create_webcapture**](docs/DefaultApi.md#create_webcapture) | **POST** /webcapture |
+*DefaultApi* | [**create_webcapture_batch**](docs/DefaultApi.md#create_webcapture_batch) | **POST** /webcapture/batch |
*DefaultApi* | [**create_work**](docs/DefaultApi.md#create_work) | **POST** /work |
*DefaultApi* | [**create_work_batch**](docs/DefaultApi.md#create_work_batch) | **POST** /work/batch |
*DefaultApi* | [**delete_container**](docs/DefaultApi.md#delete_container) | **DELETE** /container/{ident} |
@@ -86,8 +90,12 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**delete_creator_edit**](docs/DefaultApi.md#delete_creator_edit) | **DELETE** /creator/edit/{edit_id} |
*DefaultApi* | [**delete_file**](docs/DefaultApi.md#delete_file) | **DELETE** /file/{ident} |
*DefaultApi* | [**delete_file_edit**](docs/DefaultApi.md#delete_file_edit) | **DELETE** /file/edit/{edit_id} |
+*DefaultApi* | [**delete_fileset**](docs/DefaultApi.md#delete_fileset) | **DELETE** /fileset/{ident} |
+*DefaultApi* | [**delete_fileset_edit**](docs/DefaultApi.md#delete_fileset_edit) | **DELETE** /fileset/edit/{edit_id} |
*DefaultApi* | [**delete_release**](docs/DefaultApi.md#delete_release) | **DELETE** /release/{ident} |
*DefaultApi* | [**delete_release_edit**](docs/DefaultApi.md#delete_release_edit) | **DELETE** /release/edit/{edit_id} |
+*DefaultApi* | [**delete_webcapture**](docs/DefaultApi.md#delete_webcapture) | **DELETE** /webcapture/{ident} |
+*DefaultApi* | [**delete_webcapture_edit**](docs/DefaultApi.md#delete_webcapture_edit) | **DELETE** /webcapture/edit/{edit_id} |
*DefaultApi* | [**delete_work**](docs/DefaultApi.md#delete_work) | **DELETE** /work/{ident} |
*DefaultApi* | [**delete_work_edit**](docs/DefaultApi.md#delete_work_edit) | **DELETE** /work/edit/{edit_id} |
*DefaultApi* | [**get_changelog**](docs/DefaultApi.md#get_changelog) | **GET** /changelog |
@@ -111,12 +119,24 @@ Class | Method | HTTP request | Description
*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 |
@@ -130,7 +150,9 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**update_container**](docs/DefaultApi.md#update_container) | **PUT** /container/{ident} |
*DefaultApi* | [**update_creator**](docs/DefaultApi.md#update_creator) | **PUT** /creator/{ident} |
*DefaultApi* | [**update_file**](docs/DefaultApi.md#update_file) | **PUT** /file/{ident} |
+*DefaultApi* | [**update_fileset**](docs/DefaultApi.md#update_fileset) | **PUT** /fileset/{ident} |
*DefaultApi* | [**update_release**](docs/DefaultApi.md#update_release) | **PUT** /release/{ident} |
+*DefaultApi* | [**update_webcapture**](docs/DefaultApi.md#update_webcapture) | **PUT** /webcapture/{ident} |
*DefaultApi* | [**update_work**](docs/DefaultApi.md#update_work) | **PUT** /work/{ident} |
@@ -147,11 +169,16 @@ Class | Method | HTTP request | Description
- [ErrorResponse](docs/ErrorResponse.md)
- [FileEntity](docs/FileEntity.md)
- [FileEntityUrls](docs/FileEntityUrls.md)
+ - [FilesetEntity](docs/FilesetEntity.md)
+ - [FilesetEntityManifest](docs/FilesetEntityManifest.md)
- [ReleaseContrib](docs/ReleaseContrib.md)
- [ReleaseEntity](docs/ReleaseEntity.md)
- [ReleaseEntityAbstracts](docs/ReleaseEntityAbstracts.md)
- [ReleaseRef](docs/ReleaseRef.md)
- [Success](docs/Success.md)
+ - [WebcaptureEntity](docs/WebcaptureEntity.md)
+ - [WebcaptureEntityArchiveUrls](docs/WebcaptureEntityArchiveUrls.md)
+ - [WebcaptureEntityCdx](docs/WebcaptureEntityCdx.md)
- [WorkEntity](docs/WorkEntity.md)
diff --git a/python/fatcat_client/__init__.py b/python/fatcat_client/__init__.py
index f126b749..6b08c0b1 100644
--- a/python/fatcat_client/__init__.py
+++ b/python/fatcat_client/__init__.py
@@ -33,9 +33,14 @@ from fatcat_client.models.entity_history_entry import EntityHistoryEntry
from fatcat_client.models.error_response import ErrorResponse
from fatcat_client.models.file_entity import FileEntity
from fatcat_client.models.file_entity_urls import FileEntityUrls
+from fatcat_client.models.fileset_entity import FilesetEntity
+from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest
from fatcat_client.models.release_contrib import ReleaseContrib
from fatcat_client.models.release_entity import ReleaseEntity
from fatcat_client.models.release_entity_abstracts import ReleaseEntityAbstracts
from fatcat_client.models.release_ref import ReleaseRef
from fatcat_client.models.success import Success
+from fatcat_client.models.webcapture_entity import WebcaptureEntity
+from fatcat_client.models.webcapture_entity_archive_urls import WebcaptureEntityArchiveUrls
+from fatcat_client.models.webcapture_entity_cdx import WebcaptureEntityCdx
from fatcat_client.models.work_entity import WorkEntity
diff --git a/python/fatcat_client/api/default_api.py b/python/fatcat_client/api/default_api.py
index 3f83b418..3865ff96 100644
--- a/python/fatcat_client/api/default_api.py
+++ b/python/fatcat_client/api/default_api.py
@@ -853,6 +853,212 @@ class DefaultApi(object):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
+ def create_fileset(self, 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(entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param FilesetEntity entity: (required)
+ :param str editgroup_id:
+ :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(entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_fileset_with_http_info(entity, **kwargs) # noqa: E501
+ return data
+
+ def create_fileset_with_http_info(self, 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(entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param FilesetEntity entity: (required)
+ :param str editgroup_id:
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['entity', '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 create_fileset" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # 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 = {}
+
+ query_params = []
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501
+
+ 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 = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/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_batch(self, entity_list, **kwargs): # noqa: E501
+ """create_fileset_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_batch(entity_list, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param list[FilesetEntity] entity_list: (required)
+ :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once
+ :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True)
+ :return: list[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_batch_with_http_info(entity_list, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_fileset_batch_with_http_info(entity_list, **kwargs) # noqa: E501
+ return data
+
+ def create_fileset_batch_with_http_info(self, entity_list, **kwargs): # noqa: E501
+ """create_fileset_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_batch_with_http_info(entity_list, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param list[FilesetEntity] entity_list: (required)
+ :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once
+ :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True)
+ :return: list[EntityEdit]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['entity_list', 'autoaccept', '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 create_fileset_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'entity_list' is set
+ if ('entity_list' not in params or
+ params['entity_list'] is None):
+ raise ValueError("Missing the required parameter `entity_list` when calling `create_fileset_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'autoaccept' in params:
+ query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity_list' in params:
+ body_params = params['entity_list']
+ # 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/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[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(self, entity, **kwargs): # noqa: E501
"""create_release # noqa: E501
@@ -1059,6 +1265,212 @@ class DefaultApi(object):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
+ def create_webcapture(self, 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(entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param WebcaptureEntity entity: (required)
+ :param str editgroup_id:
+ :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(entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_webcapture_with_http_info(entity, **kwargs) # noqa: E501
+ return data
+
+ def create_webcapture_with_http_info(self, 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(entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param WebcaptureEntity entity: (required)
+ :param str editgroup_id:
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['entity', '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 create_webcapture" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # 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 = {}
+
+ query_params = []
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501
+
+ 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 = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/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_batch(self, entity_list, **kwargs): # noqa: E501
+ """create_webcapture_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_batch(entity_list, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param list[WebcaptureEntity] entity_list: (required)
+ :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once
+ :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True)
+ :return: list[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_batch_with_http_info(entity_list, **kwargs) # noqa: E501
+ else:
+ (data) = self.create_webcapture_batch_with_http_info(entity_list, **kwargs) # noqa: E501
+ return data
+
+ def create_webcapture_batch_with_http_info(self, entity_list, **kwargs): # noqa: E501
+ """create_webcapture_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_batch_with_http_info(entity_list, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param list[WebcaptureEntity] entity_list: (required)
+ :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once
+ :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True)
+ :return: list[EntityEdit]
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['entity_list', 'autoaccept', '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 create_webcapture_batch" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'entity_list' is set
+ if ('entity_list' not in params or
+ params['entity_list'] is None):
+ raise ValueError("Missing the required parameter `entity_list` when calling `create_webcapture_batch`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'autoaccept' in params:
+ query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'entity_list' in params:
+ body_params = params['entity_list']
+ # 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/batch', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='list[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(self, entity, **kwargs): # noqa: E501
"""create_work # noqa: E501
@@ -1859,6 +2271,204 @@ class DefaultApi(object):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
+ def delete_fileset(self, 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(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str editgroup_id:
+ :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(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_fileset_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_fileset_with_http_info(self, 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(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str editgroup_id:
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', '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 delete_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 `delete_fileset`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # 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}', '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, 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(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int edit_id: (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(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_fileset_edit_with_http_info(self, 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(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int edit_id: (required)
+ :return: Success
+ 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 delete_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 `delete_fileset_edit`") # 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}', '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, ident, **kwargs): # noqa: E501
"""delete_release # noqa: E501
@@ -2057,6 +2667,204 @@ class DefaultApi(object):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
+ def delete_webcapture(self, 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(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str editgroup_id:
+ :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(ident, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_webcapture_with_http_info(ident, **kwargs) # noqa: E501
+ return data
+
+ def delete_webcapture_with_http_info(self, 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(ident, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param str editgroup_id:
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', '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 delete_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 `delete_webcapture`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # 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}', '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, 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(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int edit_id: (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(edit_id, **kwargs) # noqa: E501
+ else:
+ (data) = self.delete_webcapture_edit_with_http_info(edit_id, **kwargs) # noqa: E501
+ return data
+
+ def delete_webcapture_edit_with_http_info(self, 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(edit_id, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param int edit_id: (required)
+ :return: Success
+ 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 delete_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 `delete_webcapture_edit`") # 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}', '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, ident, **kwargs): # noqa: E501
"""delete_work # noqa: E501
@@ -3360,7 +4168,7 @@ class DefaultApi(object):
:param async bool
:param str ident: (required)
- :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :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.
@@ -3382,7 +4190,7 @@ class DefaultApi(object):
:param async bool
:param str ident: (required)
- :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :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.
@@ -4360,6 +5168,511 @@ class DefaultApi(object):
_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, 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_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, 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 = ['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 int edit_id: (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 int edit_id: (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
+
+ 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: (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: (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
+
+ 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
@@ -4370,7 +5683,7 @@ class DefaultApi(object):
:param async bool
:param str ident: (required)
- :param str expand: List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid.
+ :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,
@@ -4393,7 +5706,7 @@ class DefaultApi(object):
:param async bool
:param str ident: (required)
- :param str expand: List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid.
+ :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,
@@ -4663,6 +5976,107 @@ class DefaultApi(object):
_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
@@ -4966,6 +6380,612 @@ class DefaultApi(object):
_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, 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_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, 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 = ['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 int edit_id: (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 int edit_id: (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
+
+ 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: (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: (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
+
+ 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
@@ -5376,7 +7396,7 @@ class DefaultApi(object):
:param async bool
:param str ident: (required)
- :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :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.
@@ -5398,7 +7418,7 @@ class DefaultApi(object):
:param async bool
:param str ident: (required)
- :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :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.
@@ -5923,7 +7943,7 @@ class DefaultApi(object):
:param str pmcid:
:param str core_id:
:param str expand: List of sub-entities to expand in response.
- :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :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.
@@ -5951,7 +7971,7 @@ class DefaultApi(object):
:param str pmcid:
:param str core_id:
:param str expand: List of sub-entities to expand in response.
- :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
+ :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.
@@ -6355,6 +8375,115 @@ class DefaultApi(object):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
+ def update_fileset(self, 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(ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param FilesetEntity entity: (required)
+ :param str editgroup_id:
+ :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(ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_fileset_with_http_info(ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_fileset_with_http_info(self, 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(ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param FilesetEntity entity: (required)
+ :param str editgroup_id:
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'entity', '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 update_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 `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 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501
+
+ 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 = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/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, ident, entity, **kwargs): # noqa: E501
"""update_release # noqa: E501
@@ -6464,6 +8593,115 @@ class DefaultApi(object):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
+ def update_webcapture(self, 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(ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param WebcaptureEntity entity: (required)
+ :param str editgroup_id:
+ :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(ident, entity, **kwargs) # noqa: E501
+ else:
+ (data) = self.update_webcapture_with_http_info(ident, entity, **kwargs) # noqa: E501
+ return data
+
+ def update_webcapture_with_http_info(self, 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(ident, entity, async=True)
+ >>> result = thread.get()
+
+ :param async bool
+ :param str ident: (required)
+ :param WebcaptureEntity entity: (required)
+ :param str editgroup_id:
+ :return: EntityEdit
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['ident', 'entity', '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 update_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 `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 'ident' in params:
+ path_params['ident'] = params['ident'] # noqa: E501
+
+ query_params = []
+ if 'editgroup_id' in params:
+ query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501
+
+ 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 = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/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, ident, entity, **kwargs): # noqa: E501
"""update_work # noqa: E501
diff --git a/python/fatcat_client/models/__init__.py b/python/fatcat_client/models/__init__.py
index db9d2e5d..f4716d61 100644
--- a/python/fatcat_client/models/__init__.py
+++ b/python/fatcat_client/models/__init__.py
@@ -26,9 +26,14 @@ from fatcat_client.models.entity_history_entry import EntityHistoryEntry
from fatcat_client.models.error_response import ErrorResponse
from fatcat_client.models.file_entity import FileEntity
from fatcat_client.models.file_entity_urls import FileEntityUrls
+from fatcat_client.models.fileset_entity import FilesetEntity
+from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest
from fatcat_client.models.release_contrib import ReleaseContrib
from fatcat_client.models.release_entity import ReleaseEntity
from fatcat_client.models.release_entity_abstracts import ReleaseEntityAbstracts
from fatcat_client.models.release_ref import ReleaseRef
from fatcat_client.models.success import Success
+from fatcat_client.models.webcapture_entity import WebcaptureEntity
+from fatcat_client.models.webcapture_entity_archive_urls import WebcaptureEntityArchiveUrls
+from fatcat_client.models.webcapture_entity_cdx import WebcaptureEntityCdx
from fatcat_client.models.work_entity import WorkEntity
diff --git a/python/fatcat_client/models/editgroup_edits.py b/python/fatcat_client/models/editgroup_edits.py
index 7fae329d..fd845830 100644
--- a/python/fatcat_client/models/editgroup_edits.py
+++ b/python/fatcat_client/models/editgroup_edits.py
@@ -36,6 +36,8 @@ class EditgroupEdits(object):
'containers': 'list[EntityEdit]',
'creators': 'list[EntityEdit]',
'files': 'list[EntityEdit]',
+ 'filesets': 'list[EntityEdit]',
+ 'webcaptures': 'list[EntityEdit]',
'releases': 'list[EntityEdit]',
'works': 'list[EntityEdit]'
}
@@ -44,16 +46,20 @@ class EditgroupEdits(object):
'containers': 'containers',
'creators': 'creators',
'files': 'files',
+ 'filesets': 'filesets',
+ 'webcaptures': 'webcaptures',
'releases': 'releases',
'works': 'works'
}
- def __init__(self, containers=None, creators=None, files=None, releases=None, works=None): # noqa: E501
+ 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
@@ -64,6 +70,10 @@ class EditgroupEdits(object):
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:
@@ -133,6 +143,48 @@ class EditgroupEdits(object):
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
diff --git a/python/fatcat_client/models/fileset_entity.py b/python/fatcat_client/models/fileset_entity.py
new file mode 100644
index 00000000..ecc36598
--- /dev/null
+++ b/python/fatcat_client/models/fileset_entity.py
@@ -0,0 +1,353 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_client.models.file_entity_urls import FileEntityUrls # noqa: F401,E501
+from fatcat_client.models.fileset_entity_manifest import FilesetEntityManifest # 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 = {
+ 'release_ids': 'list[str]',
+ 'urls': 'list[FileEntityUrls]',
+ 'manifest': 'list[FilesetEntityManifest]',
+ 'state': 'str',
+ 'ident': 'str',
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'object',
+ 'edit_extra': 'object'
+ }
+
+ attribute_map = {
+ '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, 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._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 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 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[FileEntityUrls]
+ """
+ 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[FileEntityUrls]
+ """
+
+ 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[FilesetEntityManifest]
+ """
+ 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[FilesetEntityManifest]
+ """
+
+ 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/fatcat_client/models/fileset_entity_manifest.py b/python/fatcat_client/models/fileset_entity_manifest.py
new file mode 100644
index 00000000..51990ebe
--- /dev/null
+++ b/python/fatcat_client/models/fileset_entity_manifest.py
@@ -0,0 +1,244 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class FilesetEntityManifest(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
+ """FilesetEntityManifest - 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 FilesetEntityManifest. # noqa: E501
+
+
+ :return: The path of this FilesetEntityManifest. # noqa: E501
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """Sets the path of this FilesetEntityManifest.
+
+
+ :param path: The path of this FilesetEntityManifest. # 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 FilesetEntityManifest. # noqa: E501
+
+
+ :return: The size of this FilesetEntityManifest. # noqa: E501
+ :rtype: int
+ """
+ return self._size
+
+ @size.setter
+ def size(self, size):
+ """Sets the size of this FilesetEntityManifest.
+
+
+ :param size: The size of this FilesetEntityManifest. # 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 FilesetEntityManifest. # noqa: E501
+
+
+ :return: The md5 of this FilesetEntityManifest. # noqa: E501
+ :rtype: str
+ """
+ return self._md5
+
+ @md5.setter
+ def md5(self, md5):
+ """Sets the md5 of this FilesetEntityManifest.
+
+
+ :param md5: The md5 of this FilesetEntityManifest. # noqa: E501
+ :type: str
+ """
+
+ self._md5 = md5
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this FilesetEntityManifest. # noqa: E501
+
+
+ :return: The sha1 of this FilesetEntityManifest. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this FilesetEntityManifest.
+
+
+ :param sha1: The sha1 of this FilesetEntityManifest. # noqa: E501
+ :type: str
+ """
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this FilesetEntityManifest. # noqa: E501
+
+
+ :return: The sha256 of this FilesetEntityManifest. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this FilesetEntityManifest.
+
+
+ :param sha256: The sha256 of this FilesetEntityManifest. # noqa: E501
+ :type: str
+ """
+
+ self._sha256 = sha256
+
+ @property
+ def extra(self):
+ """Gets the extra of this FilesetEntityManifest. # noqa: E501
+
+
+ :return: The extra of this FilesetEntityManifest. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FilesetEntityManifest.
+
+
+ :param extra: The extra of this FilesetEntityManifest. # 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, FilesetEntityManifest):
+ 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/fatcat_client/models/release_entity.py b/python/fatcat_client/models/release_entity.py
index e3b232f4..83648351 100644
--- a/python/fatcat_client/models/release_entity.py
+++ b/python/fatcat_client/models/release_entity.py
@@ -18,9 +18,11 @@ import six
from fatcat_client.models.container_entity import ContainerEntity # noqa: F401,E501
from fatcat_client.models.file_entity import FileEntity # noqa: F401,E501
+from fatcat_client.models.fileset_entity import FilesetEntity # noqa: F401,E501
from fatcat_client.models.release_contrib import ReleaseContrib # noqa: F401,E501
from fatcat_client.models.release_entity_abstracts import ReleaseEntityAbstracts # noqa: F401,E501
from fatcat_client.models.release_ref import ReleaseRef # noqa: F401,E501
+from fatcat_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
class ReleaseEntity(object):
@@ -56,6 +58,8 @@ class ReleaseEntity(object):
'release_status': 'str',
'release_type': 'str',
'container_id': 'str',
+ 'webcaptures': 'list[WebcaptureEntity]',
+ 'filesets': 'list[FilesetEntity]',
'files': 'list[FileEntity]',
'container': 'ContainerEntity',
'work_id': 'str',
@@ -88,6 +92,8 @@ class ReleaseEntity(object):
'release_status': 'release_status',
'release_type': 'release_type',
'container_id': 'container_id',
+ 'webcaptures': 'webcaptures',
+ 'filesets': 'filesets',
'files': 'files',
'container': 'container',
'work_id': 'work_id',
@@ -100,7 +106,7 @@ class ReleaseEntity(object):
'edit_extra': 'edit_extra'
}
- def __init__(self, abstracts=None, refs=None, contribs=None, language=None, publisher=None, pages=None, issue=None, volume=None, core_id=None, pmcid=None, pmid=None, isbn13=None, wikidata_qid=None, doi=None, release_year=None, release_date=None, release_status=None, release_type=None, container_id=None, files=None, container=None, work_id=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ def __init__(self, abstracts=None, refs=None, contribs=None, language=None, publisher=None, pages=None, issue=None, volume=None, core_id=None, pmcid=None, pmid=None, isbn13=None, wikidata_qid=None, doi=None, release_year=None, release_date=None, release_status=None, release_type=None, container_id=None, webcaptures=None, filesets=None, files=None, container=None, work_id=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
@@ -122,6 +128,8 @@ class ReleaseEntity(object):
self._release_status = 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
@@ -172,6 +180,10 @@ class ReleaseEntity(object):
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:
@@ -595,6 +607,52 @@ class ReleaseEntity(object):
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
diff --git a/python/fatcat_client/models/webcapture_entity.py b/python/fatcat_client/models/webcapture_entity.py
new file mode 100644
index 00000000..9d49c916
--- /dev/null
+++ b/python/fatcat_client/models/webcapture_entity.py
@@ -0,0 +1,405 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from fatcat_client.models.webcapture_entity_archive_urls import WebcaptureEntityArchiveUrls # noqa: F401,E501
+from fatcat_client.models.webcapture_entity_cdx import WebcaptureEntityCdx # 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 = {
+ 'release_ids': 'list[str]',
+ 'timestamp': 'datetime',
+ 'original_url': 'str',
+ 'archive_urls': 'list[WebcaptureEntityArchiveUrls]',
+ 'cdx': 'list[WebcaptureEntityCdx]',
+ 'edit_extra': 'object',
+ 'extra': 'object',
+ 'redirect': 'str',
+ 'revision': 'str',
+ 'ident': 'str',
+ 'state': 'str'
+ }
+
+ attribute_map = {
+ '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, 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._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 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 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
+
+
+ :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.
+
+
+ :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[WebcaptureEntityArchiveUrls]
+ """
+ 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[WebcaptureEntityArchiveUrls]
+ """
+
+ 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[WebcaptureEntityCdx]
+ """
+ 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[WebcaptureEntityCdx]
+ """
+
+ 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/fatcat_client/models/webcapture_entity_archive_urls.py b/python/fatcat_client/models/webcapture_entity_archive_urls.py
new file mode 100644
index 00000000..a334891d
--- /dev/null
+++ b/python/fatcat_client/models/webcapture_entity_archive_urls.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.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureEntityArchiveUrls(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
+ """WebcaptureEntityArchiveUrls - 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 WebcaptureEntityArchiveUrls. # noqa: E501
+
+
+ :return: The url of this WebcaptureEntityArchiveUrls. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureEntityArchiveUrls.
+
+
+ :param url: The url of this WebcaptureEntityArchiveUrls. # 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 WebcaptureEntityArchiveUrls. # noqa: E501
+
+
+ :return: The rel of this WebcaptureEntityArchiveUrls. # noqa: E501
+ :rtype: str
+ """
+ return self._rel
+
+ @rel.setter
+ def rel(self, rel):
+ """Sets the rel of this WebcaptureEntityArchiveUrls.
+
+
+ :param rel: The rel of this WebcaptureEntityArchiveUrls. # 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, WebcaptureEntityArchiveUrls):
+ 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/fatcat_client/models/webcapture_entity_cdx.py b/python/fatcat_client/models/webcapture_entity_cdx.py
new file mode 100644
index 00000000..eb621d2f
--- /dev/null
+++ b/python/fatcat_client/models/webcapture_entity_cdx.py
@@ -0,0 +1,273 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureEntityCdx(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': 'int',
+ 'url': 'str',
+ 'mimetype': 'str',
+ 'status_code': 'int',
+ 'sha1': 'str',
+ 'sha256': 'str'
+ }
+
+ attribute_map = {
+ 'surt': 'surt',
+ 'timestamp': 'timestamp',
+ 'url': 'url',
+ 'mimetype': 'mimetype',
+ 'status_code': 'status_code',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256'
+ }
+
+ def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, sha1=None, sha256=None): # noqa: E501
+ """WebcaptureEntityCdx - a model defined in Swagger""" # noqa: E501
+
+ self._surt = None
+ self._timestamp = None
+ self._url = None
+ self._mimetype = None
+ self._status_code = 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
+ self.status_code = status_code
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+
+ @property
+ def surt(self):
+ """Gets the surt of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The surt of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._surt
+
+ @surt.setter
+ def surt(self, surt):
+ """Sets the surt of this WebcaptureEntityCdx.
+
+
+ :param surt: The surt of this WebcaptureEntityCdx. # 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 WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The timestamp of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this WebcaptureEntityCdx.
+
+
+ :param timestamp: The timestamp of this WebcaptureEntityCdx. # noqa: E501
+ :type: int
+ """
+ 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 WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The url of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureEntityCdx.
+
+
+ :param url: The url of this WebcaptureEntityCdx. # 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 WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The mimetype of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this WebcaptureEntityCdx.
+
+
+ :param mimetype: The mimetype of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
+ def status_code(self):
+ """Gets the status_code of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The status_code of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: int
+ """
+ return self._status_code
+
+ @status_code.setter
+ def status_code(self, status_code):
+ """Sets the status_code of this WebcaptureEntityCdx.
+
+
+ :param status_code: The status_code of this WebcaptureEntityCdx. # noqa: E501
+ :type: int
+ """
+ if status_code is None:
+ raise ValueError("Invalid value for `status_code`, must not be `None`") # noqa: E501
+
+ self._status_code = status_code
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The sha1 of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this WebcaptureEntityCdx.
+
+
+ :param sha1: The sha1 of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+ if sha1 is None:
+ raise ValueError("Invalid value for `sha1`, must not be `None`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The sha256 of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this WebcaptureEntityCdx.
+
+
+ :param sha256: The sha256 of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+
+ 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, WebcaptureEntityCdx):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other