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/api/default_api.py | 3738 ++++++++++++++++++++++++------- 1 file changed, 2988 insertions(+), 750 deletions(-) (limited to 'python/fatcat_client/api') 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 -- cgit v1.2.3