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 @@
v2.42.0
v2.43.0
12 changes: 8 additions & 4 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Method | HTTP request | Description


# **create_analysis**
> BaseResponseAnalysisCreateResponse create_analysis(analysis_create_request)
> BaseResponseAnalysisCreateResponse create_analysis(analysis_create_request, x_rev_eng_application=x_rev_eng_application)

Create Analysis

Expand Down Expand Up @@ -59,10 +59,11 @@ with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.AnalysesCoreApi(api_client)
analysis_create_request = revengai.AnalysisCreateRequest() # AnalysisCreateRequest |
x_rev_eng_application = 'x_rev_eng_application_example' # str | (optional)

try:
# Create Analysis
api_response = api_instance.create_analysis(analysis_create_request)
api_response = api_instance.create_analysis(analysis_create_request, x_rev_eng_application=x_rev_eng_application)
print("The response of AnalysesCoreApi->create_analysis:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -77,6 +78,7 @@ with revengai.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**analysis_create_request** | [**AnalysisCreateRequest**](AnalysisCreateRequest.md)| |
**x_rev_eng_application** | **str**| | [optional]

### Return type

Expand Down Expand Up @@ -770,7 +772,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)

# **requeue_analysis**
> BaseResponseCreated requeue_analysis(analysis_id, re_analysis_form)
> BaseResponseCreated requeue_analysis(analysis_id, re_analysis_form, x_rev_eng_application=x_rev_eng_application)

Requeue Analysis

Expand Down Expand Up @@ -810,10 +812,11 @@ with revengai.ApiClient(configuration) as api_client:
api_instance = revengai.AnalysesCoreApi(api_client)
analysis_id = 56 # int |
re_analysis_form = revengai.ReAnalysisForm() # ReAnalysisForm |
x_rev_eng_application = 'x_rev_eng_application_example' # str | (optional)

