diff --git a/CHANGELOG.md b/CHANGELOG.md index d80259c..2663a6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ [1]: https://pypi.org/project/demisto-py/#history ## 2.0.7 -* Added `investigation_add_entries_sync_handler` method creating a new entry in existing investigation. +* Added `investigation_add_entries_sync` method creating a new entry in existing investigation. * Added `download_file` method for downloading files by entry id. * Added `integration_upload` method for uploading integrations to Demisto. diff --git a/demisto_client/demisto_api/api/default_api.py b/demisto_client/demisto_api/api/default_api.py index f83105e..7fb6d1d 100644 --- a/demisto_client/demisto_api/api/default_api.py +++ b/demisto_client/demisto_api/api/default_api.py @@ -4600,13 +4600,13 @@ def integration_upload_with_http_info(self, file, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def investigation_add_entries_sync_handler(self, **kwargs): # noqa: E501 + def investigation_add_entries_sync(self, **kwargs): # noqa: E501 """Create new entry in existing investigation # noqa: E501 API to create an entry (markdown format) in existing investigation Body example: {\"investigationId\":\"1234\",\"data\":\"entry content…\"} # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.investigation_add_entries_sync_handler(async_req=True) + >>> thread = api.investigation_add_entries_sync(async_req=True) >>> result = thread.get() :param async_req bool @@ -4617,18 +4617,18 @@ def investigation_add_entries_sync_handler(self, **kwargs): # noqa: E501 """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.investigation_add_entries_sync_handler_with_http_info(**kwargs) # noqa: E501 + return self.investigation_add_entries_sync_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.investigation_add_entries_sync_handler_with_http_info(**kwargs) # noqa: E501 + (data) = self.investigation_add_entries_sync_with_http_info(**kwargs) # noqa: E501 return data - def investigation_add_entries_sync_handler_with_http_info(self, **kwargs): # noqa: E501 + def investigation_add_entries_sync_with_http_info(self, **kwargs): # noqa: E501 """Create new entry in existing investigation # noqa: E501 API to create an entry (markdown format) in existing investigation Body example: {\"investigationId\":\"1234\",\"data\":\"entry content…\"} # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.investigation_add_entries_sync_handler_with_http_info(async_req=True) + >>> thread = api.investigation_add_entries_sync_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool @@ -4649,7 +4649,7 @@ def investigation_add_entries_sync_handler_with_http_info(self, **kwargs): # no if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method investigation_add_entries_sync_handler" % key + " to method investigation_add_entries_sync" % key ) params[key] = val del params['kwargs'] diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 0b173e9..40e8f02 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -50,7 +50,7 @@ Method | HTTP request | Description [**indicators_edit**](DefaultApi.md#indicators_edit) | **POST** /indicator/edit | Edit Indicator [**indicators_search**](DefaultApi.md#indicators_search) | **POST** /indicators/search | Search indicators [**integration_upload**](DefaultApi.md#integration_upload) | **POST** /settings/integration-conf/upload | Upload an integration -[**investigation_add_entries_sync_handler**](DefaultApi.md#investigation_add_entries_sync_handler) | **POST** /entry/execute/sync | Create new entry in existing investigation +[**investigation_add_entries_sync**](DefaultApi.md#investigation_add_entries_sync) | **POST** /entry/execute/sync | Create new entry in existing investigation [**investigation_add_entry_handler**](DefaultApi.md#investigation_add_entry_handler) | **POST** /entry | Create new entry in existing investigation [**investigation_add_formatted_entry_handler**](DefaultApi.md#investigation_add_formatted_entry_handler) | **POST** /entry/formatted | Create new formatted entry in existing investigation [**revoke_user_api_key**](DefaultApi.md#revoke_user_api_key) | **POST** /apikeys/revoke/user/{username} | @@ -2296,8 +2296,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **investigation_add_entries_sync_handler** -> list[Entry] investigation_add_entries_sync_handler(update_entry=update_entry) +# **investigation_add_entries_sync** +> list[Entry] investigation_add_entries_sync(update_entry=update_entry) Create new entry in existing investigation @@ -2317,10 +2317,10 @@ update_entry = demisto_client.demisto_api.UpdateEntry() # UpdateEntry | (option try: # Create new entry in existing investigation - api_response = api_instance.investigation_add_entries_sync_handler(update_entry=update_entry) + api_response = api_instance.investigation_add_entries_sync(update_entry=update_entry) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->investigation_add_entries_sync_handler: %s\n" % e) + print("Exception when calling DefaultApi->investigation_add_entries_sync: %s\n" % e) ``` ### Parameters diff --git a/docs/README.md b/docs/README.md index 71a47ac..49880b7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -50,7 +50,7 @@ Method | HTTP request | Description [**indicators_edit**](DefaultApi.md#indicators_edit) | **POST** /indicator/edit | Edit Indicator [**indicators_search**](DefaultApi.md#indicators_search) | **POST** /indicators/search | Search indicators [**integration_upload**](DefaultApi.md#integration_upload) | **POST** /settings/integration-conf/upload | Upload an integration -[**investigation_add_entries_sync_handler**](DefaultApi.md#investigation_add_entries_sync_handler) | **POST** /entry/execute/sync | Create new entry in existing investigation +[**investigation_add_entries_sync**](DefaultApi.md#investigation_add_entries_sync) | **POST** /entry/execute/sync | Create new entry in existing investigation [**investigation_add_entry_handler**](DefaultApi.md#investigation_add_entry_handler) | **POST** /entry | Create new entry in existing investigation [**investigation_add_formatted_entry_handler**](DefaultApi.md#investigation_add_formatted_entry_handler) | **POST** /entry/formatted | Create new formatted entry in existing investigation [**revoke_user_api_key**](DefaultApi.md#revoke_user_api_key) | **POST** /apikeys/revoke/user/{username} | diff --git a/server_api_swagger.json b/server_api_swagger.json index c57c3b7..ac962a7 100644 --- a/server_api_swagger.json +++ b/server_api_swagger.json @@ -218,7 +218,7 @@ "post": { "description": "API to create an entry (markdown format) in existing investigation\nBody example: {\"investigationId\":\"1234\",\"data\":\"entry content…\"}", "summary": "Create new entry in existing investigation", - "operationId": "investigationAddEntriesSyncHandler", + "operationId": "investigationAddEntriesSync", "parameters": [ { "name": "updateEntry",