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.4.0
v3.6.0
10 changes: 8 additions & 2 deletions docs/AnalysesResultsMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ 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)

# **get_functions_list**
> BaseResponseAnalysisFunctions get_functions_list(analysis_id, search_term=search_term, min_v_addr=min_v_addr, max_v_addr=max_v_addr)
> BaseResponseAnalysisFunctions get_functions_list(analysis_id, search_term=search_term, min_v_addr=min_v_addr, max_v_addr=max_v_addr, include_embeddings=include_embeddings, page=page, page_size=page_size)

Gets functions from analysis

Expand Down Expand Up @@ -298,10 +298,13 @@ with revengai.ApiClient(configuration) as api_client:
search_term = 'search_term_example' # str | (optional)
min_v_addr = 56 # int | (optional)
max_v_addr = 56 # int | (optional)
include_embeddings = True # bool | (optional) (default to True)
page = 1 # int | The page number to retrieve. (optional) (default to 1)
page_size = 1000 # int | Number of items per page. (optional) (default to 1000)

try:
# Gets functions from analysis
api_response = api_instance.get_functions_list(analysis_id, search_term=search_term, min_v_addr=min_v_addr, max_v_addr=max_v_addr)
api_response = api_instance.get_functions_list(analysis_id, search_term=search_term, min_v_addr=min_v_addr, max_v_addr=max_v_addr, include_embeddings=include_embeddings, page=page, page_size=page_size)
print("The response of AnalysesResultsMetadataApi->get_functions_list:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -319,6 +322,9 @@ Name | Type | Description | Notes
**search_term** | **str**| | [optional]
**min_v_addr** | **int**| | [optional]
**max_v_addr** | **int**| | [optional]
**include_embeddings** | **bool**| | [optional] [default to True]
**page** | **int**| The page number to retrieve. | [optional] [default to 1]
**page_size** | **int**| Number of items per page. | [optional] [default to 1000]

### Return type

Expand Down
2 changes: 1 addition & 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.4.0"
__version__ = "v3.6.0"

# Define package exports
__all__ = [
Expand Down
53 changes: 52 additions & 1 deletion revengai/api/analyses_results_metadata_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictInt, StrictStr
from pydantic import Field, StrictBool, StrictInt, StrictStr
from typing import Any, Optional
from typing_extensions import Annotated
from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions
Expand Down Expand Up @@ -888,6 +888,9 @@ def get_functions_list(
search_term: Optional[StrictStr] = None,
min_v_addr: Optional[StrictInt] = None,
max_v_addr: Optional[StrictInt] = None,
include_embeddings: Optional[StrictBool] = None,
page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -913,6 +916,12 @@ def get_functions_list(
:type min_v_addr: int
:param max_v_addr:
:type max_v_addr: int
:param include_embeddings:
:type include_embeddings: bool
:param page: The page number to retrieve.
:type page: int
:param page_size: Number of items per page.
:type page_size: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -941,6 +950,9 @@ def get_functions_list(
search_term=search_term,
min_v_addr=min_v_addr,
max_v_addr=max_v_addr,
include_embeddings=include_embeddings,
page=page,
page_size=page_size,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -969,6 +981,9 @@ def get_functions_list_with_http_info(
search_term: Optional[StrictStr] = None,
min_v_addr: Optional[StrictInt] = None,
max_v_addr: Optional[StrictInt] = None,
include_embeddings: Optional[StrictBool] = None,
page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -994,6 +1009,12 @@ def get_functions_list_with_http_info(
:type min_v_addr: int
:param max_v_addr:
:type max_v_addr: int
:param include_embeddings:
:type include_embeddings: bool
:param page: The page number to retrieve.
:type page: int
:param page_size: Number of items per page.
:type page_size: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -1022,6 +1043,9 @@ def get_functions_list_with_http_info(
search_term=search_term,
min_v_addr=min_v_addr,
max_v_addr=max_v_addr,
include_embeddings=include_embeddings,
page=page,
page_size=page_size,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1050,6 +1074,9 @@ def get_functions_list_without_preload_content(
search_term: Optional[StrictStr] = None,
min_v_addr: Optional[StrictInt] = None,
max_v_addr: Optional[StrictInt] = None,
include_embeddings: Optional[StrictBool] = None,
page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1075,6 +1102,12 @@ def get_functions_list_without_preload_content(
:type min_v_addr: int
:param max_v_addr:
:type max_v_addr: int
:param include_embeddings:
:type include_embeddings: bool
:param page: The page number to retrieve.
:type page: int
:param page_size: Number of items per page.
:type page_size: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -1103,6 +1136,9 @@ def get_functions_list_without_preload_content(
search_term=search_term,
min_v_addr=min_v_addr,
max_v_addr=max_v_addr,
include_embeddings=include_embeddings,
page=page,
page_size=page_size,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -1126,6 +1162,9 @@ def _get_functions_list_serialize(
search_term,
min_v_addr,
max_v_addr,
include_embeddings,
page,
page_size,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -1162,6 +1201,18 @@ def _get_functions_list_serialize(

_query_params.append(('max_v_addr', max_v_addr))

if include_embeddings is not None:

_query_params.append(('include_embeddings', include_embeddings))

if page is not None:

_query_params.append(('page', page))

if page_size is not None:

_query_params.append(('page_size', page_size))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v3.4.0/python'
self.user_agent = 'OpenAPI-Generator/v3.6.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v3.4.0\n"\
"SDK Package Version: v3.4.0".\
"Version of the API: v3.6.0\n"\
"SDK Package Version: v3.6.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down