[python] Do not pydantic-validate function args twice (#16776)

* refactor: Use newlines in _with_http_info call

This prevents too-long lines and matches the style that
black would enforce.

* fix: Do not pydantic-validate function args twice

Closes #15757
This commit is contained in:
Robert Schweizer
2023-10-11 07:57:52 +02:00
committed by GitHub
parent bbf9ccd0c0
commit 2b6b3b0883
27 changed files with 769 additions and 133 deletions

View File

@@ -68,7 +68,11 @@ class AnotherFakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the call_123_test_special_tags_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.call_123_test_special_tags_with_http_info(client, **kwargs) # noqa: E501
return await self.call_123_test_special_tags_with_http_info.raw_function(
client,
**kwargs,
)
@validate_call
async def call_123_test_special_tags_with_http_info(

View File

@@ -62,7 +62,10 @@ class DefaultApi:
if '_preload_content' in kwargs:
message = "Error! Please call the foo_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.foo_get_with_http_info(**kwargs) # noqa: E501
return await self.foo_get_with_http_info.raw_function(
**kwargs,
)
@validate_call
async def foo_get_with_http_info(

View File

@@ -82,7 +82,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_any_type_request_body_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_any_type_request_body_with_http_info(body, **kwargs) # noqa: E501
return await self.fake_any_type_request_body_with_http_info.raw_function(
body,
**kwargs,
)
@validate_call
async def fake_any_type_request_body_with_http_info(
@@ -213,7 +217,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_enum_ref_query_parameter_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_enum_ref_query_parameter_with_http_info(enum_ref, **kwargs) # noqa: E501
return await self.fake_enum_ref_query_parameter_with_http_info.raw_function(
enum_ref,
**kwargs,
)
@validate_call
async def fake_enum_ref_query_parameter_with_http_info(
@@ -334,7 +342,10 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_health_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_health_get_with_http_info(**kwargs) # noqa: E501
return await self.fake_health_get_with_http_info.raw_function(
**kwargs,
)
@validate_call
async def fake_health_get_with_http_info(
@@ -463,7 +474,13 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_http_signature_test_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_http_signature_test_with_http_info(pet, query_1, header_1, **kwargs) # noqa: E501
return await self.fake_http_signature_test_with_http_info.raw_function(
pet,
query_1,
header_1,
**kwargs,
)
@validate_call
async def fake_http_signature_test_with_http_info(
@@ -609,7 +626,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_outer_boolean_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_outer_boolean_serialize_with_http_info(body, **kwargs) # noqa: E501
return await self.fake_outer_boolean_serialize_with_http_info.raw_function(
body,
**kwargs,
)
@validate_call
async def fake_outer_boolean_serialize_with_http_info(
@@ -748,7 +769,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_outer_composite_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_outer_composite_serialize_with_http_info(outer_composite, **kwargs) # noqa: E501
return await self.fake_outer_composite_serialize_with_http_info.raw_function(
outer_composite,
**kwargs,
)
@validate_call
async def fake_outer_composite_serialize_with_http_info(
@@ -887,7 +912,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_outer_number_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_outer_number_serialize_with_http_info(body, **kwargs) # noqa: E501
return await self.fake_outer_number_serialize_with_http_info.raw_function(
body,
**kwargs,
)
@validate_call
async def fake_outer_number_serialize_with_http_info(
@@ -1026,7 +1055,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_outer_string_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_outer_string_serialize_with_http_info(body, **kwargs) # noqa: E501
return await self.fake_outer_string_serialize_with_http_info.raw_function(
body,
**kwargs,
)
@validate_call
async def fake_outer_string_serialize_with_http_info(
@@ -1165,7 +1198,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_property_enum_integer_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_property_enum_integer_serialize_with_http_info(outer_object_with_enum_property, **kwargs) # noqa: E501
return await self.fake_property_enum_integer_serialize_with_http_info.raw_function(
outer_object_with_enum_property,
**kwargs,
)
@validate_call
async def fake_property_enum_integer_serialize_with_http_info(
@@ -1300,7 +1337,10 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_return_list_of_objects_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_return_list_of_objects_with_http_info(**kwargs) # noqa: E501
return await self.fake_return_list_of_objects_with_http_info.raw_function(
**kwargs,
)
@validate_call
async def fake_return_list_of_objects_with_http_info(
@@ -1423,7 +1463,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the fake_uuid_example_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.fake_uuid_example_with_http_info(uuid_example, **kwargs) # noqa: E501
return await self.fake_uuid_example_with_http_info.raw_function(
uuid_example,
**kwargs,
)
@validate_call
async def fake_uuid_example_with_http_info(
@@ -1548,7 +1592,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_body_with_binary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_body_with_binary_with_http_info(body, **kwargs) # noqa: E501
return await self.test_body_with_binary_with_http_info.raw_function(
body,
**kwargs,
)
@validate_call
async def test_body_with_binary_with_http_info(
@@ -1686,7 +1734,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_body_with_file_schema_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
return await self.test_body_with_file_schema_with_http_info.raw_function(
file_schema_test_class,
**kwargs,
)
@validate_call
async def test_body_with_file_schema_with_http_info(
@@ -1821,7 +1873,12 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_body_with_query_params_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
return await self.test_body_with_query_params_with_http_info.raw_function(
query,
user,
**kwargs,
)
@validate_call
async def test_body_with_query_params_with_http_info(
@@ -1960,7 +2017,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_client_model_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
return await self.test_client_model_with_http_info.raw_function(
client,
**kwargs,
)
@validate_call
async def test_client_model_with_http_info(
@@ -2101,7 +2162,12 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_date_time_query_parameter_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_date_time_query_parameter_with_http_info(date_time_query, str_query, **kwargs) # noqa: E501
return await self.test_date_time_query_parameter_with_http_info.raw_function(
date_time_query,
str_query,
**kwargs,
)
@validate_call
async def test_date_time_query_parameter_with_http_info(
@@ -2278,7 +2344,25 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_endpoint_parameters_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_endpoint_parameters_with_http_info(number, double, pattern_without_delimiter, byte, integer, int32, int64, var_float, string, binary, byte_with_max_length, var_date, date_time, password, param_callback, **kwargs) # noqa: E501
return await self.test_endpoint_parameters_with_http_info.raw_function(
number,
double,
pattern_without_delimiter,
byte,
integer,
int32,
int64,
var_float,
string,
binary,
byte_with_max_length,
var_date,
date_time,
password,
param_callback,
**kwargs,
)
@validate_call
async def test_endpoint_parameters_with_http_info(
@@ -2524,7 +2608,16 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_group_parameters_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_group_parameters_with_http_info(required_string_group, required_boolean_group, required_int64_group, string_group, boolean_group, int64_group, **kwargs) # noqa: E501
return await self.test_group_parameters_with_http_info.raw_function(
required_string_group,
required_boolean_group,
required_int64_group,
string_group,
boolean_group,
int64_group,
**kwargs,
)
@validate_call
async def test_group_parameters_with_http_info(
@@ -2685,7 +2778,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_inline_additional_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
return await self.test_inline_additional_properties_with_http_info.raw_function(
request_body,
**kwargs,
)
@validate_call
async def test_inline_additional_properties_with_http_info(
@@ -2818,7 +2915,11 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_inline_freeform_additional_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_inline_freeform_additional_properties_with_http_info(test_inline_freeform_additional_properties_request, **kwargs) # noqa: E501
return await self.test_inline_freeform_additional_properties_with_http_info.raw_function(
test_inline_freeform_additional_properties_request,
**kwargs,
)
@validate_call
async def test_inline_freeform_additional_properties_with_http_info(
@@ -2954,7 +3055,12 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_json_form_data_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_json_form_data_with_http_info(param, param2, **kwargs) # noqa: E501
return await self.test_json_form_data_with_http_info.raw_function(
param,
param2,
**kwargs,
)
@validate_call
async def test_json_form_data_with_http_info(
@@ -3112,7 +3218,17 @@ class FakeApi:
if '_preload_content' in kwargs:
message = "Error! Please call the test_query_parameter_collection_format_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_query_parameter_collection_format_with_http_info(pipe, ioutil, http, url, context, allow_empty, language, **kwargs) # noqa: E501
return await self.test_query_parameter_collection_format_with_http_info.raw_function(
pipe,
ioutil,
http,
url,
context,
allow_empty,
language,
**kwargs,
)
@validate_call
async def test_query_parameter_collection_format_with_http_info(

View File

@@ -68,7 +68,11 @@ class FakeClassnameTags123Api:
if '_preload_content' in kwargs:
message = "Error! Please call the test_classname_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.test_classname_with_http_info(client, **kwargs) # noqa: E501
return await self.test_classname_with_http_info.raw_function(
client,
**kwargs,
)
@validate_call
async def test_classname_with_http_info(

View File

@@ -73,7 +73,11 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the add_pet_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
return await self.add_pet_with_http_info.raw_function(
pet,
**kwargs,
)
@validate_call
async def add_pet_with_http_info(
@@ -209,7 +213,12 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the delete_pet_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.delete_pet_with_http_info(pet_id, api_key, **kwargs) # noqa: E501
return await self.delete_pet_with_http_info.raw_function(
pet_id,
api_key,
**kwargs,
)
@validate_call
async def delete_pet_with_http_info(
@@ -342,7 +351,11 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the find_pets_by_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.find_pets_by_status_with_http_info(status, **kwargs) # noqa: E501
return await self.find_pets_by_status_with_http_info.raw_function(
status,
**kwargs,
)
@validate_call
async def find_pets_by_status_with_http_info(
@@ -476,7 +489,11 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the find_pets_by_tags_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.find_pets_by_tags_with_http_info(tags, **kwargs) # noqa: E501
return await self.find_pets_by_tags_with_http_info.raw_function(
tags,
**kwargs,
)
@validate_call
async def find_pets_by_tags_with_http_info(
@@ -612,7 +629,11 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the get_pet_by_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.get_pet_by_id_with_http_info(pet_id, **kwargs) # noqa: E501
return await self.get_pet_by_id_with_http_info.raw_function(
pet_id,
**kwargs,
)
@validate_call
async def get_pet_by_id_with_http_info(
@@ -746,7 +767,11 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the update_pet_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
return await self.update_pet_with_http_info.raw_function(
pet,
**kwargs,
)
@validate_call
async def update_pet_with_http_info(
@@ -885,7 +910,13 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the update_pet_with_form_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.update_pet_with_form_with_http_info(pet_id, name, status, **kwargs) # noqa: E501
return await self.update_pet_with_form_with_http_info.raw_function(
pet_id,
name,
status,
**kwargs,
)
@validate_call
async def update_pet_with_form_with_http_info(
@@ -1038,7 +1069,13 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the upload_file_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.upload_file_with_http_info(pet_id, additional_metadata, file, **kwargs) # noqa: E501
return await self.upload_file_with_http_info.raw_function(
pet_id,
additional_metadata,
file,
**kwargs,
)
@validate_call
async def upload_file_with_http_info(
@@ -1197,7 +1234,13 @@ class PetApi:
if '_preload_content' in kwargs:
message = "Error! Please call the upload_file_with_required_file_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.upload_file_with_required_file_with_http_info(pet_id, required_file, additional_metadata, **kwargs) # noqa: E501
return await self.upload_file_with_required_file_with_http_info.raw_function(
pet_id,
required_file,
additional_metadata,
**kwargs,
)
@validate_call
async def upload_file_with_required_file_with_http_info(

View File

@@ -72,7 +72,11 @@ class StoreApi:
if '_preload_content' in kwargs:
message = "Error! Please call the delete_order_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.delete_order_with_http_info(order_id, **kwargs) # noqa: E501
return await self.delete_order_with_http_info.raw_function(
order_id,
**kwargs,
)
@validate_call
async def delete_order_with_http_info(
@@ -195,7 +199,10 @@ class StoreApi:
if '_preload_content' in kwargs:
message = "Error! Please call the get_inventory_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.get_inventory_with_http_info(**kwargs) # noqa: E501
return await self.get_inventory_with_http_info.raw_function(
**kwargs,
)
@validate_call
async def get_inventory_with_http_info(
@@ -320,7 +327,11 @@ class StoreApi:
if '_preload_content' in kwargs:
message = "Error! Please call the get_order_by_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.get_order_by_id_with_http_info(order_id, **kwargs) # noqa: E501
return await self.get_order_by_id_with_http_info.raw_function(
order_id,
**kwargs,
)
@validate_call
async def get_order_by_id_with_http_info(
@@ -454,7 +465,11 @@ class StoreApi:
if '_preload_content' in kwargs:
message = "Error! Please call the place_order_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.place_order_with_http_info(order, **kwargs) # noqa: E501
return await self.place_order_with_http_info.raw_function(
order,
**kwargs,
)
@validate_call
async def place_order_with_http_info(

View File

@@ -72,7 +72,11 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the create_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.create_user_with_http_info(user, **kwargs) # noqa: E501
return await self.create_user_with_http_info.raw_function(
user,
**kwargs,
)
@validate_call
async def create_user_with_http_info(
@@ -220,7 +224,11 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the create_users_with_array_input_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
return await self.create_users_with_array_input_with_http_info.raw_function(
user,
**kwargs,
)
@validate_call
async def create_users_with_array_input_with_http_info(
@@ -353,7 +361,11 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the create_users_with_list_input_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
return await self.create_users_with_list_input_with_http_info.raw_function(
user,
**kwargs,
)
@validate_call
async def create_users_with_list_input_with_http_info(
@@ -486,7 +498,11 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the delete_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.delete_user_with_http_info(username, **kwargs) # noqa: E501
return await self.delete_user_with_http_info.raw_function(
username,
**kwargs,
)
@validate_call
async def delete_user_with_http_info(
@@ -612,7 +628,11 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the get_user_by_name_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.get_user_by_name_with_http_info(username, **kwargs) # noqa: E501
return await self.get_user_by_name_with_http_info.raw_function(
username,
**kwargs,
)
@validate_call
async def get_user_by_name_with_http_info(
@@ -749,7 +769,12 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the login_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.login_user_with_http_info(username, password, **kwargs) # noqa: E501
return await self.login_user_with_http_info.raw_function(
username,
password,
**kwargs,
)
@validate_call
async def login_user_with_http_info(
@@ -886,7 +911,10 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the logout_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.logout_user_with_http_info(**kwargs) # noqa: E501
return await self.logout_user_with_http_info.raw_function(
**kwargs,
)
@validate_call
async def logout_user_with_http_info(
@@ -1008,7 +1036,12 @@ class UserApi:
if '_preload_content' in kwargs:
message = "Error! Please call the update_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return await self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
return await self.update_user_with_http_info.raw_function(
username,
user,
**kwargs,
)
@validate_call
async def update_user_with_http_info(