try:
# Requeue Analysis
api_response = api_instance.requeue_analysis(analysis_id, re_analysis_form)
api_response = api_instance.requeue_analysis(analysis_id, re_analysis_form, x_rev_eng_application=x_rev_eng_application)
print("The response of AnalysesCoreApi->requeue_analysis:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -829,6 +832,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**analysis_id** | **int**| |
**re_analysis_form** | [**ReAnalysisForm**](ReAnalysisForm.md)| |
**x_rev_eng_application** | **str**| | [optional]

### 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__ = "v2.42.0"
__version__ = "v2.43.0"

# Define package exports
__all__ = [
Expand Down
30 changes: 30 additions & 0 deletions revengai/api/analyses_core_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(self, api_client=None) -> None:
def create_analysis(
self,
analysis_create_request: AnalysisCreateRequest,
x_rev_eng_application: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -83,6 +84,8 @@ def create_analysis(

:param analysis_create_request: (required)
:type analysis_create_request: AnalysisCreateRequest
:param x_rev_eng_application:
:type x_rev_eng_application: 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 All @@ -107,6 +110,7 @@ def create_analysis(

_param = self._create_analysis_serialize(
analysis_create_request=analysis_create_request,
x_rev_eng_application=x_rev_eng_application,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -134,6 +138,7 @@ def create_analysis(
def create_analysis_with_http_info(
self,
analysis_create_request: AnalysisCreateRequest,
x_rev_eng_application: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -153,6 +158,8 @@ def create_analysis_with_http_info(

:param analysis_create_request: (required)
:type analysis_create_request: AnalysisCreateRequest
:param x_rev_eng_application:
:type x_rev_eng_application: 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 All @@ -177,6 +184,7 @@ def create_analysis_with_http_info(

_param = self._create_analysis_serialize(
analysis_create_request=analysis_create_request,
x_rev_eng_application=x_rev_eng_application,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -204,6 +212,7 @@ def create_analysis_with_http_info(
def create_analysis_without_preload_content(
self,
analysis_create_request: AnalysisCreateRequest,
x_rev_eng_application: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -223,6 +232,8 @@ def create_analysis_without_preload_content(

:param analysis_create_request: (required)
:type analysis_create_request: AnalysisCreateRequest
:param x_rev_eng_application:
:type x_rev_eng_application: 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 All @@ -247,6 +258,7 @@ def create_analysis_without_preload_content(

_param = self._create_analysis_serialize(
analysis_create_request=analysis_create_request,
x_rev_eng_application=x_rev_eng_application,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -269,6 +281,7 @@ def create_analysis_without_preload_content(
def _create_analysis_serialize(
self,
analysis_create_request,
x_rev_eng_application,
_request_auth,
_content_type,
_headers,
Expand All @@ -292,6 +305,8 @@ def _create_analysis_serialize(
# process the path parameters
# process the query parameters
# process the header parameters
if x_rev_eng_application is not None:
_header_params['X-RevEng-Application'] = x_rev_eng_application
# process the form parameters
# process the body parameter
if analysis_create_request is not None:
Expand Down Expand Up @@ -2642,6 +2657,7 @@ def requeue_analysis(
self,
analysis_id: StrictInt,
re_analysis_form: ReAnalysisForm,
x_rev_eng_application: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -2663,6 +2679,8 @@ def requeue_analysis(
:type analysis_id: int
:param re_analysis_form: (required)
:type re_analysis_form: ReAnalysisForm
:param x_rev_eng_application:
:type x_rev_eng_application: 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 All @@ -2688,6 +2706,7 @@ def requeue_analysis(
_param = self._requeue_analysis_serialize(
analysis_id=analysis_id,
re_analysis_form=re_analysis_form,
x_rev_eng_application=x_rev_eng_application,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -2716,6 +2735,7 @@ def requeue_analysis_with_http_info(
self,
analysis_id: StrictInt,
re_analysis_form: ReAnalysisForm,
x_rev_eng_application: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -2737,6 +2757,8 @@ def requeue_analysis_with_http_info(
:type analysis_id: int
:param re_analysis_form: (required)
:type re_analysis_form: ReAnalysisForm
:param x_rev_eng_application:
:type x_rev_eng_application: 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 All @@ -2762,6 +2784,7 @@ def requeue_analysis_with_http_info(
_param = self._requeue_analysis_serialize(
analysis_id=analysis_id,
re_analysis_form=re_analysis_form,
x_rev_eng_application=x_rev_eng_application,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -2790,6 +2813,7 @@ def requeue_analysis_without_preload_content(
self,
analysis_id: StrictInt,
re_analysis_form: ReAnalysisForm,
x_rev_eng_application: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -2811,6 +2835,8 @@ def requeue_analysis_without_preload_content(
:type analysis_id: int
:param re_analysis_form: (required)
:type re_analysis_form: ReAnalysisForm
:param x_rev_eng_application:
:type x_rev_eng_application: 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 All @@ -2836,6 +2862,7 @@ def requeue_analysis_without_preload_content(
_param = self._requeue_analysis_serialize(
analysis_id=analysis_id,
re_analysis_form=re_analysis_form,
x_rev_eng_application=x_rev_eng_application,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -2859,6 +2886,7 @@ def _requeue_analysis_serialize(
self,
analysis_id,
re_analysis_form,
x_rev_eng_application,
_request_auth,
_content_type,
_headers,
Expand All @@ -2884,6 +2912,8 @@ def _requeue_analysis_serialize(
_path_params['analysis_id'] = analysis_id
# process the query parameters
# process the header parameters
if x_rev_eng_application is not None:
_header_params['X-RevEng-Application'] = x_rev_eng_application
# process the form parameters
# process the body parameter
if re_analysis_form is not None:
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/v2.42.0/python'
self.user_agent = 'OpenAPI-Generator/v2.43.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: v2.42.0\n"\
"SDK Package Version: v2.42.0".\
"Version of the API: v2.43.0\n"\
"SDK Package Version: v2.43.0".\
format(env=sys.platform, pyversion=sys.version)

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