From a8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 26 Dec 2018 18:18:30 -0800 Subject: python codegren for fileset/web --- python/fatcat_client/README.md | 27 + python/fatcat_client/__init__.py | 5 + python/fatcat_client/api/default_api.py | 3738 ++++++++++++++++---- python/fatcat_client/models/__init__.py | 5 + python/fatcat_client/models/editgroup_edits.py | 54 +- python/fatcat_client/models/fileset_entity.py | 353 ++ .../models/fileset_entity_manifest.py | 244 ++ python/fatcat_client/models/release_entity.py | 60 +- python/fatcat_client/models/webcapture_entity.py | 405 +++ .../models/webcapture_entity_archive_urls.py | 140 + .../fatcat_client/models/webcapture_entity_cdx.py | 273 ++ 11 files changed, 4552 insertions(+), 752 deletions(-) create mode 100644 python/fatcat_client/models/fileset_entity.py create mode 100644 python/fatcat_client/models/fileset_entity_manifest.py create mode 100644 python/fatcat_client/models/webcapture_entity.py create mode 100644 python/fatcat_client/models/webcapture_entity_archive_urls.py create mode 100644 python/fatcat_client/models/webcapture_entity_cdx.py (limited to 'python/fatcat_client') 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,16 +853,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_release(self, entity, **kwargs): # noqa: E501 - """create_release # noqa: E501 + 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_release(entity, async=True) + >>> thread = api.create_fileset(entity, async=True) >>> result = thread.get() :param async bool - :param ReleaseEntity entity: (required) + :param FilesetEntity entity: (required) :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, @@ -870,21 +870,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.create_release_with_http_info(entity, **kwargs) # noqa: E501 + return self.create_fileset_with_http_info(entity, **kwargs) # noqa: E501 else: - (data) = self.create_release_with_http_info(entity, **kwargs) # noqa: E501 + (data) = self.create_fileset_with_http_info(entity, **kwargs) # noqa: E501 return data - def create_release_with_http_info(self, entity, **kwargs): # noqa: E501 - """create_release # noqa: E501 + 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_release_with_http_info(entity, async=True) + >>> thread = api.create_fileset_with_http_info(entity, async=True) >>> result = thread.get() :param async bool - :param ReleaseEntity entity: (required) + :param FilesetEntity entity: (required) :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, @@ -902,14 +902,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_release" % key + " 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_release`") # noqa: E501 + raise ValueError("Missing the required parameter `entity` when calling `create_fileset`") # noqa: E501 collection_formats = {} @@ -939,7 +939,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release', 'POST', + '/fileset', 'POST', path_params, query_params, header_params, @@ -954,16 +954,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_release_batch(self, entity_list, **kwargs): # noqa: E501 - """create_release_batch # noqa: E501 + 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_release_batch(entity_list, async=True) + >>> thread = api.create_fileset_batch(entity_list, async=True) >>> result = thread.get() :param async bool - :param list[ReleaseEntity] entity_list: (required) + :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] @@ -972,21 +972,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.create_release_batch_with_http_info(entity_list, **kwargs) # noqa: E501 + return self.create_fileset_batch_with_http_info(entity_list, **kwargs) # noqa: E501 else: - (data) = self.create_release_batch_with_http_info(entity_list, **kwargs) # noqa: E501 + (data) = self.create_fileset_batch_with_http_info(entity_list, **kwargs) # noqa: E501 return data - def create_release_batch_with_http_info(self, entity_list, **kwargs): # noqa: E501 - """create_release_batch # noqa: E501 + 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_release_batch_with_http_info(entity_list, async=True) + >>> thread = api.create_fileset_batch_with_http_info(entity_list, async=True) >>> result = thread.get() :param async bool - :param list[ReleaseEntity] entity_list: (required) + :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] @@ -1005,14 +1005,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_release_batch" % key + " 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_release_batch`") # noqa: E501 + raise ValueError("Missing the required parameter `entity_list` when calling `create_fileset_batch`") # noqa: E501 collection_formats = {} @@ -1044,7 +1044,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/batch', 'POST', + '/fileset/batch', 'POST', path_params, query_params, header_params, @@ -1059,16 +1059,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_work(self, entity, **kwargs): # noqa: E501 - """create_work # noqa: E501 + def create_release(self, entity, **kwargs): # noqa: E501 + """create_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.create_work(entity, async=True) + >>> thread = api.create_release(entity, async=True) >>> result = thread.get() :param async bool - :param WorkEntity entity: (required) + :param ReleaseEntity entity: (required) :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, @@ -1076,21 +1076,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.create_work_with_http_info(entity, **kwargs) # noqa: E501 + return self.create_release_with_http_info(entity, **kwargs) # noqa: E501 else: - (data) = self.create_work_with_http_info(entity, **kwargs) # noqa: E501 + (data) = self.create_release_with_http_info(entity, **kwargs) # noqa: E501 return data - def create_work_with_http_info(self, entity, **kwargs): # noqa: E501 - """create_work # noqa: E501 + def create_release_with_http_info(self, entity, **kwargs): # noqa: E501 + """create_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.create_work_with_http_info(entity, async=True) + >>> thread = api.create_release_with_http_info(entity, async=True) >>> result = thread.get() :param async bool - :param WorkEntity entity: (required) + :param ReleaseEntity entity: (required) :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, @@ -1108,14 +1108,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_work" % key + " to method create_release" % 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_work`") # noqa: E501 + raise ValueError("Missing the required parameter `entity` when calling `create_release`") # noqa: E501 collection_formats = {} @@ -1145,7 +1145,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work', 'POST', + '/release', 'POST', path_params, query_params, header_params, @@ -1160,16 +1160,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_work_batch(self, entity_list, **kwargs): # noqa: E501 - """create_work_batch # noqa: E501 + def create_release_batch(self, entity_list, **kwargs): # noqa: E501 + """create_release_batch # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.create_work_batch(entity_list, async=True) + >>> thread = api.create_release_batch(entity_list, async=True) >>> result = thread.get() :param async bool - :param list[WorkEntity] entity_list: (required) + :param list[ReleaseEntity] 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] @@ -1178,21 +1178,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.create_work_batch_with_http_info(entity_list, **kwargs) # noqa: E501 + return self.create_release_batch_with_http_info(entity_list, **kwargs) # noqa: E501 else: - (data) = self.create_work_batch_with_http_info(entity_list, **kwargs) # noqa: E501 + (data) = self.create_release_batch_with_http_info(entity_list, **kwargs) # noqa: E501 return data - def create_work_batch_with_http_info(self, entity_list, **kwargs): # noqa: E501 - """create_work_batch # noqa: E501 + def create_release_batch_with_http_info(self, entity_list, **kwargs): # noqa: E501 + """create_release_batch # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.create_work_batch_with_http_info(entity_list, async=True) + >>> thread = api.create_release_batch_with_http_info(entity_list, async=True) >>> result = thread.get() :param async bool - :param list[WorkEntity] entity_list: (required) + :param list[ReleaseEntity] 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] @@ -1211,14 +1211,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_work_batch" % key + " to method create_release_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_work_batch`") # noqa: E501 + raise ValueError("Missing the required parameter `entity_list` when calling `create_release_batch`") # noqa: E501 collection_formats = {} @@ -1250,7 +1250,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/batch', 'POST', + '/release/batch', 'POST', path_params, query_params, header_params, @@ -1265,16 +1265,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_container(self, ident, **kwargs): # noqa: E501 - """delete_container # noqa: E501 + 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.delete_container(ident, async=True) + >>> thread = api.create_webcapture(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, @@ -1282,28 +1282,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_container_with_http_info(ident, **kwargs) # noqa: E501 + return self.create_webcapture_with_http_info(entity, **kwargs) # noqa: E501 else: - (data) = self.delete_container_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.create_webcapture_with_http_info(entity, **kwargs) # noqa: E501 return data - def delete_container_with_http_info(self, ident, **kwargs): # noqa: E501 - """delete_container # noqa: E501 + 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.delete_container_with_http_info(ident, async=True) + >>> thread = api.create_webcapture_with_http_info(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', 'editgroup_id'] # noqa: E501 + all_params = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1314,20 +1314,18 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_container" % key + " to method create_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_container`") # noqa: E501 + # verify the required parameter 'entity' is set + if ('entity' not in params or + params['entity'] is None): + raise ValueError("Missing the required parameter `entity` when calling `create_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: @@ -1339,6 +1337,8 @@ class DefaultApi(object): 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 @@ -1351,7 +1351,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{ident}', 'DELETE', + '/webcapture', 'POST', path_params, query_params, header_params, @@ -1366,43 +1366,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_container_edit(self, edit_id, **kwargs): # noqa: E501 - """delete_container_edit # noqa: E501 + 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.delete_container_edit(edit_id, async=True) + >>> thread = api.create_webcapture_batch(entity_list, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: Success + :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.delete_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.create_webcapture_batch_with_http_info(entity_list, **kwargs) # noqa: E501 else: - (data) = self.delete_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.create_webcapture_batch_with_http_info(entity_list, **kwargs) # noqa: E501 return data - def delete_container_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """delete_container_edit # noqa: E501 + 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.delete_container_edit_with_http_info(edit_id, async=True) + >>> thread = api.create_webcapture_batch_with_http_info(entity_list, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: Success + :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 = ['edit_id'] # noqa: E501 + 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') @@ -1413,22 +1417,24 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_container_edit" % key + " to method create_webcapture_batch" % 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_container_edit`") # noqa: E501 + # 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 = {} - if 'edit_id' in params: - path_params['edit_id'] = params['edit_id'] # noqa: E501 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 = {} @@ -1436,6 +1442,8 @@ class DefaultApi(object): 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 @@ -1448,14 +1456,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/edit/{edit_id}', 'DELETE', + '/webcapture/batch', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Success', # noqa: E501 + response_type='list[EntityEdit]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1463,16 +1471,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_creator(self, ident, **kwargs): # noqa: E501 - """delete_creator # noqa: E501 + def create_work(self, entity, **kwargs): # noqa: E501 + """create_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_creator(ident, async=True) + >>> thread = api.create_work(entity, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) + :param WorkEntity entity: (required) :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, @@ -1480,28 +1488,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_creator_with_http_info(ident, **kwargs) # noqa: E501 + return self.create_work_with_http_info(entity, **kwargs) # noqa: E501 else: - (data) = self.delete_creator_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.create_work_with_http_info(entity, **kwargs) # noqa: E501 return data - def delete_creator_with_http_info(self, ident, **kwargs): # noqa: E501 - """delete_creator # noqa: E501 + def create_work_with_http_info(self, entity, **kwargs): # noqa: E501 + """create_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_creator_with_http_info(ident, async=True) + >>> thread = api.create_work_with_http_info(entity, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) + :param WorkEntity entity: (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 = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1512,20 +1520,18 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_creator" % key + " to method create_work" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ident' is set - if ('ident' not in params or - params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `delete_creator`") # noqa: E501 + # verify the required parameter 'entity' is set + if ('entity' not in params or + params['entity'] is None): + raise ValueError("Missing the required parameter `entity` when calling `create_work`") # noqa: E501 collection_formats = {} path_params = {} - if 'ident' in params: - path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'editgroup_id' in params: @@ -1537,6 +1543,8 @@ class DefaultApi(object): 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 @@ -1549,7 +1557,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{ident}', 'DELETE', + '/work', 'POST', path_params, query_params, header_params, @@ -1564,43 +1572,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_creator_edit(self, edit_id, **kwargs): # noqa: E501 - """delete_creator_edit # noqa: E501 + def create_work_batch(self, entity_list, **kwargs): # noqa: E501 + """create_work_batch # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_creator_edit(edit_id, async=True) + >>> thread = api.create_work_batch(entity_list, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: Success + :param list[WorkEntity] 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.delete_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.create_work_batch_with_http_info(entity_list, **kwargs) # noqa: E501 else: - (data) = self.delete_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.create_work_batch_with_http_info(entity_list, **kwargs) # noqa: E501 return data - def delete_creator_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """delete_creator_edit # noqa: E501 + def create_work_batch_with_http_info(self, entity_list, **kwargs): # noqa: E501 + """create_work_batch # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_creator_edit_with_http_info(edit_id, async=True) + >>> thread = api.create_work_batch_with_http_info(entity_list, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: Success + :param list[WorkEntity] 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 = ['edit_id'] # noqa: E501 + 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') @@ -1611,22 +1623,24 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_creator_edit" % key + " to method create_work_batch" % 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_creator_edit`") # noqa: E501 + # 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_work_batch`") # noqa: E501 collection_formats = {} path_params = {} - if 'edit_id' in params: - path_params['edit_id'] = params['edit_id'] # noqa: E501 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 = {} @@ -1634,6 +1648,8 @@ class DefaultApi(object): 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 @@ -1646,14 +1662,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/edit/{edit_id}', 'DELETE', + '/work/batch', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Success', # noqa: E501 + response_type='list[EntityEdit]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1661,12 +1677,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_file(self, ident, **kwargs): # noqa: E501 - """delete_file # noqa: E501 + def delete_container(self, ident, **kwargs): # noqa: E501 + """delete_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_file(ident, async=True) + >>> thread = api.delete_container(ident, async=True) >>> result = thread.get() :param async bool @@ -1678,17 +1694,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_file_with_http_info(ident, **kwargs) # noqa: E501 + return self.delete_container_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_file_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.delete_container_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_file_with_http_info(self, ident, **kwargs): # noqa: E501 - """delete_file # noqa: E501 + def delete_container_with_http_info(self, ident, **kwargs): # noqa: E501 + """delete_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_file_with_http_info(ident, async=True) + >>> thread = api.delete_container_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -1710,14 +1726,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_file" % key + " to method delete_container" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `delete_file`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `delete_container`") # noqa: E501 collection_formats = {} @@ -1747,7 +1763,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{ident}', 'DELETE', + '/container/{ident}', 'DELETE', path_params, query_params, header_params, @@ -1762,12 +1778,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_file_edit(self, edit_id, **kwargs): # noqa: E501 - """delete_file_edit # noqa: E501 + def delete_container_edit(self, edit_id, **kwargs): # noqa: E501 + """delete_container_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_file_edit(edit_id, async=True) + >>> thread = api.delete_container_edit(edit_id, async=True) >>> result = thread.get() :param async bool @@ -1778,17 +1794,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.delete_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.delete_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.delete_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def delete_file_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """delete_file_edit # noqa: E501 + def delete_container_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """delete_container_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_file_edit_with_http_info(edit_id, async=True) + >>> thread = api.delete_container_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool @@ -1809,14 +1825,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_file_edit" % key + " to method delete_container_edit" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'edit_id' is set if ('edit_id' not in params or params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `delete_file_edit`") # noqa: E501 + raise ValueError("Missing the required parameter `edit_id` when calling `delete_container_edit`") # noqa: E501 collection_formats = {} @@ -1844,7 +1860,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/edit/{edit_id}', 'DELETE', + '/container/edit/{edit_id}', 'DELETE', path_params, query_params, header_params, @@ -1859,12 +1875,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_release(self, ident, **kwargs): # noqa: E501 - """delete_release # noqa: E501 + def delete_creator(self, ident, **kwargs): # noqa: E501 + """delete_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_release(ident, async=True) + >>> thread = api.delete_creator(ident, async=True) >>> result = thread.get() :param async bool @@ -1876,17 +1892,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_release_with_http_info(ident, **kwargs) # noqa: E501 + return self.delete_creator_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_release_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.delete_creator_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_release_with_http_info(self, ident, **kwargs): # noqa: E501 - """delete_release # noqa: E501 + def delete_creator_with_http_info(self, ident, **kwargs): # noqa: E501 + """delete_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_release_with_http_info(ident, async=True) + >>> thread = api.delete_creator_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -1908,14 +1924,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_release" % key + " to method delete_creator" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `delete_release`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `delete_creator`") # noqa: E501 collection_formats = {} @@ -1945,7 +1961,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{ident}', 'DELETE', + '/creator/{ident}', 'DELETE', path_params, query_params, header_params, @@ -1960,12 +1976,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_release_edit(self, edit_id, **kwargs): # noqa: E501 - """delete_release_edit # noqa: E501 + def delete_creator_edit(self, edit_id, **kwargs): # noqa: E501 + """delete_creator_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_release_edit(edit_id, async=True) + >>> thread = api.delete_creator_edit(edit_id, async=True) >>> result = thread.get() :param async bool @@ -1976,17 +1992,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.delete_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.delete_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.delete_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def delete_release_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """delete_release_edit # noqa: E501 + def delete_creator_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """delete_creator_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_release_edit_with_http_info(edit_id, async=True) + >>> thread = api.delete_creator_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool @@ -2007,14 +2023,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_release_edit" % key + " to method delete_creator_edit" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'edit_id' is set if ('edit_id' not in params or params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `delete_release_edit`") # noqa: E501 + raise ValueError("Missing the required parameter `edit_id` when calling `delete_creator_edit`") # noqa: E501 collection_formats = {} @@ -2042,7 +2058,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/edit/{edit_id}', 'DELETE', + '/creator/edit/{edit_id}', 'DELETE', path_params, query_params, header_params, @@ -2057,12 +2073,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_work(self, ident, **kwargs): # noqa: E501 - """delete_work # noqa: E501 + def delete_file(self, ident, **kwargs): # noqa: E501 + """delete_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_work(ident, async=True) + >>> thread = api.delete_file(ident, async=True) >>> result = thread.get() :param async bool @@ -2074,17 +2090,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_work_with_http_info(ident, **kwargs) # noqa: E501 + return self.delete_file_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_work_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.delete_file_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_work_with_http_info(self, ident, **kwargs): # noqa: E501 - """delete_work # noqa: E501 + def delete_file_with_http_info(self, ident, **kwargs): # noqa: E501 + """delete_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_work_with_http_info(ident, async=True) + >>> thread = api.delete_file_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -2106,14 +2122,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_work" % key + " to method delete_file" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `delete_work`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `delete_file`") # noqa: E501 collection_formats = {} @@ -2143,7 +2159,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{ident}', 'DELETE', + '/file/{ident}', 'DELETE', path_params, query_params, header_params, @@ -2158,12 +2174,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_work_edit(self, edit_id, **kwargs): # noqa: E501 - """delete_work_edit # noqa: E501 + def delete_file_edit(self, edit_id, **kwargs): # noqa: E501 + """delete_file_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_work_edit(edit_id, async=True) + >>> thread = api.delete_file_edit(edit_id, async=True) >>> result = thread.get() :param async bool @@ -2174,17 +2190,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_work_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.delete_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.delete_work_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.delete_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def delete_work_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """delete_work_edit # noqa: E501 + def delete_file_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """delete_file_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_work_edit_with_http_info(edit_id, async=True) + >>> thread = api.delete_file_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool @@ -2205,14 +2221,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_work_edit" % key + " to method delete_file_edit" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'edit_id' is set if ('edit_id' not in params or params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `delete_work_edit`") # noqa: E501 + raise ValueError("Missing the required parameter `edit_id` when calling `delete_file_edit`") # noqa: E501 collection_formats = {} @@ -2240,7 +2256,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/edit/{edit_id}', 'DELETE', + '/file/edit/{edit_id}', 'DELETE', path_params, query_params, header_params, @@ -2255,43 +2271,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_changelog(self, **kwargs): # noqa: E501 - """get_changelog # noqa: E501 + 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.get_changelog(async=True) + >>> thread = api.delete_fileset(ident, async=True) >>> result = thread.get() :param async bool - :param int limit: - :return: list[ChangelogEntry] + :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.get_changelog_with_http_info(**kwargs) # noqa: E501 + return self.delete_fileset_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_changelog_with_http_info(**kwargs) # noqa: E501 + (data) = self.delete_fileset_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_changelog_with_http_info(self, **kwargs): # noqa: E501 - """get_changelog # noqa: E501 + 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.get_changelog_with_http_info(async=True) + >>> thread = api.delete_fileset_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param int limit: - :return: list[ChangelogEntry] + :param str ident: (required) + :param str editgroup_id: + :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['limit'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2302,18 +2320,24 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_changelog" % key + " 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 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -2333,14 +2357,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/changelog', 'GET', + '/fileset/{ident}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[ChangelogEntry]', # noqa: E501 + response_type='EntityEdit', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2348,43 +2372,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_changelog_entry(self, index, **kwargs): # noqa: E501 - """get_changelog_entry # noqa: E501 + 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.get_changelog_entry(index, async=True) + >>> thread = api.delete_fileset_edit(edit_id, async=True) >>> result = thread.get() :param async bool - :param int index: (required) - :return: ChangelogEntry + :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.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501 + return self.delete_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501 + (data) = self.delete_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def get_changelog_entry_with_http_info(self, index, **kwargs): # noqa: E501 - """get_changelog_entry # noqa: E501 + 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.get_changelog_entry_with_http_info(index, async=True) + >>> thread = api.delete_fileset_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool - :param int index: (required) - :return: ChangelogEntry + :param int edit_id: (required) + :return: Success If the method is called asynchronously, returns the request thread. """ - all_params = ['index'] # noqa: E501 + all_params = ['edit_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2395,20 +2419,20 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_changelog_entry" % key + " to method delete_fileset_edit" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'index' is set - if ('index' not in params or - params['index'] is None): - raise ValueError("Missing the required parameter `index` when calling `get_changelog_entry`") # noqa: E501 + # 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 'index' in params: - path_params['index'] = params['index'] # noqa: E501 + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 query_params = [] @@ -2430,14 +2454,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/changelog/{index}', 'GET', + '/fileset/edit/{edit_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ChangelogEntry', # noqa: E501 + response_type='Success', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2445,47 +2469,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container(self, ident, **kwargs): # noqa: E501 - """get_container # noqa: E501 + def delete_release(self, ident, **kwargs): # noqa: E501 + """delete_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container(ident, async=True) + >>> thread = api.delete_release(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). - :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). - :return: ContainerEntity + :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.get_container_with_http_info(ident, **kwargs) # noqa: E501 + return self.delete_release_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_container_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.delete_release_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_container_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_container # noqa: E501 + def delete_release_with_http_info(self, ident, **kwargs): # noqa: E501 + """delete_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_with_http_info(ident, async=True) + >>> thread = api.delete_release_with_http_info(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). - :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). - :return: ContainerEntity + :param str editgroup_id: + :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['ident', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2496,14 +2518,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_container" % key + " to method delete_release" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_container`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `delete_release`") # noqa: E501 collection_formats = {} @@ -2512,10 +2534,8 @@ class DefaultApi(object): 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 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -2535,14 +2555,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{ident}', 'GET', + '/release/{ident}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ContainerEntity', # noqa: E501 + response_type='EntityEdit', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2550,38 +2570,38 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_edit(self, edit_id, **kwargs): # noqa: E501 - """get_container_edit # noqa: E501 + def delete_release_edit(self, edit_id, **kwargs): # noqa: E501 + """delete_release_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_edit(edit_id, async=True) + >>> thread = api.delete_release_edit(edit_id, async=True) >>> result = thread.get() :param async bool :param int edit_id: (required) - :return: EntityEdit + :return: Success If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.delete_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.get_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.delete_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def get_container_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """get_container_edit # noqa: E501 + def delete_release_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """delete_release_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_edit_with_http_info(edit_id, async=True) + >>> thread = api.delete_release_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool :param int edit_id: (required) - :return: EntityEdit + :return: Success If the method is called asynchronously, returns the request thread. """ @@ -2597,14 +2617,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_container_edit" % key + " to method delete_release_edit" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'edit_id' is set if ('edit_id' not in params or params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `get_container_edit`") # noqa: E501 + raise ValueError("Missing the required parameter `edit_id` when calling `delete_release_edit`") # noqa: E501 collection_formats = {} @@ -2632,14 +2652,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/edit/{edit_id}', 'GET', + '/release/edit/{edit_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='EntityEdit', # noqa: E501 + response_type='Success', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2647,34 +2667,1327 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_history(self, ident, **kwargs): # noqa: E501 - """get_container_history # noqa: E501 + 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.get_container_history(ident, async=True) + >>> thread = api.delete_webcapture(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param int limit: - :return: list[EntityHistoryEntry] + :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.get_container_history_with_http_info(ident, **kwargs) # noqa: E501 + return self.delete_webcapture_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.delete_webcapture_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_container_history_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_container_history # noqa: E501 + 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.get_container_history_with_http_info(ident, 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 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_work(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_work_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.delete_work_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def delete_work_with_http_info(self, ident, **kwargs): # noqa: E501 + """delete_work # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_work_with_http_info(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_work" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `delete_work`") # 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( + '/work/{ident}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EntityEdit', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_work_edit(self, edit_id, **kwargs): # noqa: E501 + """delete_work_edit # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_work_edit(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_work_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_work_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return data + + def delete_work_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """delete_work_edit # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_work_edit_with_http_info(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_work_edit" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'edit_id' is set + if ('edit_id' not in params or + params['edit_id'] is None): + raise ValueError("Missing the required parameter `edit_id` when calling `delete_work_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( + '/work/edit/{edit_id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Success', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_changelog(self, **kwargs): # noqa: E501 + """get_changelog # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_changelog(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :return: list[ChangelogEntry] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_changelog_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_changelog_with_http_info(**kwargs) # noqa: E501 + return data + + def get_changelog_with_http_info(self, **kwargs): # noqa: E501 + """get_changelog # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_changelog_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :return: list[ChangelogEntry] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_changelog" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/changelog', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[ChangelogEntry]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_changelog_entry(self, index, **kwargs): # noqa: E501 + """get_changelog_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_changelog_entry(index, async=True) + >>> result = thread.get() + + :param async bool + :param int index: (required) + :return: ChangelogEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501 + else: + (data) = self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501 + return data + + def get_changelog_entry_with_http_info(self, index, **kwargs): # noqa: E501 + """get_changelog_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_changelog_entry_with_http_info(index, async=True) + >>> result = thread.get() + + :param async bool + :param int index: (required) + :return: ChangelogEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['index'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_changelog_entry" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'index' is set + if ('index' not in params or + params['index'] is None): + raise ValueError("Missing the required parameter `index` when calling `get_changelog_entry`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'index' in params: + path_params['index'] = params['index'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/changelog/{index}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ChangelogEntry', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_container(self, ident, **kwargs): # noqa: E501 + """get_container # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). + :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). + :return: ContainerEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_container_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_container_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_container_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_container # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). + :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). + :return: ContainerEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident', 'expand', 'hide'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_container" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_container`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + if 'expand' in params: + query_params.append(('expand', params['expand'])) # noqa: E501 + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/container/{ident}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ContainerEntity', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_container_edit(self, edit_id, **kwargs): # noqa: E501 + """get_container_edit # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_edit(edit_id, async=True) + >>> result = thread.get() + + :param async bool + :param 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_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + else: + (data) = self.get_container_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return data + + def get_container_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """get_container_edit # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_edit_with_http_info(edit_id, async=True) + >>> result = thread.get() + + :param async bool + :param 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_container_edit" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'edit_id' is set + if ('edit_id' not in params or + params['edit_id'] is None): + raise ValueError("Missing the required parameter `edit_id` when calling `get_container_edit`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/container/edit/{edit_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EntityEdit', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_container_history(self, ident, **kwargs): # noqa: E501 + """get_container_history # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_history(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param int limit: + :return: list[EntityHistoryEntry] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_container_history_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_container_history # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_history_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param int limit: + :return: list[EntityHistoryEntry] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident', 'limit'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_container_history" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_container_history`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/container/{ident}/history', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[EntityHistoryEntry]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_container_redirects(self, ident, **kwargs): # noqa: E501 + """get_container_redirects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_redirects(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_container_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_container_redirects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_redirects_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_container_redirects" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_container_redirects`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/container/{ident}/redirects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[str]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_container_revision(self, rev_id, **kwargs): # noqa: E501 + """get_container_revision # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_revision(rev_id, async=True) + >>> result = thread.get() + + :param async bool + :param str rev_id: (required) + :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). + :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). + :return: ContainerEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + else: + (data) = self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + return data + + def get_container_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 + """get_container_revision # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_container_revision_with_http_info(rev_id, async=True) + >>> result = thread.get() + + :param async bool + :param str rev_id: (required) + :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). + :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). + :return: ContainerEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_container_revision" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_container_revision`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 + + query_params = [] + if 'expand' in params: + query_params.append(('expand', params['expand'])) # noqa: E501 + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/container/rev/{rev_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ContainerEntity', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_creator(self, ident, **kwargs): # noqa: E501 + """get_creator # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). + :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). + :return: CreatorEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_creator_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_creator_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_creator_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_creator # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). + :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). + :return: CreatorEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident', 'expand', 'hide'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_creator" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + if 'expand' in params: + query_params.append(('expand', params['expand'])) # noqa: E501 + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/creator/{ident}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreatorEntity', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_creator_edit(self, edit_id, **kwargs): # noqa: E501 + """get_creator_edit # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_edit(edit_id, async=True) + >>> result = thread.get() + + :param async bool + :param 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_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + else: + (data) = self.get_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return data + + def get_creator_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """get_creator_edit # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_edit_with_http_info(edit_id, async=True) + >>> result = thread.get() + + :param async bool + :param 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_creator_edit" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'edit_id' is set + if ('edit_id' not in params or + params['edit_id'] is None): + raise ValueError("Missing the required parameter `edit_id` when calling `get_creator_edit`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/creator/edit/{edit_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EntityEdit', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_creator_history(self, ident, **kwargs): # noqa: E501 + """get_creator_history # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_history(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param int limit: + :return: list[EntityHistoryEntry] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_creator_history_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_creator_history # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -2685,7 +3998,712 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['ident', 'limit'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_creator_history" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator_history`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/creator/{ident}/history', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[EntityHistoryEntry]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_creator_redirects(self, ident, **kwargs): # noqa: E501 + """get_creator_redirects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_redirects(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_creator_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_creator_redirects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_redirects_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_creator_redirects" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator_redirects`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/creator/{ident}/redirects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[str]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_creator_releases(self, ident, **kwargs): # noqa: E501 + """get_creator_releases # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_releases(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str hide: List of entity fields to elide in response. For creators, none implemented yet. + :return: list[ReleaseEntity] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_creator_releases_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_creator_releases # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_releases_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str hide: List of entity fields to elide in response. For creators, none implemented yet. + :return: list[ReleaseEntity] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident', 'hide'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_creator_releases" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator_releases`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 + + query_params = [] + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/creator/{ident}/releases', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[ReleaseEntity]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_creator_revision(self, rev_id, **kwargs): # noqa: E501 + """get_creator_revision # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_revision(rev_id, async=True) + >>> result = thread.get() + + :param async bool + :param str rev_id: (required) + :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). + :param str hide: List of entity fields to elide in response. For creators, none accepted (yet). + :return: CreatorEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + else: + (data) = self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + return data + + def get_creator_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 + """get_creator_revision # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_creator_revision_with_http_info(rev_id, async=True) + >>> result = thread.get() + + :param async bool + :param str rev_id: (required) + :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). + :param str hide: List of entity fields to elide in response. For creators, none accepted (yet). + :return: CreatorEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_creator_revision" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_creator_revision`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 + + query_params = [] + if 'expand' in params: + query_params.append(('expand', params['expand'])) # noqa: E501 + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/creator/rev/{rev_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreatorEntity', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_editgroup(self, editgroup_id, **kwargs): # noqa: E501 + """get_editgroup # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_editgroup(editgroup_id, async=True) + >>> result = thread.get() + + :param async bool + :param str editgroup_id: base32-encoded unique identifier (required) + :return: Editgroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 + else: + (data) = self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 + return data + + def get_editgroup_with_http_info(self, editgroup_id, **kwargs): # noqa: E501 + """get_editgroup # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_editgroup_with_http_info(editgroup_id, async=True) + >>> result = thread.get() + + :param async bool + :param str editgroup_id: base32-encoded unique identifier (required) + :return: Editgroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['editgroup_id'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_editgroup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'editgroup_id' is set + if ('editgroup_id' not in params or + params['editgroup_id'] is None): + raise ValueError("Missing the required parameter `editgroup_id` when calling `get_editgroup`") # noqa: E501 + + if ('editgroup_id' in params and + len(params['editgroup_id']) > 26): + raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be less than or equal to `26`") # noqa: E501 + if ('editgroup_id' in params and + len(params['editgroup_id']) < 26): + raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be greater than or equal to `26`") # noqa: E501 + if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501 + raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'editgroup_id' in params: + path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/editgroup/{editgroup_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Editgroup', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_editor(self, editor_id, **kwargs): # noqa: E501 + """get_editor # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_editor(editor_id, async=True) + >>> result = thread.get() + + :param async bool + :param str editor_id: (required) + :return: Editor + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501 + else: + (data) = self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501 + return data + + def get_editor_with_http_info(self, editor_id, **kwargs): # noqa: E501 + """get_editor # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_editor_with_http_info(editor_id, async=True) + >>> result = thread.get() + + :param async bool + :param str editor_id: (required) + :return: Editor + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['editor_id'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_editor" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'editor_id' is set + if ('editor_id' not in params or + params['editor_id'] is None): + raise ValueError("Missing the required parameter `editor_id` when calling `get_editor`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'editor_id' in params: + path_params['editor_id'] = params['editor_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/editor/{editor_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Editor', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_editor_changelog(self, editor_id, **kwargs): # noqa: E501 + """get_editor_changelog # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_editor_changelog(editor_id, async=True) + >>> result = thread.get() + + :param async bool + :param str editor_id: (required) + :return: list[ChangelogEntry] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_editor_changelog_with_http_info(editor_id, **kwargs) # noqa: E501 + else: + (data) = self.get_editor_changelog_with_http_info(editor_id, **kwargs) # noqa: E501 + return data + + def get_editor_changelog_with_http_info(self, editor_id, **kwargs): # noqa: E501 + """get_editor_changelog # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_editor_changelog_with_http_info(editor_id, async=True) + >>> result = thread.get() + + :param async bool + :param str editor_id: (required) + :return: list[ChangelogEntry] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['editor_id'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_editor_changelog" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'editor_id' is set + if ('editor_id' not in params or + params['editor_id'] is None): + raise ValueError("Missing the required parameter `editor_id` when calling `get_editor_changelog`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'editor_id' in params: + path_params['editor_id'] = params['editor_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/editor/{editor_id}/changelog', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[ChangelogEntry]', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_file(self, ident, **kwargs): # noqa: E501 + """get_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). + :param str hide: List of entity fields to elide in response. For files, none accepted (yet). + :return: FileEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_file_with_http_info(ident, **kwargs) # noqa: E501 + else: + (data) = self.get_file_with_http_info(ident, **kwargs) # noqa: E501 + return data + + def get_file_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_with_http_info(ident, async=True) + >>> result = thread.get() + + :param async bool + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). + :param str hide: List of entity fields to elide in response. For files, none accepted (yet). + :return: FileEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2696,14 +4714,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_container_history" % key + " to method get_file" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_container_history`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_file`") # noqa: E501 collection_formats = {} @@ -2712,8 +4730,10 @@ class DefaultApi(object): path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 + if 'expand' in params: + query_params.append(('expand', params['expand'])) # noqa: E501 + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 header_params = {} @@ -2733,14 +4753,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{ident}/history', 'GET', + '/file/{ident}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[EntityHistoryEntry]', # noqa: E501 + response_type='FileEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2748,43 +4768,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_redirects(self, ident, **kwargs): # noqa: E501 - """get_container_redirects # noqa: E501 + def get_file_edit(self, edit_id, **kwargs): # noqa: E501 + """get_file_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_redirects(ident, async=True) + >>> thread = api.get_file_edit(edit_id, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) - :return: list[str] + :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_container_redirects_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def get_container_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_container_redirects # noqa: E501 + def get_file_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """get_file_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_redirects_with_http_info(ident, async=True) + >>> thread = api.get_file_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) - :return: list[str] + :param int edit_id: (required) + :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['ident'] # noqa: E501 + all_params = ['edit_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2795,20 +4815,20 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_container_redirects" % key + " to method get_file_edit" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ident' is set - if ('ident' not in params or - params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_container_redirects`") # noqa: E501 + # verify the required parameter 'edit_id' is set + if ('edit_id' not in params or + params['edit_id'] is None): + raise ValueError("Missing the required parameter `edit_id` when calling `get_file_edit`") # noqa: E501 collection_formats = {} path_params = {} - if 'ident' in params: - path_params['ident'] = params['ident'] # noqa: E501 + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 query_params = [] @@ -2830,14 +4850,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{ident}/redirects', 'GET', + '/file/edit/{edit_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[str]', # noqa: E501 + response_type='EntityEdit', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2845,47 +4865,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_revision(self, rev_id, **kwargs): # noqa: E501 - """get_container_revision # noqa: E501 + def get_file_history(self, ident, **kwargs): # noqa: E501 + """get_file_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_revision(rev_id, async=True) + >>> thread = api.get_file_history(ident, 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 containers, none accepted (yet). - :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). - :return: ContainerEntity + :param str ident: (required) + :param int limit: + :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + return self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + (data) = self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_container_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 - """get_container_revision # noqa: E501 + def get_file_history_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_file_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_revision_with_http_info(rev_id, async=True) + >>> thread = api.get_file_history_with_http_info(ident, 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 containers, none accepted (yet). - :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). - :return: ContainerEntity + :param str ident: (required) + :param int limit: + :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2896,26 +4914,24 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_container_revision" % key + " to method get_file_history" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'rev_id' is set - if ('rev_id' not in params or - params['rev_id'] is None): - raise ValueError("Missing the required parameter `rev_id` when calling `get_container_revision`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_file_history`") # noqa: E501 collection_formats = {} path_params = {} - if 'rev_id' in params: - path_params['rev_id'] = params['rev_id'] # noqa: E501 + 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 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 header_params = {} @@ -2935,14 +4951,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/rev/{rev_id}', 'GET', + '/file/{ident}/history', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ContainerEntity', # noqa: E501 + response_type='list[EntityHistoryEntry]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2950,47 +4966,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator(self, ident, **kwargs): # noqa: E501 - """get_creator # noqa: E501 + def get_file_redirects(self, ident, **kwargs): # noqa: E501 + """get_file_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator(ident, async=True) + >>> thread = api.get_file_redirects(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). - :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). - :return: CreatorEntity + :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_creator # noqa: E501 + def get_file_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_file_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_with_http_info(ident, async=True) + >>> thread = api.get_file_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). - :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). - :return: CreatorEntity + :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['ident', 'expand', 'hide'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3001,14 +5013,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_creator" % key + " to method get_file_redirects" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_creator`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_file_redirects`") # noqa: E501 collection_formats = {} @@ -3017,10 +5029,6 @@ class DefaultApi(object): 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 = {} @@ -3040,14 +5048,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{ident}', 'GET', + '/file/{ident}/redirects', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CreatorEntity', # noqa: E501 + response_type='list[str]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3055,43 +5063,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_edit(self, edit_id, **kwargs): # noqa: E501 - """get_creator_edit # noqa: E501 + def get_file_revision(self, rev_id, **kwargs): # noqa: E501 + """get_file_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_edit(edit_id, async=True) + >>> thread = api.get_file_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: EntityEdit + :param str rev_id: (required) + :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). + :param str hide: List of entity fields to elide in response. For files, none accepted (yet). + :return: FileEntity If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_creator_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_creator_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """get_creator_edit # noqa: E501 + def get_file_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 + """get_file_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_edit_with_http_info(edit_id, async=True) + >>> thread = api.get_file_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: EntityEdit + :param str rev_id: (required) + :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). + :param str hide: List of entity fields to elide in response. For files, none accepted (yet). + :return: FileEntity If the method is called asynchronously, returns the request thread. """ - all_params = ['edit_id'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3102,22 +5114,26 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_creator_edit" % key + " to method get_file_revision" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'edit_id' is set - if ('edit_id' not in params or - params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `get_creator_edit`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_file_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'edit_id' in params: - path_params['edit_id'] = params['edit_id'] # noqa: E501 + 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 = {} @@ -3137,14 +5153,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/edit/{edit_id}', 'GET', + '/file/rev/{rev_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='EntityEdit', # noqa: E501 + response_type='FileEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3152,45 +5168,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_history(self, ident, **kwargs): # noqa: E501 - """get_creator_history # noqa: E501 + 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_creator_history(ident, async=True) + >>> thread = api.get_fileset(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param int limit: - :return: list[EntityHistoryEntry] + :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_creator_history_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_fileset_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_fileset_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_history_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_creator_history # noqa: E501 + 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_creator_history_with_http_info(ident, async=True) + >>> thread = api.get_fileset_with_http_info(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param int limit: - :return: list[EntityHistoryEntry] + :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', 'limit'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3201,14 +5219,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_creator_history" % key + " 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_creator_history`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_fileset`") # noqa: E501 collection_formats = {} @@ -3217,8 +5235,10 @@ class DefaultApi(object): path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 + if 'expand' in params: + query_params.append(('expand', params['expand'])) # noqa: E501 + if 'hide' in params: + query_params.append(('hide', params['hide'])) # noqa: E501 header_params = {} @@ -3238,14 +5258,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{ident}/history', 'GET', + '/fileset/{ident}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[EntityHistoryEntry]', # noqa: E501 + response_type='FilesetEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3253,43 +5273,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_redirects(self, ident, **kwargs): # noqa: E501 - """get_creator_redirects # noqa: E501 + 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_creator_redirects(ident, async=True) + >>> thread = api.get_fileset_edit(edit_id, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) - :return: list[str] + :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_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_fileset_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def get_creator_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_creator_redirects # noqa: E501 + 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_creator_redirects_with_http_info(ident, async=True) + >>> thread = api.get_fileset_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) - :return: list[str] + :param int edit_id: (required) + :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['ident'] # noqa: E501 + all_params = ['edit_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3300,20 +5320,20 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_creator_redirects" % key + " to method get_fileset_edit" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ident' is set - if ('ident' not in params or - params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_creator_redirects`") # noqa: E501 + # 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 'ident' in params: - path_params['ident'] = params['ident'] # noqa: E501 + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 query_params = [] @@ -3335,14 +5355,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{ident}/redirects', 'GET', + '/fileset/edit/{edit_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[str]', # noqa: E501 + response_type='EntityEdit', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3350,45 +5370,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_releases(self, ident, **kwargs): # noqa: E501 - """get_creator_releases # noqa: E501 + 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_creator_releases(ident, async=True) + >>> thread = api.get_fileset_history(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 releases, 'abstracts', 'refs', and 'contribs' are valid. - :return: list[ReleaseEntity] + :param int limit: + :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_fileset_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_fileset_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_releases_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_creator_releases # noqa: E501 + 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_creator_releases_with_http_info(ident, async=True) + >>> thread = api.get_fileset_history_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 releases, 'abstracts', 'refs', and 'contribs' are valid. - :return: list[ReleaseEntity] + :param int limit: + :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['ident', 'hide'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3399,14 +5419,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_creator_releases" % key + " 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_creator_releases`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_fileset_history`") # noqa: E501 collection_formats = {} @@ -3415,8 +5435,8 @@ class DefaultApi(object): path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'hide' in params: - query_params.append(('hide', params['hide'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 header_params = {} @@ -3436,14 +5456,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{ident}/releases', 'GET', + '/fileset/{ident}/history', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[ReleaseEntity]', # noqa: E501 + response_type='list[EntityHistoryEntry]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3451,47 +5471,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_revision(self, rev_id, **kwargs): # noqa: E501 - """get_creator_revision # noqa: E501 + 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_creator_revision(rev_id, async=True) + >>> thread = api.get_fileset_redirects(ident, 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 creators, none accepted (yet). - :param str hide: List of entity fields to elide in response. For creators, none accepted (yet). - :return: CreatorEntity + :param str ident: (required) + :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + return self.get_fileset_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + (data) = self.get_fileset_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 - """get_creator_revision # noqa: E501 + 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_creator_revision_with_http_info(rev_id, async=True) + >>> thread = api.get_fileset_redirects_with_http_info(ident, 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 creators, none accepted (yet). - :param str hide: List of entity fields to elide in response. For creators, none accepted (yet). - :return: CreatorEntity + :param str ident: (required) + :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3502,26 +5518,22 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_creator_revision" % key + " to method get_fileset_redirects" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'rev_id' is set - if ('rev_id' not in params or - params['rev_id'] is None): - raise ValueError("Missing the required parameter `rev_id` when calling `get_creator_revision`") # noqa: E501 + # 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 'rev_id' in params: - path_params['rev_id'] = params['rev_id'] # noqa: E501 + 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 = {} @@ -3541,14 +5553,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/rev/{rev_id}', 'GET', + '/fileset/{ident}/redirects', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CreatorEntity', # noqa: E501 + response_type='list[str]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3556,43 +5568,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_editgroup(self, editgroup_id, **kwargs): # noqa: E501 - """get_editgroup # noqa: E501 + 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_editgroup(editgroup_id, async=True) + >>> thread = api.get_fileset_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param str editgroup_id: base32-encoded unique identifier (required) - :return: Editgroup + :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_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 + return self.get_fileset_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 + (data) = self.get_fileset_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_editgroup_with_http_info(self, editgroup_id, **kwargs): # noqa: E501 - """get_editgroup # noqa: E501 + 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_editgroup_with_http_info(editgroup_id, async=True) + >>> thread = api.get_fileset_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param str editgroup_id: base32-encoded unique identifier (required) - :return: Editgroup + :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 = ['editgroup_id'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3603,30 +5619,26 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_editgroup" % key + " to method get_fileset_revision" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'editgroup_id' is set - if ('editgroup_id' not in params or - params['editgroup_id'] is None): - raise ValueError("Missing the required parameter `editgroup_id` when calling `get_editgroup`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_fileset_revision`") # noqa: E501 - if ('editgroup_id' in params and - len(params['editgroup_id']) > 26): - raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be less than or equal to `26`") # noqa: E501 - if ('editgroup_id' in params and - len(params['editgroup_id']) < 26): - raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be greater than or equal to `26`") # noqa: E501 - if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501 - raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501 collection_formats = {} path_params = {} - if 'editgroup_id' in params: - path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501 + 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 = {} @@ -3646,14 +5658,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editgroup/{editgroup_id}', 'GET', + '/fileset/rev/{rev_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Editgroup', # noqa: E501 + response_type='FilesetEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3661,43 +5673,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_editor(self, editor_id, **kwargs): # noqa: E501 - """get_editor # noqa: E501 + def get_release(self, ident, **kwargs): # noqa: E501 + """get_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor(editor_id, async=True) + >>> thread = api.get_release(ident, async=True) >>> result = thread.get() :param async bool - :param str editor_id: (required) - :return: Editor + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid. + :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. + :return: ReleaseEntity If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501 + return self.get_release_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501 + (data) = self.get_release_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_editor_with_http_info(self, editor_id, **kwargs): # noqa: E501 - """get_editor # noqa: E501 + def get_release_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor_with_http_info(editor_id, async=True) + >>> thread = api.get_release_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str editor_id: (required) - :return: Editor + :param str ident: (required) + :param str expand: List of sub-entities to expand in response. For releases, 'files', 'filesets, 'webcaptures', 'container', and 'creators' are valid. + :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. + :return: ReleaseEntity If the method is called asynchronously, returns the request thread. """ - all_params = ['editor_id'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3708,22 +5724,26 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_editor" % key + " to method get_release" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'editor_id' is set - if ('editor_id' not in params or - params['editor_id'] is None): - raise ValueError("Missing the required parameter `editor_id` when calling `get_editor`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_release`") # noqa: E501 collection_formats = {} path_params = {} - if 'editor_id' in params: - path_params['editor_id'] = params['editor_id'] # noqa: E501 + 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 = {} @@ -3743,14 +5763,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editor/{editor_id}', 'GET', + '/release/{ident}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Editor', # noqa: E501 + response_type='ReleaseEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3758,43 +5778,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_editor_changelog(self, editor_id, **kwargs): # noqa: E501 - """get_editor_changelog # noqa: E501 + def get_release_edit(self, edit_id, **kwargs): # noqa: E501 + """get_release_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor_changelog(editor_id, async=True) + >>> thread = api.get_release_edit(edit_id, async=True) >>> result = thread.get() :param async bool - :param str editor_id: (required) - :return: list[ChangelogEntry] + :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_editor_changelog_with_http_info(editor_id, **kwargs) # noqa: E501 + return self.get_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.get_editor_changelog_with_http_info(editor_id, **kwargs) # noqa: E501 + (data) = self.get_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def get_editor_changelog_with_http_info(self, editor_id, **kwargs): # noqa: E501 - """get_editor_changelog # noqa: E501 + def get_release_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 + """get_release_edit # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor_changelog_with_http_info(editor_id, async=True) + >>> thread = api.get_release_edit_with_http_info(edit_id, async=True) >>> result = thread.get() :param async bool - :param str editor_id: (required) - :return: list[ChangelogEntry] + :param int edit_id: (required) + :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['editor_id'] # noqa: E501 + all_params = ['edit_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3805,20 +5825,20 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_editor_changelog" % key + " to method get_release_edit" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'editor_id' is set - if ('editor_id' not in params or - params['editor_id'] is None): - raise ValueError("Missing the required parameter `editor_id` when calling `get_editor_changelog`") # noqa: E501 + # verify the required parameter 'edit_id' is set + if ('edit_id' not in params or + params['edit_id'] is None): + raise ValueError("Missing the required parameter `edit_id` when calling `get_release_edit`") # noqa: E501 collection_formats = {} path_params = {} - if 'editor_id' in params: - path_params['editor_id'] = params['editor_id'] # noqa: E501 + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 query_params = [] @@ -3840,14 +5860,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editor/{editor_id}/changelog', 'GET', + '/release/edit/{edit_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[ChangelogEntry]', # noqa: E501 + response_type='EntityEdit', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3855,47 +5875,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file(self, ident, **kwargs): # noqa: E501 - """get_file # noqa: E501 + def get_release_files(self, ident, **kwargs): # noqa: E501 + """get_release_files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file(ident, async=True) + >>> thread = api.get_release_files(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). :param str hide: List of entity fields to elide in response. For files, none accepted (yet). - :return: FileEntity + :return: list[FileEntity] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_file # noqa: E501 + def get_release_files_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_release_files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_with_http_info(ident, async=True) + >>> thread = api.get_release_files_with_http_info(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). :param str hide: List of entity fields to elide in response. For files, none accepted (yet). - :return: FileEntity + :return: list[FileEntity] If the method is called asynchronously, returns the request thread. """ - all_params = ['ident', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3906,14 +5924,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_file" % key + " to method get_release_files" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_file`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_release_files`") # noqa: E501 collection_formats = {} @@ -3922,8 +5940,6 @@ class DefaultApi(object): 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 @@ -3945,14 +5961,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{ident}', 'GET', + '/release/{ident}/files', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='FileEntity', # noqa: E501 + response_type='list[FileEntity]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3960,43 +5976,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_edit(self, edit_id, **kwargs): # noqa: E501 - """get_file_edit # noqa: E501 + 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_file_edit(edit_id, async=True) + >>> thread = api.get_release_filesets(ident, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: EntityEdit + :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_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.get_release_filesets_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.get_release_filesets_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """get_file_edit # noqa: E501 + 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_file_edit_with_http_info(edit_id, async=True) + >>> thread = api.get_release_filesets_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: EntityEdit + :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 = ['edit_id'] # noqa: E501 + all_params = ['ident', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4007,22 +6025,24 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_file_edit" % key + " to method get_release_filesets" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'edit_id' is set - if ('edit_id' not in params or - params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `get_file_edit`") # noqa: E501 + # 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 'edit_id' in params: - path_params['edit_id'] = params['edit_id'] # noqa: E501 + 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 = {} @@ -4042,14 +6062,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/edit/{edit_id}', 'GET', + '/release/{ident}/filesets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='EntityEdit', # noqa: E501 + response_type='list[FilesetEntity]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4057,12 +6077,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_history(self, ident, **kwargs): # noqa: E501 - """get_file_history # noqa: E501 + def get_release_history(self, ident, **kwargs): # noqa: E501 + """get_release_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_history(ident, async=True) + >>> thread = api.get_release_history(ident, async=True) >>> result = thread.get() :param async bool @@ -4074,17 +6094,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_history_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_file_history # noqa: E501 + def get_release_history_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_release_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_history_with_http_info(ident, async=True) + >>> thread = api.get_release_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -4106,14 +6126,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_file_history" % key + " to method get_release_history" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_file_history`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_release_history`") # noqa: E501 collection_formats = {} @@ -4143,7 +6163,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{ident}/history', 'GET', + '/release/{ident}/history', 'GET', path_params, query_params, header_params, @@ -4158,12 +6178,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_redirects(self, ident, **kwargs): # noqa: E501 - """get_file_redirects # noqa: E501 + def get_release_redirects(self, ident, **kwargs): # noqa: E501 + """get_release_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_redirects(ident, async=True) + >>> thread = api.get_release_redirects(ident, async=True) >>> result = thread.get() :param async bool @@ -4174,17 +6194,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_file_redirects # noqa: E501 + def get_release_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 + """get_release_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_redirects_with_http_info(ident, async=True) + >>> thread = api.get_release_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -4205,14 +6225,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_file_redirects" % key + " to method get_release_redirects" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'ident' is set if ('ident' not in params or params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_file_redirects`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_release_redirects`") # noqa: E501 collection_formats = {} @@ -4240,7 +6260,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{ident}/redirects', 'GET', + '/release/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -4255,42 +6275,42 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_revision(self, rev_id, **kwargs): # noqa: E501 - """get_file_revision # noqa: E501 + def get_release_revision(self, rev_id, **kwargs): # noqa: E501 + """get_release_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_revision(rev_id, async=True) + >>> thread = api.get_release_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 files, none accepted (yet). - :param str hide: List of entity fields to elide in response. For files, none accepted (yet). - :return: FileEntity + :param str expand: List of sub-entities to expand in response. For releases, none accepted (yet). + :param str hide: List of entity fields to elide in response. For releases, none accepted (yet). + :return: ReleaseEntity If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + return self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + (data) = self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_file_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 - """get_file_revision # noqa: E501 + def get_release_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 + """get_release_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_revision_with_http_info(rev_id, async=True) + >>> thread = api.get_release_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 files, none accepted (yet). - :param str hide: List of entity fields to elide in response. For files, none accepted (yet). - :return: FileEntity + :param str expand: List of sub-entities to expand in response. For releases, none accepted (yet). + :param str hide: List of entity fields to elide in response. For releases, none accepted (yet). + :return: ReleaseEntity If the method is called asynchronously, returns the request thread. """ @@ -4306,14 +6326,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_file_revision" % key + " to method get_release_revision" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'rev_id' is set if ('rev_id' not in params or params['rev_id'] is None): - raise ValueError("Missing the required parameter `rev_id` when calling `get_file_revision`") # noqa: E501 + raise ValueError("Missing the required parameter `rev_id` when calling `get_release_revision`") # noqa: E501 collection_formats = {} @@ -4345,14 +6365,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/rev/{rev_id}', 'GET', + '/release/rev/{rev_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='FileEntity', # noqa: E501 + response_type='ReleaseEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4360,47 +6380,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release(self, ident, **kwargs): # noqa: E501 - """get_release # noqa: E501 + 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(ident, async=True) + >>> thread = api.get_release_webcaptures(ident, async=True) >>> result = thread.get() :param async bool :param str ident: (required) - :param str expand: List of sub-entities to expand in response. For releases, 'files', '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 + :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_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_release_webcaptures_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_release_webcaptures_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_release # noqa: E501 + 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_with_http_info(ident, 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 expand: List of sub-entities to expand in response. For releases, 'files', '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 + :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', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4411,14 +6429,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_release" % key + " 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`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_release_webcaptures`") # noqa: E501 collection_formats = {} @@ -4427,8 +6445,6 @@ class DefaultApi(object): 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 @@ -4450,14 +6466,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{ident}', 'GET', + '/release/{ident}/webcaptures', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ReleaseEntity', # noqa: E501 + response_type='list[WebcaptureEntity]', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4465,43 +6481,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_edit(self, edit_id, **kwargs): # noqa: E501 - """get_release_edit # noqa: E501 + 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_release_edit(edit_id, async=True) + >>> thread = api.get_webcapture(ident, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: EntityEdit + :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_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + return self.get_webcapture_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_edit_with_http_info(edit_id, **kwargs) # noqa: E501 + (data) = self.get_webcapture_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_edit_with_http_info(self, edit_id, **kwargs): # noqa: E501 - """get_release_edit # noqa: E501 + 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_release_edit_with_http_info(edit_id, async=True) + >>> thread = api.get_webcapture_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param int edit_id: (required) - :return: EntityEdit + :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 = ['edit_id'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4512,22 +6532,26 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_release_edit" % key + " to method get_webcapture" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'edit_id' is set - if ('edit_id' not in params or - params['edit_id'] is None): - raise ValueError("Missing the required parameter `edit_id` when calling `get_release_edit`") # noqa: E501 + # 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 'edit_id' in params: - path_params['edit_id'] = params['edit_id'] # noqa: E501 + 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 = {} @@ -4547,14 +6571,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/edit/{edit_id}', 'GET', + '/webcapture/{ident}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='EntityEdit', # noqa: E501 + response_type='WebcaptureEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4562,45 +6586,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_files(self, ident, **kwargs): # noqa: E501 - """get_release_files # noqa: E501 + 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_release_files(ident, async=True) + >>> thread = api.get_webcapture_edit(edit_id, async=True) >>> result = thread.get() :param async bool - :param str ident: (required) - :param str hide: List of entity fields to elide in response. For files, none accepted (yet). - :return: list[FileEntity] + :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_release_files_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_webcapture_edit_with_http_info(edit_id, **kwargs) # noqa: E501 else: - (data) = self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_webcapture_edit_with_http_info(edit_id, **kwargs) # noqa: E501 return data - def get_release_files_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_release_files # noqa: E501 + 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_release_files_with_http_info(ident, async=True) + >>> thread = api.get_webcapture_edit_with_http_info(edit_id, async=True) >>> result = thread.get() - :param async bool - :param str ident: (required) - :param str hide: List of entity fields to elide in response. For files, none accepted (yet). - :return: list[FileEntity] + :param async bool + :param int edit_id: (required) + :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['ident', 'hide'] # noqa: E501 + all_params = ['edit_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4611,24 +6633,22 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_release_files" % key + " to method get_webcapture_edit" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ident' is set - if ('ident' not in params or - params['ident'] is None): - raise ValueError("Missing the required parameter `ident` when calling `get_release_files`") # noqa: E501 + # 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 'ident' in params: - path_params['ident'] = params['ident'] # noqa: E501 + if 'edit_id' in params: + path_params['edit_id'] = params['edit_id'] # noqa: E501 query_params = [] - if 'hide' in params: - query_params.append(('hide', params['hide'])) # noqa: E501 header_params = {} @@ -4648,14 +6668,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{ident}/files', 'GET', + '/webcapture/edit/{edit_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[FileEntity]', # noqa: E501 + response_type='EntityEdit', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4663,12 +6683,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_history(self, ident, **kwargs): # noqa: E501 - """get_release_history # noqa: E501 + 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_release_history(ident, async=True) + >>> thread = api.get_webcapture_history(ident, async=True) >>> result = thread.get() :param async bool @@ -4680,17 +6700,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_webcapture_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_webcapture_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_history_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_release_history # noqa: E501 + 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_release_history_with_http_info(ident, async=True) + >>> thread = api.get_webcapture_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -4712,14 +6732,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_release_history" % key + " 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_release_history`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_webcapture_history`") # noqa: E501 collection_formats = {} @@ -4749,7 +6769,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{ident}/history', 'GET', + '/webcapture/{ident}/history', 'GET', path_params, query_params, header_params, @@ -4764,12 +6784,12 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_redirects(self, ident, **kwargs): # noqa: E501 - """get_release_redirects # noqa: E501 + 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_release_redirects(ident, async=True) + >>> thread = api.get_webcapture_redirects(ident, async=True) >>> result = thread.get() :param async bool @@ -4780,17 +6800,17 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501 + return self.get_webcapture_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501 + (data) = self.get_webcapture_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 - """get_release_redirects # noqa: E501 + 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_release_redirects_with_http_info(ident, async=True) + >>> thread = api.get_webcapture_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool @@ -4811,14 +6831,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_release_redirects" % key + " 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_release_redirects`") # noqa: E501 + raise ValueError("Missing the required parameter `ident` when calling `get_webcapture_redirects`") # noqa: E501 collection_formats = {} @@ -4846,7 +6866,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{ident}/redirects', 'GET', + '/webcapture/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -4861,42 +6881,42 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_revision(self, rev_id, **kwargs): # noqa: E501 - """get_release_revision # noqa: E501 + 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_release_revision(rev_id, 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 releases, none accepted (yet). - :param str hide: List of entity fields to elide in response. For releases, none accepted (yet). - :return: ReleaseEntity + :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_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + return self.get_webcapture_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501 + (data) = self.get_webcapture_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_release_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 - """get_release_revision # noqa: E501 + 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_release_revision_with_http_info(rev_id, 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 releases, none accepted (yet). - :param str hide: List of entity fields to elide in response. For releases, none accepted (yet). - :return: ReleaseEntity + :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. """ @@ -4912,14 +6932,14 @@ class DefaultApi(object): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_release_revision" % key + " 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_release_revision`") # noqa: E501 + raise ValueError("Missing the required parameter `rev_id` when calling `get_webcapture_revision`") # noqa: E501 collection_formats = {} @@ -4951,14 +6971,14 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/rev/{rev_id}', 'GET', + '/webcapture/rev/{rev_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ReleaseEntity', # noqa: E501 + response_type='WebcaptureEntity', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -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: @@ -132,6 +142,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: @@ -594,6 +606,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 -- cgit v1.2.3