Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.57.2
v3.58.0
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Class | Method | HTTP request | Description
*AnalysesCommentsApi* | [**get_analysis_comments**](docs/AnalysesCommentsApi.md#get_analysis_comments) | **GET** /v2/analyses/{analysis_id}/comments | Get comments for this analysis
*AnalysesCommentsApi* | [**update_analysis_comment**](docs/AnalysesCommentsApi.md#update_analysis_comment) | **PATCH** /v2/analyses/{analysis_id}/comments/{comment_id} | Update a comment
*AnalysesCoreApi* | [**bulk_add_analysis_tags**](docs/AnalysesCoreApi.md#bulk_add_analysis_tags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags
*AnalysesCoreApi* | [**bulk_delete_analyses**](docs/AnalysesCoreApi.md#bulk_delete_analyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses
*AnalysesCoreApi* | [**create_analysis**](docs/AnalysesCoreApi.md#create_analysis) | **POST** /v2/analyses | Create Analysis
*AnalysesCoreApi* | [**delete_analysis**](docs/AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
*AnalysesCoreApi* | [**get_analysis_basic_info**](docs/AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information
Expand Down Expand Up @@ -285,6 +286,7 @@ Class | Method | HTTP request | Description
- [BinaryTaskStatus](docs/BinaryTaskStatus.md)
- [Block](docs/Block.md)
- [BlockCommentsGenerationForFunctionResponse](docs/BlockCommentsGenerationForFunctionResponse.md)
- [BulkDeleteAnalysesRequest](docs/BulkDeleteAnalysesRequest.md)
- [CalleeFunctionInfo](docs/CalleeFunctionInfo.md)
- [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md)
- [CallerFunctionInfo](docs/CallerFunctionInfo.md)
Expand Down
96 changes: 96 additions & 0 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api.reveng.ai*
Method | HTTP request | Description
------------- | ------------- | -------------
[**bulk_add_analysis_tags**](AnalysesCoreApi.md#bulk_add_analysis_tags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags
[**bulk_delete_analyses**](AnalysesCoreApi.md#bulk_delete_analyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses
[**create_analysis**](AnalysesCoreApi.md#create_analysis) | **POST** /v2/analyses | Create Analysis
[**delete_analysis**](AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
[**get_analysis_basic_info**](AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information
Expand Down Expand Up @@ -115,6 +116,101 @@ 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)

# **bulk_delete_analyses**
> BaseResponseDict bulk_delete_analyses(bulk_delete_analyses_request, endpoint_url=endpoint_url, local_cache_dir=local_cache_dir, local_cache_max_size_mb=local_cache_max_size_mb, customer_samples_bucket=customer_samples_bucket, firmware_samples_bucket=firmware_samples_bucket, max_retry_attempts=max_retry_attempts)

Bulk Delete Analyses

Deletes multiple analyses. User must be the owner of all analyses.

### Example

* Api Key Authentication (APIKey):

```python
import revengai
from revengai.models.base_response_dict import BaseResponseDict
from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.AnalysesCoreApi(api_client)
bulk_delete_analyses_request = revengai.BulkDeleteAnalysesRequest() # BulkDeleteAnalysesRequest |
endpoint_url = 'endpoint_url_example' # str | (optional)
local_cache_dir = 'local_cache_dir_example' # str | (optional)
local_cache_max_size_mb = 56 # int | (optional)
customer_samples_bucket = 'customer_samples_bucket_example' # str | (optional)
firmware_samples_bucket = 'firmware_samples_bucket_example' # str | (optional)
max_retry_attempts = 5 # int | (optional) (default to 5)

try:
# Bulk Delete Analyses
api_response = api_instance.bulk_delete_analyses(bulk_delete_analyses_request, endpoint_url=endpoint_url, local_cache_dir=local_cache_dir, local_cache_max_size_mb=local_cache_max_size_mb, customer_samples_bucket=customer_samples_bucket, firmware_samples_bucket=firmware_samples_bucket, max_retry_attempts=max_retry_attempts)
print("The response of AnalysesCoreApi->bulk_delete_analyses:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnalysesCoreApi->bulk_delete_analyses: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bulk_delete_analyses_request** | [**BulkDeleteAnalysesRequest**](BulkDeleteAnalysesRequest.md)| |
**endpoint_url** | **str**| | [optional]
**local_cache_dir** | **str**| | [optional]
**local_cache_max_size_mb** | **int**| | [optional]
**customer_samples_bucket** | **str**| | [optional]
**firmware_samples_bucket** | **str**| | [optional]
**max_retry_attempts** | **int**| | [optional] [default to 5]

### Return type

[**BaseResponseDict**](BaseResponseDict.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**422** | Invalid request parameters | - |
**404** | Not Found | - |
**403** | Forbidden | - |

[[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)

# **create_analysis**
> BaseResponseAnalysisCreateResponse create_analysis(analysis_create_request, endpoint_url=endpoint_url, local_cache_dir=local_cache_dir, local_cache_max_size_mb=local_cache_max_size_mb, customer_samples_bucket=customer_samples_bucket, firmware_samples_bucket=firmware_samples_bucket, max_retry_attempts=max_retry_attempts, x_rev_eng_application=x_rev_eng_application)

Expand Down
29 changes: 29 additions & 0 deletions docs/BulkDeleteAnalysesRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# BulkDeleteAnalysesRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**analysis_ids** | **List[int]** | |

## Example

```python
from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest

# TODO update the JSON string below
json = "{}"
# create an instance of BulkDeleteAnalysesRequest from a JSON string
bulk_delete_analyses_request_instance = BulkDeleteAnalysesRequest.from_json(json)
# print the JSON string representation of the object
print(BulkDeleteAnalysesRequest.to_json())

# convert the object into a dict
bulk_delete_analyses_request_dict = bulk_delete_analyses_request_instance.to_dict()
# create an instance of BulkDeleteAnalysesRequest from a dict
bulk_delete_analyses_request_from_dict = BulkDeleteAnalysesRequest.from_dict(bulk_delete_analyses_request_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


4 changes: 3 additions & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v3.57.2"
__version__ = "v3.58.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -176,6 +176,7 @@
"BinaryTaskStatus",
"Block",
"BlockCommentsGenerationForFunctionResponse",
"BulkDeleteAnalysesRequest",
"CalleeFunctionInfo",
"CalleesCallerFunctionsResponse",
"CallerFunctionInfo",
Expand Down Expand Up @@ -528,6 +529,7 @@
from revengai.models.binary_task_status import BinaryTaskStatus as BinaryTaskStatus
from revengai.models.block import Block as Block
from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse as BlockCommentsGenerationForFunctionResponse
from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest as BulkDeleteAnalysesRequest
from revengai.models.callee_function_info import CalleeFunctionInfo as CalleeFunctionInfo
from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse as CalleesCallerFunctionsResponse
from revengai.models.caller_function_info import CallerFunctionInfo as CallerFunctionInfo
Expand Down
Loading