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.22.2
v3.23.1
8 changes: 6 additions & 2 deletions docs/FunctionsCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,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_analysis_strings**
> BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search)
> BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, order_by=order_by, sort_order=sort_order)

Get string information found in the Analysis

Expand Down Expand Up @@ -552,10 +552,12 @@ with revengai.ApiClient(configuration) as api_client:
page_size = 100 # int | Number of items per page. (optional) (default to 100)
search = 'search_example' # str | Search is applied to string value (optional)
function_search = 'function_search_example' # str | Search is applied to function names (optional)
order_by = value # str | Order by field (optional) (default to value)
sort_order = ASC # str | Sort order for the results (optional) (default to ASC)

try:
# Get string information found in the Analysis
api_response = api_instance.get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search)
api_response = api_instance.get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, order_by=order_by, sort_order=sort_order)
print("The response of FunctionsCoreApi->get_analysis_strings:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -574,6 +576,8 @@ Name | Type | Description | Notes
**page_size** | **int**| Number of items per page. | [optional] [default to 100]
**search** | **str**| Search is applied to string value | [optional]
**function_search** | **str**| Search is applied to function names | [optional]
**order_by** | **str**| Order by field | [optional] [default to value]
**sort_order** | **str**| Sort order for the results | [optional] [default to ASC]

### 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.22.2"
__version__ = "v3.23.1"

# Define package exports
__all__ = [
Expand Down
36 changes: 35 additions & 1 deletion revengai/api/functions_core_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, StrictInt, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
from revengai.models.ai_unstrip_request import AiUnstripRequest
Expand Down Expand Up @@ -1739,6 +1739,8 @@ def get_analysis_strings(
page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None,
sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -1766,6 +1768,10 @@ def get_analysis_strings(
:type search: str
:param function_search: Search is applied to function names
:type function_search: str
:param order_by: Order by field
:type order_by: str
:param sort_order: Sort order for the results
:type sort_order: str
: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 @@ -1794,6 +1800,8 @@ def get_analysis_strings(
page_size=page_size,
search=search,
function_search=function_search,
order_by=order_by,
sort_order=sort_order,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1823,6 +1831,8 @@ def get_analysis_strings_with_http_info(
page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None,
sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -1850,6 +1860,10 @@ def get_analysis_strings_with_http_info(
:type search: str
:param function_search: Search is applied to function names
:type function_search: str
:param order_by: Order by field
:type order_by: str
:param sort_order: Sort order for the results
:type sort_order: str
: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 @@ -1878,6 +1892,8 @@ def get_analysis_strings_with_http_info(
page_size=page_size,
search=search,
function_search=function_search,
order_by=order_by,
sort_order=sort_order,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1907,6 +1923,8 @@ def get_analysis_strings_without_preload_content(
page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None,
sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -1934,6 +1952,10 @@ def get_analysis_strings_without_preload_content(
:type search: str
:param function_search: Search is applied to function names
:type function_search: str
:param order_by: Order by field
:type order_by: str
:param sort_order: Sort order for the results
:type sort_order: str
: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 @@ -1962,6 +1984,8 @@ def get_analysis_strings_without_preload_content(
page_size=page_size,
search=search,
function_search=function_search,
order_by=order_by,
sort_order=sort_order,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -1986,6 +2010,8 @@ def _get_analysis_strings_serialize(
page_size,
search,
function_search,
order_by,
sort_order,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -2026,6 +2052,14 @@ def _get_analysis_strings_serialize(

_query_params.append(('function_search', function_search))

if order_by is not None:

_query_params.append(('order_by', order_by))

if sort_order is not None:

_query_params.append(('sort_order', sort_order))

# 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.22.2/python'
self.user_agent = 'OpenAPI-Generator/v3.23.1/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.22.2\n"\
"SDK Package Version: v3.22.2".\
"Version of the API: v3.23.1\n"\
"SDK Package Version: v3.23.1".\
format(env=sys.platform, pyversion=sys.version)

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