Skip to content

Commit 73667da

Browse files
authored
Merge pull request #104 from RevEngAI/sdk-update-v3.23.1
🤖 Update SDK to version v3.23.1
2 parents a0b468d + 9cc0178 commit 73667da

6 files changed

Lines changed: 46 additions & 8 deletions

File tree

.sdk-version

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

docs/FunctionsCoreApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ Name | Type | Description | Notes
510510
[[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)
511511

512512
# **get_analysis_strings**
513-
> BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search)
513+
> 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)
514514
515515
Get string information found in the Analysis
516516

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

556558
try:
557559
# Get string information found in the Analysis
558-
api_response = api_instance.get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search)
560+
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)
559561
print("The response of FunctionsCoreApi->get_analysis_strings:\n")
560562
pprint(api_response)
561563
except Exception as e:
@@ -574,6 +576,8 @@ Name | Type | Description | Notes
574576
**page_size** | **int**| Number of items per page. | [optional] [default to 100]
575577
**search** | **str**| Search is applied to string value | [optional]
576578
**function_search** | **str**| Search is applied to function names | [optional]
579+
**order_by** | **str**| Order by field | [optional] [default to value]
580+
**sort_order** | **str**| Sort order for the results | [optional] [default to ASC]
577581

578582
### Return type
579583

revengai/__init__.py

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

1515

16-
__version__ = "v3.22.2"
16+
__version__ = "v3.23.1"
1717

1818
# Define package exports
1919
__all__ = [

revengai/api/functions_core_api.py

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from typing import Any, Dict, List, Optional, Tuple, Union
1616
from typing_extensions import Annotated
1717

18-
from pydantic import Field, StrictInt, StrictStr
18+
from pydantic import Field, StrictInt, StrictStr, field_validator
1919
from typing import Optional
2020
from typing_extensions import Annotated
2121
from revengai.models.ai_unstrip_request import AiUnstripRequest
@@ -1739,6 +1739,8 @@ def get_analysis_strings(
17391739
page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
17401740
search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
17411741
function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
1742+
order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None,
1743+
sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None,
17421744
_request_timeout: Union[
17431745
None,
17441746
Annotated[StrictFloat, Field(gt=0)],
@@ -1766,6 +1768,10 @@ def get_analysis_strings(
17661768
:type search: str
17671769
:param function_search: Search is applied to function names
17681770
:type function_search: str
1771+
:param order_by: Order by field
1772+
:type order_by: str
1773+
:param sort_order: Sort order for the results
1774+
:type sort_order: str
17691775
:param _request_timeout: timeout setting for this request. If one
17701776
number provided, it will be total request
17711777
timeout. It can also be a pair (tuple) of
@@ -1794,6 +1800,8 @@ def get_analysis_strings(
17941800
page_size=page_size,
17951801
search=search,
17961802
function_search=function_search,
1803+
order_by=order_by,
1804+
sort_order=sort_order,
17971805
_request_auth=_request_auth,
17981806
_content_type=_content_type,
17991807
_headers=_headers,
@@ -1823,6 +1831,8 @@ def get_analysis_strings_with_http_info(
18231831
page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
18241832
search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
18251833
function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
1834+
order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None,
1835+
sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None,
18261836
_request_timeout: Union[
18271837
None,
18281838
Annotated[StrictFloat, Field(gt=0)],
@@ -1850,6 +1860,10 @@ def get_analysis_strings_with_http_info(
18501860
:type search: str
18511861
:param function_search: Search is applied to function names
18521862
:type function_search: str
1863+
:param order_by: Order by field
1864+
:type order_by: str
1865+
:param sort_order: Sort order for the results
1866+
:type sort_order: str
18531867
:param _request_timeout: timeout setting for this request. If one
18541868
number provided, it will be total request
18551869
timeout. It can also be a pair (tuple) of
@@ -1878,6 +1892,8 @@ def get_analysis_strings_with_http_info(
18781892
page_size=page_size,
18791893
search=search,
18801894
function_search=function_search,
1895+
order_by=order_by,
1896+
sort_order=sort_order,
18811897
_request_auth=_request_auth,
18821898
_content_type=_content_type,
18831899
_headers=_headers,
@@ -1907,6 +1923,8 @@ def get_analysis_strings_without_preload_content(
19071923
page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
19081924
search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
19091925
function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
1926+
order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None,
1927+
sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None,
19101928
_request_timeout: Union[
19111929
None,
19121930
Annotated[StrictFloat, Field(gt=0)],
@@ -1934,6 +1952,10 @@ def get_analysis_strings_without_preload_content(
19341952
:type search: str
19351953
:param function_search: Search is applied to function names
19361954
:type function_search: str
1955+
:param order_by: Order by field
1956+
:type order_by: str
1957+
:param sort_order: Sort order for the results
1958+
:type sort_order: str
19371959
:param _request_timeout: timeout setting for this request. If one
19381960
number provided, it will be total request
19391961
timeout. It can also be a pair (tuple) of
@@ -1962,6 +1984,8 @@ def get_analysis_strings_without_preload_content(
19621984
page_size=page_size,
19631985
search=search,
19641986
function_search=function_search,
1987+
order_by=order_by,
1988+
sort_order=sort_order,
19651989
_request_auth=_request_auth,
19661990
_content_type=_content_type,
19671991
_headers=_headers,
@@ -1986,6 +2010,8 @@ def _get_analysis_strings_serialize(
19862010
page_size,
19872011
search,
19882012
function_search,
2013+
order_by,
2014+
sort_order,
19892015
_request_auth,
19902016
_content_type,
19912017
_headers,
@@ -2026,6 +2052,14 @@ def _get_analysis_strings_serialize(
20262052

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

2055+
if order_by is not None:
2056+
2057+
_query_params.append(('order_by', order_by))
2058+
2059+
if sort_order is not None:
2060+
2061+
_query_params.append(('sort_order', sort_order))
2062+
20292063
# process the header parameters
20302064
# process the form parameters
20312065
# process the body parameter

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v3.22.2/python'
93+
self.user_agent = 'OpenAPI-Generator/v3.23.1/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

revengai/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
533533
return "Python SDK Debug Report:\n"\
534534
"OS: {env}\n"\
535535
"Python Version: {pyversion}\n"\
536-
"Version of the API: v3.22.2\n"\
537-
"SDK Package Version: v3.22.2".\
536+
"Version of the API: v3.23.1\n"\
537+
"SDK Package Version: v3.23.1".\
538538
format(env=sys.platform, pyversion=sys.version)
539539

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

0 commit comments

Comments
 (0)