Skip to content

Commit 8eaf98e

Browse files
Update SDK to version v3.12.0
- Generated from OpenAPI spec version v3.12.0 - Auto-generated by GitHub Actions
1 parent 3e061b8 commit 8eaf98e

20 files changed

Lines changed: 581 additions & 12 deletions

.sdk-version

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Class | Method | HTTP request | Description
5252
*AnalysesCoreApi* | [**get_analysis_logs**](docs/AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis
5353
*AnalysesCoreApi* | [**get_analysis_params**](docs/AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information
5454
*AnalysesCoreApi* | [**get_analysis_status**](docs/AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis
55+
*AnalysesCoreApi* | [**insert_analysis_log**](docs/AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis
5556
*AnalysesCoreApi* | [**list_analyses**](docs/AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses
5657
*AnalysesCoreApi* | [**lookup_binary_id**](docs/AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID
5758
*AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
@@ -364,6 +365,7 @@ Class | Method | HTTP request | Description
364365
- [ISA](docs/ISA.md)
365366
- [IconModel](docs/IconModel.md)
366367
- [ImportModel](docs/ImportModel.md)
368+
- [InsertAnalysisLogRequest](docs/InsertAnalysisLogRequest.md)
367369
- [InverseFunctionMapItem](docs/InverseFunctionMapItem.md)
368370
- [InverseStringMapItem](docs/InverseStringMapItem.md)
369371
- [InverseValue](docs/InverseValue.md)

docs/AnalysesCoreApi.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Method | HTTP request | Description
1111
[**get_analysis_logs**](AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis
1212
[**get_analysis_params**](AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information
1313
[**get_analysis_status**](AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis
14+
[**insert_analysis_log**](AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis
1415
[**list_analyses**](AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses
1516
[**lookup_binary_id**](AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID
1617
[**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
@@ -586,6 +587,89 @@ Name | Type | Description | Notes
586587

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

590+
# **insert_analysis_log**
591+
> BaseResponse insert_analysis_log(analysis_id, insert_analysis_log_request)
592+
593+
Insert a log entry for an analysis
594+
595+
Inserts a log record for an analysis. Only the analysis owner can insert logs.
596+
597+
### Example
598+
599+
* Api Key Authentication (APIKey):
600+
601+
```python
602+
import revengai
603+
from revengai.models.base_response import BaseResponse
604+
from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest
605+
from revengai.rest import ApiException
606+
from pprint import pprint
607+
608+
# Defining the host is optional and defaults to https://api.reveng.ai
609+
# See configuration.py for a list of all supported configuration parameters.
610+
configuration = revengai.Configuration(
611+
host = "https://api.reveng.ai"
612+
)
613+
614+
# The client must configure the authentication and authorization parameters
615+
# in accordance with the API server security policy.
616+
# Examples for each auth method are provided below, use the example that
617+
# satisfies your auth use case.
618+
619+
# Configure API key authorization: APIKey
620+
configuration.api_key['APIKey'] = os.environ["API_KEY"]
621+
622+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
623+
# configuration.api_key_prefix['APIKey'] = 'Bearer'
624+
625+
# Enter a context with an instance of the API client
626+
with revengai.ApiClient(configuration) as api_client:
627+
# Create an instance of the API class
628+
api_instance = revengai.AnalysesCoreApi(api_client)
629+
analysis_id = 56 # int |
630+
insert_analysis_log_request = revengai.InsertAnalysisLogRequest() # InsertAnalysisLogRequest |
631+
632+
try:
633+
# Insert a log entry for an analysis
634+
api_response = api_instance.insert_analysis_log(analysis_id, insert_analysis_log_request)
635+
print("The response of AnalysesCoreApi->insert_analysis_log:\n")
636+
pprint(api_response)
637+
except Exception as e:
638+
print("Exception when calling AnalysesCoreApi->insert_analysis_log: %s\n" % e)
639+
```
640+
641+
642+
643+
### Parameters
644+
645+
646+
Name | Type | Description | Notes
647+
------------- | ------------- | ------------- | -------------
648+
**analysis_id** | **int**| |
649+
**insert_analysis_log_request** | [**InsertAnalysisLogRequest**](InsertAnalysisLogRequest.md)| |
650+
651+
### Return type
652+
653+
[**BaseResponse**](BaseResponse.md)
654+
655+
### Authorization
656+
657+
[APIKey](../README.md#APIKey)
658+
659+
### HTTP request headers
660+
661+
- **Content-Type**: application/json
662+
- **Accept**: application/json
663+
664+
### HTTP response details
665+
666+
| Status code | Description | Response headers |
667+
|-------------|-------------|------------------|
668+
**201** | Successful Response | - |
669+
**422** | Invalid request parameters | - |
670+
671+
[[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)
672+
589673
# **list_analyses**
590674
> BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order)
591675

docs/BaseResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True]
9-
**data** | [**AnyOf**](AnyOf.md) | Response data | [optional]
9+
**data** | **object** | | [optional]
1010
**message** | **str** | | [optional]
1111
**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional]
1212
**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional]

docs/Basic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**binary_id** | **int** | The ID of the binary |
89
**binary_name** | **str** | The name of the binary uploaded |
910
**binary_size** | **int** | The size of the binary uploaded (bytes) |
1011
**creation** | **datetime** | When the binary was uploaded |

docs/InsertAnalysisLogRequest.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# InsertAnalysisLogRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**log** | **str** | The log message to insert for the analysis |
9+
10+
## Example
11+
12+
```python
13+
from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of InsertAnalysisLogRequest from a JSON string
18+
insert_analysis_log_request_instance = InsertAnalysisLogRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(InsertAnalysisLogRequest.to_json())
21+
22+
# convert the object into a dict
23+
insert_analysis_log_request_dict = insert_analysis_log_request_instance.to_dict()
24+
# create an instance of InsertAnalysisLogRequest from a dict
25+
insert_analysis_log_request_from_dict = InsertAnalysisLogRequest.from_dict(insert_analysis_log_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+

docs/ModelName.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Custom enum for the model name
1616

1717
* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_LINUX` (value: `'binnet-0.7-arm-64-linux'`)
1818

19+
* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-x86-64-android'`)
20+
21+
* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_ANDROID` (value: `'binnet-0.7-x86-32-android'`)
22+
23+
* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-arm-64-android'`)
24+
1925
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2026

2127

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.8.1"
16+
__version__ = "v3.12.0"
1717

1818
# Define package exports
1919
__all__ = [
@@ -259,6 +259,7 @@
259259
"ISA",
260260
"IconModel",
261261
"ImportModel",
262+
"InsertAnalysisLogRequest",
262263
"InverseFunctionMapItem",
263264
"InverseStringMapItem",
264265
"InverseValue",
@@ -587,6 +588,7 @@
587588
from revengai.models.isa import ISA as ISA
588589
from revengai.models.icon_model import IconModel as IconModel
589590
from revengai.models.import_model import ImportModel as ImportModel
591+
from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest as InsertAnalysisLogRequest
590592
from revengai.models.inverse_function_map_item import InverseFunctionMapItem as InverseFunctionMapItem
591593
from revengai.models.inverse_string_map_item import InverseStringMapItem as InverseStringMapItem
592594
from revengai.models.inverse_value import InverseValue as InverseValue

0 commit comments

Comments
 (0)