Skip to content

Commit ff95ec7

Browse files
authored
Merge pull request #126 from RevEngAI/sdk-update-v3.58.0
🤖 Update SDK to version v3.58.0
2 parents 821a146 + 404af7c commit ff95ec7

24 files changed

+707
-115
lines changed

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.57.2
1+
v3.58.0

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Class | Method | HTTP request | Description
4646
*AnalysesCommentsApi* | [**get_analysis_comments**](docs/AnalysesCommentsApi.md#get_analysis_comments) | **GET** /v2/analyses/{analysis_id}/comments | Get comments for this analysis
4747
*AnalysesCommentsApi* | [**update_analysis_comment**](docs/AnalysesCommentsApi.md#update_analysis_comment) | **PATCH** /v2/analyses/{analysis_id}/comments/{comment_id} | Update a comment
4848
*AnalysesCoreApi* | [**bulk_add_analysis_tags**](docs/AnalysesCoreApi.md#bulk_add_analysis_tags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags
49+
*AnalysesCoreApi* | [**bulk_delete_analyses**](docs/AnalysesCoreApi.md#bulk_delete_analyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses
4950
*AnalysesCoreApi* | [**create_analysis**](docs/AnalysesCoreApi.md#create_analysis) | **POST** /v2/analyses | Create Analysis
5051
*AnalysesCoreApi* | [**delete_analysis**](docs/AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
5152
*AnalysesCoreApi* | [**get_analysis_basic_info**](docs/AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information
@@ -285,6 +286,7 @@ Class | Method | HTTP request | Description
285286
- [BinaryTaskStatus](docs/BinaryTaskStatus.md)
286287
- [Block](docs/Block.md)
287288
- [BlockCommentsGenerationForFunctionResponse](docs/BlockCommentsGenerationForFunctionResponse.md)
289+
- [BulkDeleteAnalysesRequest](docs/BulkDeleteAnalysesRequest.md)
288290
- [CalleeFunctionInfo](docs/CalleeFunctionInfo.md)
289291
- [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md)
290292
- [CallerFunctionInfo](docs/CallerFunctionInfo.md)

docs/AnalysesCoreApi.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.reveng.ai*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**bulk_add_analysis_tags**](AnalysesCoreApi.md#bulk_add_analysis_tags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags
8+
[**bulk_delete_analyses**](AnalysesCoreApi.md#bulk_delete_analyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses
89
[**create_analysis**](AnalysesCoreApi.md#create_analysis) | **POST** /v2/analyses | Create Analysis
910
[**delete_analysis**](AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
1011
[**get_analysis_basic_info**](AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information
@@ -115,6 +116,101 @@ Name | Type | Description | Notes
115116

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

119+
# **bulk_delete_analyses**
120+
> 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)
121+
122+
Bulk Delete Analyses
123+
124+
Deletes multiple analyses. User must be the owner of all analyses.
125+
126+
### Example
127+
128+
* Api Key Authentication (APIKey):
129+
130+
```python
131+
import revengai
132+
from revengai.models.base_response_dict import BaseResponseDict
133+
from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest
134+
from revengai.rest import ApiException
135+
from pprint import pprint
136+
137+
# Defining the host is optional and defaults to https://api.reveng.ai
138+
# See configuration.py for a list of all supported configuration parameters.
139+
configuration = revengai.Configuration(
140+
host = "https://api.reveng.ai"
141+
)
142+
143+
# The client must configure the authentication and authorization parameters
144+
# in accordance with the API server security policy.
145+
# Examples for each auth method are provided below, use the example that
146+
# satisfies your auth use case.
147+
148+
# Configure API key authorization: APIKey
149+
configuration.api_key['APIKey'] = os.environ["API_KEY"]
150+
151+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
152+
# configuration.api_key_prefix['APIKey'] = 'Bearer'
153+
154+
# Enter a context with an instance of the API client
155+
with revengai.ApiClient(configuration) as api_client:
156+
# Create an instance of the API class
157+
api_instance = revengai.AnalysesCoreApi(api_client)
158+
bulk_delete_analyses_request = revengai.BulkDeleteAnalysesRequest() # BulkDeleteAnalysesRequest |
159+
endpoint_url = 'endpoint_url_example' # str | (optional)
160+
local_cache_dir = 'local_cache_dir_example' # str | (optional)
161+
local_cache_max_size_mb = 56 # int | (optional)
162+
customer_samples_bucket = 'customer_samples_bucket_example' # str | (optional)
163+
firmware_samples_bucket = 'firmware_samples_bucket_example' # str | (optional)
164+
max_retry_attempts = 5 # int | (optional) (default to 5)
165+
166+
try:
167+
# Bulk Delete Analyses
168+
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)
169+
print("The response of AnalysesCoreApi->bulk_delete_analyses:\n")
170+
pprint(api_response)
171+
except Exception as e:
172+
print("Exception when calling AnalysesCoreApi->bulk_delete_analyses: %s\n" % e)
173+
```
174+
175+
176+
177+
### Parameters
178+
179+
180+
Name | Type | Description | Notes
181+
------------- | ------------- | ------------- | -------------
182+
**bulk_delete_analyses_request** | [**BulkDeleteAnalysesRequest**](BulkDeleteAnalysesRequest.md)| |
183+
**endpoint_url** | **str**| | [optional]
184+
**local_cache_dir** | **str**| | [optional]
185+
**local_cache_max_size_mb** | **int**| | [optional]
186+
**customer_samples_bucket** | **str**| | [optional]
187+
**firmware_samples_bucket** | **str**| | [optional]
188+
**max_retry_attempts** | **int**| | [optional] [default to 5]
189+
190+
### Return type
191+
192+
[**BaseResponseDict**](BaseResponseDict.md)
193+
194+
### Authorization
195+
196+
[APIKey](../README.md#APIKey)
197+
198+
### HTTP request headers
199+
200+
- **Content-Type**: application/json
201+
- **Accept**: application/json
202+
203+
### HTTP response details
204+
205+
| Status code | Description | Response headers |
206+
|-------------|-------------|------------------|
207+
**200** | Successful Response | - |
208+
**422** | Invalid request parameters | - |
209+
**404** | Not Found | - |
210+
**403** | Forbidden | - |
211+
212+
[[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)
213+
118214
# **create_analysis**
119215
> 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)
120216

docs/BulkDeleteAnalysesRequest.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# BulkDeleteAnalysesRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**analysis_ids** | **List[int]** | |
9+
10+
## Example
11+
12+
```python
13+
from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of BulkDeleteAnalysesRequest from a JSON string
18+
bulk_delete_analyses_request_instance = BulkDeleteAnalysesRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(BulkDeleteAnalysesRequest.to_json())
21+
22+
# convert the object into a dict
23+
bulk_delete_analyses_request_dict = bulk_delete_analyses_request_instance.to_dict()
24+
# create an instance of BulkDeleteAnalysesRequest from a dict
25+
bulk_delete_analyses_request_from_dict = BulkDeleteAnalysesRequest.from_dict(bulk_delete_analyses_request_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

revengai/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v3.57.2"
16+
__version__ = "v3.58.0"
1717

1818
# Define package exports
1919
__all__ = [
@@ -176,6 +176,7 @@
176176
"BinaryTaskStatus",
177177
"Block",
178178
"BlockCommentsGenerationForFunctionResponse",
179+
"BulkDeleteAnalysesRequest",
179180
"CalleeFunctionInfo",
180181
"CalleesCallerFunctionsResponse",
181182
"CallerFunctionInfo",
@@ -528,6 +529,7 @@
528529
from revengai.models.binary_task_status import BinaryTaskStatus as BinaryTaskStatus
529530
from revengai.models.block import Block as Block
530531
from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse as BlockCommentsGenerationForFunctionResponse
532+
from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest as BulkDeleteAnalysesRequest
531533
from revengai.models.callee_function_info import CalleeFunctionInfo as CalleeFunctionInfo
532534
from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse as CalleesCallerFunctionsResponse
533535
from revengai.models.caller_function_info import CallerFunctionInfo as CallerFunctionInfo

0 commit comments

Comments
 (0)