diff --git a/.sdk-version b/.sdk-version index b73a4f7..97ae48a 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.42.0 +v2.43.0 diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index dda07d3..530a8bc 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -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 @@ -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: @@ -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 @@ -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 @@ -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: @@ -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 diff --git a/revengai/__init__.py b/revengai/__init__.py index bab8d73..fc01122 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.42.0" +__version__ = "v2.43.0" # Define package exports __all__ = [ diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index c6a33af..77c66f4 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -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)], @@ -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 @@ -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, @@ -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)], @@ -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 @@ -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, @@ -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)], @@ -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 @@ -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, @@ -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, @@ -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: @@ -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)], @@ -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 @@ -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, @@ -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)], @@ -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 @@ -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, @@ -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)], @@ -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 @@ -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, @@ -2859,6 +2886,7 @@ def _requeue_analysis_serialize( self, analysis_id, re_analysis_form, + x_rev_eng_application, _request_auth, _content_type, _headers, @@ -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: diff --git a/revengai/api_client.py b/revengai/api_client.py index 98521f7..b16d608 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -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): diff --git a/revengai/configuration.py b/revengai/configuration.py index edc2ec0..e0e20e7 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -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]: