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.8.1
v3.12.0
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Class | Method | HTTP request | Description
*AnalysesCoreApi* | [**get_analysis_logs**](docs/AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis
*AnalysesCoreApi* | [**get_analysis_params**](docs/AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information
*AnalysesCoreApi* | [**get_analysis_status**](docs/AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis
*AnalysesCoreApi* | [**insert_analysis_log**](docs/AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis
*AnalysesCoreApi* | [**list_analyses**](docs/AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses
*AnalysesCoreApi* | [**lookup_binary_id**](docs/AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID
*AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
Expand Down Expand Up @@ -364,6 +365,7 @@ Class | Method | HTTP request | Description
- [ISA](docs/ISA.md)
- [IconModel](docs/IconModel.md)
- [ImportModel](docs/ImportModel.md)
- [InsertAnalysisLogRequest](docs/InsertAnalysisLogRequest.md)
- [InverseFunctionMapItem](docs/InverseFunctionMapItem.md)
- [InverseStringMapItem](docs/InverseStringMapItem.md)
- [InverseValue](docs/InverseValue.md)
Expand Down
84 changes: 84 additions & 0 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Method | HTTP request | Description
[**get_analysis_logs**](AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis
[**get_analysis_params**](AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information
[**get_analysis_status**](AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis
[**insert_analysis_log**](AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis
[**list_analyses**](AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses
[**lookup_binary_id**](AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID
[**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
Expand Down Expand Up @@ -586,6 +587,89 @@ 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)

# **insert_analysis_log**
> BaseResponse insert_analysis_log(analysis_id, insert_analysis_log_request)

Insert a log entry for an analysis

Inserts a log record for an analysis. Only the analysis owner can insert logs.

### Example

* Api Key Authentication (APIKey):

```python
import revengai
from revengai.models.base_response import BaseResponse
from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest
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)
analysis_id = 56 # int |
insert_analysis_log_request = revengai.InsertAnalysisLogRequest() # InsertAnalysisLogRequest |

try:
# Insert a log entry for an analysis
api_response = api_instance.insert_analysis_log(analysis_id, insert_analysis_log_request)
print("The response of AnalysesCoreApi->insert_analysis_log:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnalysesCoreApi->insert_analysis_log: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**analysis_id** | **int**| |
**insert_analysis_log_request** | [**InsertAnalysisLogRequest**](InsertAnalysisLogRequest.md)| |

### Return type

[**BaseResponse**](BaseResponse.md)

### Authorization

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

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**201** | Successful Response | - |
**422** | Invalid request parameters | - |

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

# **list_analyses**
> 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)

Expand Down
2 changes: 1 addition & 1 deletion docs/BaseResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True]
**data** | [**AnyOf**](AnyOf.md) | Response data | [optional]
**data** | **object** | | [optional]
**message** | **str** | | [optional]
**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional]
**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**binary_id** | **int** | The ID of the binary |
**binary_name** | **str** | The name of the binary uploaded |
**binary_size** | **int** | The size of the binary uploaded (bytes) |
**creation** | **datetime** | When the binary was uploaded |
Expand Down
29 changes: 29 additions & 0 deletions docs/InsertAnalysisLogRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# InsertAnalysisLogRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**log** | **str** | The log message to insert for the analysis |

## Example

```python
from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest

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

# convert the object into a dict
insert_analysis_log_request_dict = insert_analysis_log_request_instance.to_dict()
# create an instance of InsertAnalysisLogRequest from a dict
insert_analysis_log_request_from_dict = InsertAnalysisLogRequest.from_dict(insert_analysis_log_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)


6 changes: 6 additions & 0 deletions docs/ModelName.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Custom enum for the model name

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

* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-x86-64-android'`)

* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_ANDROID` (value: `'binnet-0.7-x86-32-android'`)

* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-arm-64-android'`)

[[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.8.1"
__version__ = "v3.12.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -259,6 +259,7 @@
"ISA",
"IconModel",
"ImportModel",
"InsertAnalysisLogRequest",
"InverseFunctionMapItem",
"InverseStringMapItem",
"InverseValue",
Expand Down Expand Up @@ -587,6 +588,7 @@
from revengai.models.isa import ISA as ISA
from revengai.models.icon_model import IconModel as IconModel
from revengai.models.import_model import ImportModel as ImportModel
from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest as InsertAnalysisLogRequest
from revengai.models.inverse_function_map_item import InverseFunctionMapItem as InverseFunctionMapItem
from revengai.models.inverse_string_map_item import InverseStringMapItem as InverseStringMapItem
from revengai.models.inverse_value import InverseValue as InverseValue
Expand Down
Loading