feat: Add line breaks in Python API methods (#16770)

This commit is contained in:
Robert Schweizer
2023-10-10 12:32:52 +02:00
committed by GitHub
parent 9e07f85eb5
commit f03cbea971
27 changed files with 1552 additions and 268 deletions

View File

@@ -44,7 +44,11 @@ class AnotherFakeApi:
self.api_client = api_client
@validate_call
async def call_123_test_special_tags(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> Client: # noqa: E501
async def call_123_test_special_tags(
self,
client: Annotated[Client, Field(description="client model")],
**kwargs,
) -> Client:
"""To test special tags # noqa: E501
To test special tags and operation ID starting with number # noqa: E501
@@ -67,7 +71,11 @@ class AnotherFakeApi:
return await self.call_123_test_special_tags_with_http_info(client, **kwargs) # noqa: E501
@validate_call
async def call_123_test_special_tags_with_http_info(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> ApiResponse: # noqa: E501
async def call_123_test_special_tags_with_http_info(
self,
client: Annotated[Client, Field(description="client model")],
**kwargs,
) -> ApiResponse:
"""To test special tags # noqa: E501
To test special tags and operation ID starting with number # noqa: E501

View File

@@ -42,7 +42,10 @@ class DefaultApi:
self.api_client = api_client
@validate_call
async def foo_get(self, **kwargs) -> FooGetDefaultResponse: # noqa: E501
async def foo_get(
self,
**kwargs,
) -> FooGetDefaultResponse:
"""foo_get # noqa: E501
@@ -62,7 +65,10 @@ class DefaultApi:
return await self.foo_get_with_http_info(**kwargs) # noqa: E501
@validate_call
async def foo_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
async def foo_get_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""foo_get # noqa: E501

View File

@@ -59,7 +59,11 @@ class FakeApi:
self.api_client = api_client
@validate_call
async def fake_any_type_request_body(self, body : Optional[Dict[str, Any]] = None, **kwargs) -> None: # noqa: E501
async def fake_any_type_request_body(
self,
body: Optional[Dict[str, Any]] = None,
**kwargs,
) -> None:
"""test any type request body # noqa: E501
@@ -81,7 +85,11 @@ class FakeApi:
return await self.fake_any_type_request_body_with_http_info(body, **kwargs) # noqa: E501
@validate_call
async def fake_any_type_request_body_with_http_info(self, body : Optional[Dict[str, Any]] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_any_type_request_body_with_http_info(
self,
body: Optional[Dict[str, Any]] = None,
**kwargs,
) -> ApiResponse:
"""test any type request body # noqa: E501
@@ -182,7 +190,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_enum_ref_query_parameter(self, enum_ref : Annotated[Optional[EnumClass], Field(description="enum reference")] = None, **kwargs) -> None: # noqa: E501
async def fake_enum_ref_query_parameter(
self,
enum_ref: Annotated[Optional[EnumClass], Field(description="enum reference")] = None,
**kwargs,
) -> None:
"""test enum reference query parameter # noqa: E501
@@ -204,7 +216,11 @@ class FakeApi:
return await self.fake_enum_ref_query_parameter_with_http_info(enum_ref, **kwargs) # noqa: E501
@validate_call
async def fake_enum_ref_query_parameter_with_http_info(self, enum_ref : Annotated[Optional[EnumClass], Field(description="enum reference")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_enum_ref_query_parameter_with_http_info(
self,
enum_ref: Annotated[Optional[EnumClass], Field(description="enum reference")] = None,
**kwargs,
) -> ApiResponse:
"""test enum reference query parameter # noqa: E501
@@ -298,7 +314,10 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_health_get(self, **kwargs) -> HealthCheckResult: # noqa: E501
async def fake_health_get(
self,
**kwargs,
) -> HealthCheckResult:
"""Health check endpoint # noqa: E501
@@ -318,7 +337,10 @@ class FakeApi:
return await self.fake_health_get_with_http_info(**kwargs) # noqa: E501
@validate_call
async def fake_health_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
async def fake_health_get_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""Health check endpoint # noqa: E501
@@ -412,7 +434,13 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_http_signature_test(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], query_1 : Annotated[Optional[StrictStr], Field(description="query parameter")] = None, header_1 : Annotated[Optional[StrictStr], Field(description="header parameter")] = None, **kwargs) -> None: # noqa: E501
async def fake_http_signature_test(
self,
pet: Annotated[Pet, Field(description="Pet object that needs to be added to the store")],
query_1: Annotated[Optional[StrictStr], Field(description="query parameter")] = None,
header_1: Annotated[Optional[StrictStr], Field(description="header parameter")] = None,
**kwargs,
) -> None:
"""test http signature authentication # noqa: E501
@@ -438,7 +466,13 @@ class FakeApi:
return await self.fake_http_signature_test_with_http_info(pet, query_1, header_1, **kwargs) # noqa: E501
@validate_call
async def fake_http_signature_test_with_http_info(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], query_1 : Annotated[Optional[StrictStr], Field(description="query parameter")] = None, header_1 : Annotated[Optional[StrictStr], Field(description="header parameter")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_http_signature_test_with_http_info(
self,
pet: Annotated[Pet, Field(description="Pet object that needs to be added to the store")],
query_1: Annotated[Optional[StrictStr], Field(description="query parameter")] = None,
header_1: Annotated[Optional[StrictStr], Field(description="header parameter")] = None,
**kwargs,
) -> ApiResponse:
"""test http signature authentication # noqa: E501
@@ -551,7 +585,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_outer_boolean_serialize(self, body : Annotated[Optional[StrictBool], Field(description="Input boolean as post body")] = None, **kwargs) -> bool: # noqa: E501
async def fake_outer_boolean_serialize(
self,
body: Annotated[Optional[StrictBool], Field(description="Input boolean as post body")] = None,
**kwargs,
) -> bool:
"""fake_outer_boolean_serialize # noqa: E501
Test serialization of outer boolean types # noqa: E501
@@ -574,7 +612,11 @@ class FakeApi:
return await self.fake_outer_boolean_serialize_with_http_info(body, **kwargs) # noqa: E501
@validate_call
async def fake_outer_boolean_serialize_with_http_info(self, body : Annotated[Optional[StrictBool], Field(description="Input boolean as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_outer_boolean_serialize_with_http_info(
self,
body: Annotated[Optional[StrictBool], Field(description="Input boolean as post body")] = None,
**kwargs,
) -> ApiResponse:
"""fake_outer_boolean_serialize # noqa: E501
Test serialization of outer boolean types # noqa: E501
@@ -682,7 +724,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_outer_composite_serialize(self, outer_composite : Annotated[Optional[OuterComposite], Field(description="Input composite as post body")] = None, **kwargs) -> OuterComposite: # noqa: E501
async def fake_outer_composite_serialize(
self,
outer_composite: Annotated[Optional[OuterComposite], Field(description="Input composite as post body")] = None,
**kwargs,
) -> OuterComposite:
"""fake_outer_composite_serialize # noqa: E501
Test serialization of object with outer number type # noqa: E501
@@ -705,7 +751,11 @@ class FakeApi:
return await self.fake_outer_composite_serialize_with_http_info(outer_composite, **kwargs) # noqa: E501
@validate_call
async def fake_outer_composite_serialize_with_http_info(self, outer_composite : Annotated[Optional[OuterComposite], Field(description="Input composite as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_outer_composite_serialize_with_http_info(
self,
outer_composite: Annotated[Optional[OuterComposite], Field(description="Input composite as post body")] = None,
**kwargs,
) -> ApiResponse:
"""fake_outer_composite_serialize # noqa: E501
Test serialization of object with outer number type # noqa: E501
@@ -813,7 +863,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_outer_number_serialize(self, body : Annotated[Optional[float], Field(description="Input number as post body")] = None, **kwargs) -> float: # noqa: E501
async def fake_outer_number_serialize(
self,
body: Annotated[Optional[float], Field(description="Input number as post body")] = None,
**kwargs,
) -> float:
"""fake_outer_number_serialize # noqa: E501
Test serialization of outer number types # noqa: E501
@@ -836,7 +890,11 @@ class FakeApi:
return await self.fake_outer_number_serialize_with_http_info(body, **kwargs) # noqa: E501
@validate_call
async def fake_outer_number_serialize_with_http_info(self, body : Annotated[Optional[float], Field(description="Input number as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_outer_number_serialize_with_http_info(
self,
body: Annotated[Optional[float], Field(description="Input number as post body")] = None,
**kwargs,
) -> ApiResponse:
"""fake_outer_number_serialize # noqa: E501
Test serialization of outer number types # noqa: E501
@@ -944,7 +1002,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_outer_string_serialize(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> str: # noqa: E501
async def fake_outer_string_serialize(
self,
body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None,
**kwargs,
) -> str:
"""fake_outer_string_serialize # noqa: E501
Test serialization of outer string types # noqa: E501
@@ -967,7 +1029,11 @@ class FakeApi:
return await self.fake_outer_string_serialize_with_http_info(body, **kwargs) # noqa: E501
@validate_call
async def fake_outer_string_serialize_with_http_info(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def fake_outer_string_serialize_with_http_info(
self,
body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None,
**kwargs,
) -> ApiResponse:
"""fake_outer_string_serialize # noqa: E501
Test serialization of outer string types # noqa: E501
@@ -1075,7 +1141,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_property_enum_integer_serialize(self, outer_object_with_enum_property : Annotated[OuterObjectWithEnumProperty, Field(description="Input enum (int) as post body")], **kwargs) -> OuterObjectWithEnumProperty: # noqa: E501
async def fake_property_enum_integer_serialize(
self,
outer_object_with_enum_property: Annotated[OuterObjectWithEnumProperty, Field(description="Input enum (int) as post body")],
**kwargs,
) -> OuterObjectWithEnumProperty:
"""fake_property_enum_integer_serialize # noqa: E501
Test serialization of enum (int) properties with examples # noqa: E501
@@ -1098,7 +1168,11 @@ class FakeApi:
return await self.fake_property_enum_integer_serialize_with_http_info(outer_object_with_enum_property, **kwargs) # noqa: E501
@validate_call
async def fake_property_enum_integer_serialize_with_http_info(self, outer_object_with_enum_property : Annotated[OuterObjectWithEnumProperty, Field(description="Input enum (int) as post body")], **kwargs) -> ApiResponse: # noqa: E501
async def fake_property_enum_integer_serialize_with_http_info(
self,
outer_object_with_enum_property: Annotated[OuterObjectWithEnumProperty, Field(description="Input enum (int) as post body")],
**kwargs,
) -> ApiResponse:
"""fake_property_enum_integer_serialize # noqa: E501
Test serialization of enum (int) properties with examples # noqa: E501
@@ -1206,7 +1280,10 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_return_list_of_objects(self, **kwargs) -> List[List[Tag]]: # noqa: E501
async def fake_return_list_of_objects(
self,
**kwargs,
) -> List[List[Tag]]:
"""test returning list of objects # noqa: E501
@@ -1226,7 +1303,10 @@ class FakeApi:
return await self.fake_return_list_of_objects_with_http_info(**kwargs) # noqa: E501
@validate_call
async def fake_return_list_of_objects_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
async def fake_return_list_of_objects_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""test returning list of objects # noqa: E501
@@ -1320,7 +1400,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def fake_uuid_example(self, uuid_example : Annotated[StrictStr, Field(description="uuid example")], **kwargs) -> None: # noqa: E501
async def fake_uuid_example(
self,
uuid_example: Annotated[StrictStr, Field(description="uuid example")],
**kwargs,
) -> None:
"""test uuid example # noqa: E501
@@ -1342,7 +1426,11 @@ class FakeApi:
return await self.fake_uuid_example_with_http_info(uuid_example, **kwargs) # noqa: E501
@validate_call
async def fake_uuid_example_with_http_info(self, uuid_example : Annotated[StrictStr, Field(description="uuid example")], **kwargs) -> ApiResponse: # noqa: E501
async def fake_uuid_example_with_http_info(
self,
uuid_example: Annotated[StrictStr, Field(description="uuid example")],
**kwargs,
) -> ApiResponse:
"""test uuid example # noqa: E501
@@ -1436,7 +1524,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_body_with_binary(self, body : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="image to upload")], **kwargs) -> None: # noqa: E501
async def test_body_with_binary(
self,
body: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="image to upload")],
**kwargs,
) -> None:
"""test_body_with_binary # noqa: E501
For this test, the body has to be a binary file. # noqa: E501
@@ -1459,7 +1551,11 @@ class FakeApi:
return await self.test_body_with_binary_with_http_info(body, **kwargs) # noqa: E501
@validate_call
async def test_body_with_binary_with_http_info(self, body : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="image to upload")], **kwargs) -> ApiResponse: # noqa: E501
async def test_body_with_binary_with_http_info(
self,
body: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="image to upload")],
**kwargs,
) -> ApiResponse:
"""test_body_with_binary # noqa: E501
For this test, the body has to be a binary file. # noqa: E501
@@ -1566,7 +1662,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_body_with_file_schema(self, file_schema_test_class : FileSchemaTestClass, **kwargs) -> None: # noqa: E501
async def test_body_with_file_schema(
self,
file_schema_test_class: FileSchemaTestClass,
**kwargs,
) -> None:
"""test_body_with_file_schema # noqa: E501
For this test, the body for this request must reference a schema named `File`. # noqa: E501
@@ -1589,7 +1689,11 @@ class FakeApi:
return await self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
@validate_call
async def test_body_with_file_schema_with_http_info(self, file_schema_test_class : FileSchemaTestClass, **kwargs) -> ApiResponse: # noqa: E501
async def test_body_with_file_schema_with_http_info(
self,
file_schema_test_class: FileSchemaTestClass,
**kwargs,
) -> ApiResponse:
"""test_body_with_file_schema # noqa: E501
For this test, the body for this request must reference a schema named `File`. # noqa: E501
@@ -1691,7 +1795,12 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_body_with_query_params(self, query : StrictStr, user : User, **kwargs) -> None: # noqa: E501
async def test_body_with_query_params(
self,
query: StrictStr,
user: User,
**kwargs,
) -> None:
"""test_body_with_query_params # noqa: E501
@@ -1715,7 +1824,12 @@ class FakeApi:
return await self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
@validate_call
async def test_body_with_query_params_with_http_info(self, query : StrictStr, user : User, **kwargs) -> ApiResponse: # noqa: E501
async def test_body_with_query_params_with_http_info(
self,
query: StrictStr,
user: User,
**kwargs,
) -> ApiResponse:
"""test_body_with_query_params # noqa: E501
@@ -1822,7 +1936,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_client_model(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> Client: # noqa: E501
async def test_client_model(
self,
client: Annotated[Client, Field(description="client model")],
**kwargs,
) -> Client:
"""To test \"client\" model # noqa: E501
To test \"client\" model # noqa: E501
@@ -1845,7 +1963,11 @@ class FakeApi:
return await self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
@validate_call
async def test_client_model_with_http_info(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> ApiResponse: # noqa: E501
async def test_client_model_with_http_info(
self,
client: Annotated[Client, Field(description="client model")],
**kwargs,
) -> ApiResponse:
"""To test \"client\" model # noqa: E501
To test \"client\" model # noqa: E501
@@ -1953,7 +2075,12 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_date_time_query_parameter(self, date_time_query : datetime, str_query : StrictStr, **kwargs) -> None: # noqa: E501
async def test_date_time_query_parameter(
self,
date_time_query: datetime,
str_query: StrictStr,
**kwargs,
) -> None:
"""test_date_time_query_parameter # noqa: E501
@@ -1977,7 +2104,12 @@ class FakeApi:
return await self.test_date_time_query_parameter_with_http_info(date_time_query, str_query, **kwargs) # noqa: E501
@validate_call
async def test_date_time_query_parameter_with_http_info(self, date_time_query : datetime, str_query : StrictStr, **kwargs) -> ApiResponse: # noqa: E501
async def test_date_time_query_parameter_with_http_info(
self,
date_time_query: datetime,
str_query: StrictStr,
**kwargs,
) -> ApiResponse:
"""test_date_time_query_parameter # noqa: E501
@@ -2080,7 +2212,25 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_endpoint_parameters(self, number : Annotated[float, Field(le=543.2, ge=32.1, description="None")], double : Annotated[float, Field(le=123.4, ge=67.8, description="None")], pattern_without_delimiter : Annotated[str, Field(strict=True, description="None")], byte : Annotated[Union[StrictBytes, StrictStr], Field(description="None")], integer : Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=10)]], Field(description="None")] = None, int32 : Annotated[Optional[Annotated[int, Field(le=200, strict=True, ge=20)]], Field(description="None")] = None, int64 : Annotated[Optional[StrictInt], Field(description="None")] = None, var_float : Annotated[Optional[Annotated[float, Field(le=987.6)]], Field(description="None")] = None, string : Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="None")] = None, binary : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="None")] = None, byte_with_max_length : Annotated[Optional[Union[Annotated[bytes, Field(strict=True, max_length=64)], Annotated[str, Field(strict=True, max_length=64)]]], Field(description="None")] = None, var_date : Annotated[Optional[date], Field(description="None")] = None, date_time : Annotated[Optional[datetime], Field(description="None")] = None, password : Annotated[Optional[Annotated[str, Field(min_length=10, strict=True, max_length=64)]], Field(description="None")] = None, param_callback : Annotated[Optional[StrictStr], Field(description="None")] = None, **kwargs) -> None: # noqa: E501
async def test_endpoint_parameters(
self,
number: Annotated[float, Field(le=543.2, ge=32.1, description="None")],
double: Annotated[float, Field(le=123.4, ge=67.8, description="None")],
pattern_without_delimiter: Annotated[str, Field(strict=True, description="None")],
byte: Annotated[Union[StrictBytes, StrictStr], Field(description="None")],
integer: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=10)]], Field(description="None")] = None,
int32: Annotated[Optional[Annotated[int, Field(le=200, strict=True, ge=20)]], Field(description="None")] = None,
int64: Annotated[Optional[StrictInt], Field(description="None")] = None,
var_float: Annotated[Optional[Annotated[float, Field(le=987.6)]], Field(description="None")] = None,
string: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="None")] = None,
binary: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="None")] = None,
byte_with_max_length: Annotated[Optional[Union[Annotated[bytes, Field(strict=True, max_length=64)], Annotated[str, Field(strict=True, max_length=64)]]], Field(description="None")] = None,
var_date: Annotated[Optional[date], Field(description="None")] = None,
date_time: Annotated[Optional[datetime], Field(description="None")] = None,
password: Annotated[Optional[Annotated[str, Field(min_length=10, strict=True, max_length=64)]], Field(description="None")] = None,
param_callback: Annotated[Optional[StrictStr], Field(description="None")] = None,
**kwargs,
) -> None:
"""Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
@@ -2131,7 +2281,25 @@ class FakeApi:
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
@validate_call
async def test_endpoint_parameters_with_http_info(self, number : Annotated[float, Field(le=543.2, ge=32.1, description="None")], double : Annotated[float, Field(le=123.4, ge=67.8, description="None")], pattern_without_delimiter : Annotated[str, Field(strict=True, description="None")], byte : Annotated[Union[StrictBytes, StrictStr], Field(description="None")], integer : Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=10)]], Field(description="None")] = None, int32 : Annotated[Optional[Annotated[int, Field(le=200, strict=True, ge=20)]], Field(description="None")] = None, int64 : Annotated[Optional[StrictInt], Field(description="None")] = None, var_float : Annotated[Optional[Annotated[float, Field(le=987.6)]], Field(description="None")] = None, string : Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="None")] = None, binary : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="None")] = None, byte_with_max_length : Annotated[Optional[Union[Annotated[bytes, Field(strict=True, max_length=64)], Annotated[str, Field(strict=True, max_length=64)]]], Field(description="None")] = None, var_date : Annotated[Optional[date], Field(description="None")] = None, date_time : Annotated[Optional[datetime], Field(description="None")] = None, password : Annotated[Optional[Annotated[str, Field(min_length=10, strict=True, max_length=64)]], Field(description="None")] = None, param_callback : Annotated[Optional[StrictStr], Field(description="None")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def test_endpoint_parameters_with_http_info(
self,
number: Annotated[float, Field(le=543.2, ge=32.1, description="None")],
double: Annotated[float, Field(le=123.4, ge=67.8, description="None")],
pattern_without_delimiter: Annotated[str, Field(strict=True, description="None")],
byte: Annotated[Union[StrictBytes, StrictStr], Field(description="None")],
integer: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=10)]], Field(description="None")] = None,
int32: Annotated[Optional[Annotated[int, Field(le=200, strict=True, ge=20)]], Field(description="None")] = None,
int64: Annotated[Optional[StrictInt], Field(description="None")] = None,
var_float: Annotated[Optional[Annotated[float, Field(le=987.6)]], Field(description="None")] = None,
string: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="None")] = None,
binary: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="None")] = None,
byte_with_max_length: Annotated[Optional[Union[Annotated[bytes, Field(strict=True, max_length=64)], Annotated[str, Field(strict=True, max_length=64)]]], Field(description="None")] = None,
var_date: Annotated[Optional[date], Field(description="None")] = None,
date_time: Annotated[Optional[datetime], Field(description="None")] = None,
password: Annotated[Optional[Annotated[str, Field(min_length=10, strict=True, max_length=64)]], Field(description="None")] = None,
param_callback: Annotated[Optional[StrictStr], Field(description="None")] = None,
**kwargs,
) -> ApiResponse:
"""Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
@@ -2317,7 +2485,16 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_group_parameters(self, required_string_group : Annotated[StrictInt, Field(description="Required String in group parameters")], required_boolean_group : Annotated[StrictBool, Field(description="Required Boolean in group parameters")], required_int64_group : Annotated[StrictInt, Field(description="Required Integer in group parameters")], string_group : Annotated[Optional[StrictInt], Field(description="String in group parameters")] = None, boolean_group : Annotated[Optional[StrictBool], Field(description="Boolean in group parameters")] = None, int64_group : Annotated[Optional[StrictInt], Field(description="Integer in group parameters")] = None, **kwargs) -> None: # noqa: E501
async def test_group_parameters(
self,
required_string_group: Annotated[StrictInt, Field(description="Required String in group parameters")],
required_boolean_group: Annotated[StrictBool, Field(description="Required Boolean in group parameters")],
required_int64_group: Annotated[StrictInt, Field(description="Required Integer in group parameters")],
string_group: Annotated[Optional[StrictInt], Field(description="String in group parameters")] = None,
boolean_group: Annotated[Optional[StrictBool], Field(description="Boolean in group parameters")] = None,
int64_group: Annotated[Optional[StrictInt], Field(description="Integer in group parameters")] = None,
**kwargs,
) -> None:
"""Fake endpoint to test group parameters (optional) # noqa: E501
Fake endpoint to test group parameters (optional) # noqa: E501
@@ -2350,7 +2527,16 @@ class FakeApi:
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
@validate_call
async def test_group_parameters_with_http_info(self, required_string_group : Annotated[StrictInt, Field(description="Required String in group parameters")], required_boolean_group : Annotated[StrictBool, Field(description="Required Boolean in group parameters")], required_int64_group : Annotated[StrictInt, Field(description="Required Integer in group parameters")], string_group : Annotated[Optional[StrictInt], Field(description="String in group parameters")] = None, boolean_group : Annotated[Optional[StrictBool], Field(description="Boolean in group parameters")] = None, int64_group : Annotated[Optional[StrictInt], Field(description="Integer in group parameters")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def test_group_parameters_with_http_info(
self,
required_string_group: Annotated[StrictInt, Field(description="Required String in group parameters")],
required_boolean_group: Annotated[StrictBool, Field(description="Required Boolean in group parameters")],
required_int64_group: Annotated[StrictInt, Field(description="Required Integer in group parameters")],
string_group: Annotated[Optional[StrictInt], Field(description="String in group parameters")] = None,
boolean_group: Annotated[Optional[StrictBool], Field(description="Boolean in group parameters")] = None,
int64_group: Annotated[Optional[StrictInt], Field(description="Integer in group parameters")] = None,
**kwargs,
) -> ApiResponse:
"""Fake endpoint to test group parameters (optional) # noqa: E501
Fake endpoint to test group parameters (optional) # noqa: E501
@@ -2475,7 +2661,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_inline_additional_properties(self, request_body : Annotated[Dict[str, StrictStr], Field(description="request body")], **kwargs) -> None: # noqa: E501
async def test_inline_additional_properties(
self,
request_body: Annotated[Dict[str, StrictStr], Field(description="request body")],
**kwargs,
) -> None:
"""test inline additionalProperties # noqa: E501
# noqa: E501
@@ -2498,7 +2688,11 @@ class FakeApi:
return await self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
@validate_call
async def test_inline_additional_properties_with_http_info(self, request_body : Annotated[Dict[str, StrictStr], Field(description="request body")], **kwargs) -> ApiResponse: # noqa: E501
async def test_inline_additional_properties_with_http_info(
self,
request_body: Annotated[Dict[str, StrictStr], Field(description="request body")],
**kwargs,
) -> ApiResponse:
"""test inline additionalProperties # noqa: E501
# noqa: E501
@@ -2600,7 +2794,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_inline_freeform_additional_properties(self, test_inline_freeform_additional_properties_request : Annotated[TestInlineFreeformAdditionalPropertiesRequest, Field(description="request body")], **kwargs) -> None: # noqa: E501
async def test_inline_freeform_additional_properties(
self,
test_inline_freeform_additional_properties_request: Annotated[TestInlineFreeformAdditionalPropertiesRequest, Field(description="request body")],
**kwargs,
) -> None:
"""test inline free-form additionalProperties # noqa: E501
# noqa: E501
@@ -2623,7 +2821,11 @@ class FakeApi:
return await self.test_inline_freeform_additional_properties_with_http_info(test_inline_freeform_additional_properties_request, **kwargs) # noqa: E501
@validate_call
async def test_inline_freeform_additional_properties_with_http_info(self, test_inline_freeform_additional_properties_request : Annotated[TestInlineFreeformAdditionalPropertiesRequest, Field(description="request body")], **kwargs) -> ApiResponse: # noqa: E501
async def test_inline_freeform_additional_properties_with_http_info(
self,
test_inline_freeform_additional_properties_request: Annotated[TestInlineFreeformAdditionalPropertiesRequest, Field(description="request body")],
**kwargs,
) -> ApiResponse:
"""test inline free-form additionalProperties # noqa: E501
# noqa: E501
@@ -2725,7 +2927,12 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_json_form_data(self, param : Annotated[StrictStr, Field(description="field1")], param2 : Annotated[StrictStr, Field(description="field2")], **kwargs) -> None: # noqa: E501
async def test_json_form_data(
self,
param: Annotated[StrictStr, Field(description="field1")],
param2: Annotated[StrictStr, Field(description="field2")],
**kwargs,
) -> None:
"""test json serialization of form data # noqa: E501
# noqa: E501
@@ -2750,7 +2957,12 @@ class FakeApi:
return await self.test_json_form_data_with_http_info(param, param2, **kwargs) # noqa: E501
@validate_call
async def test_json_form_data_with_http_info(self, param : Annotated[StrictStr, Field(description="field1")], param2 : Annotated[StrictStr, Field(description="field2")], **kwargs) -> ApiResponse: # noqa: E501
async def test_json_form_data_with_http_info(
self,
param: Annotated[StrictStr, Field(description="field1")],
param2: Annotated[StrictStr, Field(description="field2")],
**kwargs,
) -> ApiResponse:
"""test json serialization of form data # noqa: E501
# noqa: E501
@@ -2858,7 +3070,17 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def test_query_parameter_collection_format(self, pipe : List[StrictStr], ioutil : List[StrictStr], http : List[StrictStr], url : List[StrictStr], context : List[StrictStr], allow_empty : StrictStr, language : Optional[Dict[str, StrictStr]] = None, **kwargs) -> None: # noqa: E501
async def test_query_parameter_collection_format(
self,
pipe: List[StrictStr],
ioutil: List[StrictStr],
http: List[StrictStr],
url: List[StrictStr],
context: List[StrictStr],
allow_empty: StrictStr,
language: Optional[Dict[str, StrictStr]] = None,
**kwargs,
) -> None:
"""test_query_parameter_collection_format # noqa: E501
To test the collection format in query parameters # noqa: E501
@@ -2893,7 +3115,17 @@ class FakeApi:
return await self.test_query_parameter_collection_format_with_http_info(pipe, ioutil, http, url, context, allow_empty, language, **kwargs) # noqa: E501
@validate_call
async def test_query_parameter_collection_format_with_http_info(self, pipe : List[StrictStr], ioutil : List[StrictStr], http : List[StrictStr], url : List[StrictStr], context : List[StrictStr], allow_empty : StrictStr, language : Optional[Dict[str, StrictStr]] = None, **kwargs) -> ApiResponse: # noqa: E501
async def test_query_parameter_collection_format_with_http_info(
self,
pipe: List[StrictStr],
ioutil: List[StrictStr],
http: List[StrictStr],
url: List[StrictStr],
context: List[StrictStr],
allow_empty: StrictStr,
language: Optional[Dict[str, StrictStr]] = None,
**kwargs,
) -> ApiResponse:
"""test_query_parameter_collection_format # noqa: E501
To test the collection format in query parameters # noqa: E501

View File

@@ -44,7 +44,11 @@ class FakeClassnameTags123Api:
self.api_client = api_client
@validate_call
async def test_classname(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> Client: # noqa: E501
async def test_classname(
self,
client: Annotated[Client, Field(description="client model")],
**kwargs,
) -> Client:
"""To test class name in snake case # noqa: E501
To test class name in snake case # noqa: E501
@@ -67,7 +71,11 @@ class FakeClassnameTags123Api:
return await self.test_classname_with_http_info(client, **kwargs) # noqa: E501
@validate_call
async def test_classname_with_http_info(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> ApiResponse: # noqa: E501
async def test_classname_with_http_info(
self,
client: Annotated[Client, Field(description="client model")],
**kwargs,
) -> ApiResponse:
"""To test class name in snake case # noqa: E501
To test class name in snake case # noqa: E501

View File

@@ -49,7 +49,11 @@ class PetApi:
self.api_client = api_client
@validate_call
async def add_pet(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], **kwargs) -> None: # noqa: E501
async def add_pet(
self,
pet: Annotated[Pet, Field(description="Pet object that needs to be added to the store")],
**kwargs,
) -> None:
"""Add a new pet to the store # noqa: E501
# noqa: E501
@@ -72,7 +76,11 @@ class PetApi:
return await self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
@validate_call
async def add_pet_with_http_info(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], **kwargs) -> ApiResponse: # noqa: E501
async def add_pet_with_http_info(
self,
pet: Annotated[Pet, Field(description="Pet object that needs to be added to the store")],
**kwargs,
) -> ApiResponse:
"""Add a new pet to the store # noqa: E501
# noqa: E501
@@ -174,7 +182,12 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def delete_pet(self, pet_id : Annotated[StrictInt, Field(description="Pet id to delete")], api_key : Optional[StrictStr] = None, **kwargs) -> None: # noqa: E501
async def delete_pet(
self,
pet_id: Annotated[StrictInt, Field(description="Pet id to delete")],
api_key: Optional[StrictStr] = None,
**kwargs,
) -> None:
"""Deletes a pet # noqa: E501
# noqa: E501
@@ -199,7 +212,12 @@ class PetApi:
return await self.delete_pet_with_http_info(pet_id, api_key, **kwargs) # noqa: E501
@validate_call
async def delete_pet_with_http_info(self, pet_id : Annotated[StrictInt, Field(description="Pet id to delete")], api_key : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
async def delete_pet_with_http_info(
self,
pet_id: Annotated[StrictInt, Field(description="Pet id to delete")],
api_key: Optional[StrictStr] = None,
**kwargs,
) -> ApiResponse:
"""Deletes a pet # noqa: E501
# noqa: E501
@@ -300,7 +318,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def find_pets_by_status(self, status : Annotated[List[StrictStr], Field(description="Status values that need to be considered for filter")], **kwargs) -> List[Pet]: # noqa: E501
async def find_pets_by_status(
self,
status: Annotated[List[StrictStr], Field(description="Status values that need to be considered for filter")],
**kwargs,
) -> List[Pet]:
"""Finds Pets by status # noqa: E501
Multiple status values can be provided with comma separated strings # noqa: E501
@@ -323,7 +345,11 @@ class PetApi:
return await self.find_pets_by_status_with_http_info(status, **kwargs) # noqa: E501
@validate_call
async def find_pets_by_status_with_http_info(self, status : Annotated[List[StrictStr], Field(description="Status values that need to be considered for filter")], **kwargs) -> ApiResponse: # noqa: E501
async def find_pets_by_status_with_http_info(
self,
status: Annotated[List[StrictStr], Field(description="Status values that need to be considered for filter")],
**kwargs,
) -> ApiResponse:
"""Finds Pets by status # noqa: E501
Multiple status values can be provided with comma separated strings # noqa: E501
@@ -426,7 +452,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def find_pets_by_tags(self, tags : Annotated[List[StrictStr], Field(description="Tags to filter by")], **kwargs) -> List[Pet]: # noqa: E501
async def find_pets_by_tags(
self,
tags: Annotated[List[StrictStr], Field(description="Tags to filter by")],
**kwargs,
) -> List[Pet]:
"""(Deprecated) Finds Pets by tags # noqa: E501
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. # noqa: E501
@@ -449,7 +479,11 @@ class PetApi:
return await self.find_pets_by_tags_with_http_info(tags, **kwargs) # noqa: E501
@validate_call
async def find_pets_by_tags_with_http_info(self, tags : Annotated[List[StrictStr], Field(description="Tags to filter by")], **kwargs) -> ApiResponse: # noqa: E501
async def find_pets_by_tags_with_http_info(
self,
tags: Annotated[List[StrictStr], Field(description="Tags to filter by")],
**kwargs,
) -> ApiResponse:
"""(Deprecated) Finds Pets by tags # noqa: E501
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. # noqa: E501
@@ -554,7 +588,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def get_pet_by_id(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to return")], **kwargs) -> Pet: # noqa: E501
async def get_pet_by_id(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet to return")],
**kwargs,
) -> Pet:
"""Find pet by ID # noqa: E501
Returns a single pet # noqa: E501
@@ -577,7 +615,11 @@ class PetApi:
return await self.get_pet_by_id_with_http_info(pet_id, **kwargs) # noqa: E501
@validate_call
async def get_pet_by_id_with_http_info(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to return")], **kwargs) -> ApiResponse: # noqa: E501
async def get_pet_by_id_with_http_info(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet to return")],
**kwargs,
) -> ApiResponse:
"""Find pet by ID # noqa: E501
Returns a single pet # noqa: E501
@@ -680,7 +722,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def update_pet(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], **kwargs) -> None: # noqa: E501
async def update_pet(
self,
pet: Annotated[Pet, Field(description="Pet object that needs to be added to the store")],
**kwargs,
) -> None:
"""Update an existing pet # noqa: E501
# noqa: E501
@@ -703,7 +749,11 @@ class PetApi:
return await self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
@validate_call
async def update_pet_with_http_info(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], **kwargs) -> ApiResponse: # noqa: E501
async def update_pet_with_http_info(
self,
pet: Annotated[Pet, Field(description="Pet object that needs to be added to the store")],
**kwargs,
) -> ApiResponse:
"""Update an existing pet # noqa: E501
# noqa: E501
@@ -805,7 +855,13 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def update_pet_with_form(self, pet_id : Annotated[StrictInt, Field(description="ID of pet that needs to be updated")], name : Annotated[Optional[StrictStr], Field(description="Updated name of the pet")] = None, status : Annotated[Optional[StrictStr], Field(description="Updated status of the pet")] = None, **kwargs) -> None: # noqa: E501
async def update_pet_with_form(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet that needs to be updated")],
name: Annotated[Optional[StrictStr], Field(description="Updated name of the pet")] = None,
status: Annotated[Optional[StrictStr], Field(description="Updated status of the pet")] = None,
**kwargs,
) -> None:
"""Updates a pet in the store with form data # noqa: E501
# noqa: E501
@@ -832,7 +888,13 @@ class PetApi:
return await self.update_pet_with_form_with_http_info(pet_id, name, status, **kwargs) # noqa: E501
@validate_call
async def update_pet_with_form_with_http_info(self, pet_id : Annotated[StrictInt, Field(description="ID of pet that needs to be updated")], name : Annotated[Optional[StrictStr], Field(description="Updated name of the pet")] = None, status : Annotated[Optional[StrictStr], Field(description="Updated status of the pet")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def update_pet_with_form_with_http_info(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet that needs to be updated")],
name: Annotated[Optional[StrictStr], Field(description="Updated name of the pet")] = None,
status: Annotated[Optional[StrictStr], Field(description="Updated status of the pet")] = None,
**kwargs,
) -> ApiResponse:
"""Updates a pet in the store with form data # noqa: E501
# noqa: E501
@@ -946,7 +1008,13 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def upload_file(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to update")], additional_metadata : Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None, file : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="file to upload")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def upload_file(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet to update")],
additional_metadata: Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None,
file: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="file to upload")] = None,
**kwargs,
) -> ApiResponse:
"""uploads an image # noqa: E501
# noqa: E501
@@ -973,7 +1041,13 @@ class PetApi:
return await self.upload_file_with_http_info(pet_id, additional_metadata, file, **kwargs) # noqa: E501
@validate_call
async def upload_file_with_http_info(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to update")], additional_metadata : Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None, file : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="file to upload")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def upload_file_with_http_info(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet to update")],
additional_metadata: Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None,
file: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="file to upload")] = None,
**kwargs,
) -> ApiResponse:
"""uploads an image # noqa: E501
# noqa: E501
@@ -1093,7 +1167,13 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def upload_file_with_required_file(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to update")], required_file : Annotated[Union[StrictBytes, StrictStr], Field(description="file to upload")], additional_metadata : Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def upload_file_with_required_file(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet to update")],
required_file: Annotated[Union[StrictBytes, StrictStr], Field(description="file to upload")],
additional_metadata: Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None,
**kwargs,
) -> ApiResponse:
"""uploads an image (required) # noqa: E501
# noqa: E501
@@ -1120,7 +1200,13 @@ class PetApi:
return await self.upload_file_with_required_file_with_http_info(pet_id, required_file, additional_metadata, **kwargs) # noqa: E501
@validate_call
async def upload_file_with_required_file_with_http_info(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to update")], required_file : Annotated[Union[StrictBytes, StrictStr], Field(description="file to upload")], additional_metadata : Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None, **kwargs) -> ApiResponse: # noqa: E501
async def upload_file_with_required_file_with_http_info(
self,
pet_id: Annotated[StrictInt, Field(description="ID of pet to update")],
required_file: Annotated[Union[StrictBytes, StrictStr], Field(description="file to upload")],
additional_metadata: Annotated[Optional[StrictStr], Field(description="Additional data to pass to server")] = None,
**kwargs,
) -> ApiResponse:
"""uploads an image (required) # noqa: E501
# noqa: E501

View File

@@ -48,7 +48,11 @@ class StoreApi:
self.api_client = api_client
@validate_call
async def delete_order(self, order_id : Annotated[StrictStr, Field(description="ID of the order that needs to be deleted")], **kwargs) -> None: # noqa: E501
async def delete_order(
self,
order_id: Annotated[StrictStr, Field(description="ID of the order that needs to be deleted")],
**kwargs,
) -> None:
"""Delete purchase order by ID # noqa: E501
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors # noqa: E501
@@ -71,7 +75,11 @@ class StoreApi:
return await self.delete_order_with_http_info(order_id, **kwargs) # noqa: E501
@validate_call
async def delete_order_with_http_info(self, order_id : Annotated[StrictStr, Field(description="ID of the order that needs to be deleted")], **kwargs) -> ApiResponse: # noqa: E501
async def delete_order_with_http_info(
self,
order_id: Annotated[StrictStr, Field(description="ID of the order that needs to be deleted")],
**kwargs,
) -> ApiResponse:
"""Delete purchase order by ID # noqa: E501
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors # noqa: E501
@@ -166,7 +174,10 @@ class StoreApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def get_inventory(self, **kwargs) -> Dict[str, int]: # noqa: E501
async def get_inventory(
self,
**kwargs,
) -> Dict[str, int]:
"""Returns pet inventories by status # noqa: E501
Returns a map of status codes to quantities # noqa: E501
@@ -187,7 +198,10 @@ class StoreApi:
return await self.get_inventory_with_http_info(**kwargs) # noqa: E501
@validate_call
async def get_inventory_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
async def get_inventory_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""Returns pet inventories by status # noqa: E501
Returns a map of status codes to quantities # noqa: E501
@@ -282,7 +296,11 @@ class StoreApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def get_order_by_id(self, order_id : Annotated[int, Field(le=5, strict=True, ge=1, description="ID of pet that needs to be fetched")], **kwargs) -> Order: # noqa: E501
async def get_order_by_id(
self,
order_id: Annotated[int, Field(le=5, strict=True, ge=1, description="ID of pet that needs to be fetched")],
**kwargs,
) -> Order:
"""Find purchase order by ID # noqa: E501
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions # noqa: E501
@@ -305,7 +323,11 @@ class StoreApi:
return await self.get_order_by_id_with_http_info(order_id, **kwargs) # noqa: E501
@validate_call
async def get_order_by_id_with_http_info(self, order_id : Annotated[int, Field(le=5, strict=True, ge=1, description="ID of pet that needs to be fetched")], **kwargs) -> ApiResponse: # noqa: E501
async def get_order_by_id_with_http_info(
self,
order_id: Annotated[int, Field(le=5, strict=True, ge=1, description="ID of pet that needs to be fetched")],
**kwargs,
) -> ApiResponse:
"""Find purchase order by ID # noqa: E501
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions # noqa: E501
@@ -408,7 +430,11 @@ class StoreApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def place_order(self, order : Annotated[Order, Field(description="order placed for purchasing the pet")], **kwargs) -> Order: # noqa: E501
async def place_order(
self,
order: Annotated[Order, Field(description="order placed for purchasing the pet")],
**kwargs,
) -> Order:
"""Place an order for a pet # noqa: E501
# noqa: E501
@@ -431,7 +457,11 @@ class StoreApi:
return await self.place_order_with_http_info(order, **kwargs) # noqa: E501
@validate_call
async def place_order_with_http_info(self, order : Annotated[Order, Field(description="order placed for purchasing the pet")], **kwargs) -> ApiResponse: # noqa: E501
async def place_order_with_http_info(
self,
order: Annotated[Order, Field(description="order placed for purchasing the pet")],
**kwargs,
) -> ApiResponse:
"""Place an order for a pet # noqa: E501
# noqa: E501

View File

@@ -48,7 +48,11 @@ class UserApi:
self.api_client = api_client
@validate_call
async def create_user(self, user : Annotated[User, Field(description="Created user object")], **kwargs) -> None: # noqa: E501
async def create_user(
self,
user: Annotated[User, Field(description="Created user object")],
**kwargs,
) -> None:
"""Create user # noqa: E501
This can only be done by the logged in user. # noqa: E501
@@ -71,7 +75,11 @@ class UserApi:
return await self.create_user_with_http_info(user, **kwargs) # noqa: E501
@validate_call
async def create_user_with_http_info(self, user : Annotated[User, Field(description="Created user object")], **kwargs) -> ApiResponse: # noqa: E501
async def create_user_with_http_info(
self,
user: Annotated[User, Field(description="Created user object")],
**kwargs,
) -> ApiResponse:
"""Create user # noqa: E501
This can only be done by the logged in user. # noqa: E501
@@ -188,7 +196,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def create_users_with_array_input(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> None: # noqa: E501
async def create_users_with_array_input(
self,
user: Annotated[List[User], Field(description="List of user object")],
**kwargs,
) -> None:
"""Creates list of users with given input array # noqa: E501
# noqa: E501
@@ -211,7 +223,11 @@ class UserApi:
return await self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
@validate_call
async def create_users_with_array_input_with_http_info(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> ApiResponse: # noqa: E501
async def create_users_with_array_input_with_http_info(
self,
user: Annotated[List[User], Field(description="List of user object")],
**kwargs,
) -> ApiResponse:
"""Creates list of users with given input array # noqa: E501
# noqa: E501
@@ -313,7 +329,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def create_users_with_list_input(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> None: # noqa: E501
async def create_users_with_list_input(
self,
user: Annotated[List[User], Field(description="List of user object")],
**kwargs,
) -> None:
"""Creates list of users with given input array # noqa: E501
# noqa: E501
@@ -336,7 +356,11 @@ class UserApi:
return await self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
@validate_call
async def create_users_with_list_input_with_http_info(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> ApiResponse: # noqa: E501
async def create_users_with_list_input_with_http_info(
self,
user: Annotated[List[User], Field(description="List of user object")],
**kwargs,
) -> ApiResponse:
"""Creates list of users with given input array # noqa: E501
# noqa: E501
@@ -438,7 +462,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def delete_user(self, username : Annotated[StrictStr, Field(description="The name that needs to be deleted")], **kwargs) -> None: # noqa: E501
async def delete_user(
self,
username: Annotated[StrictStr, Field(description="The name that needs to be deleted")],
**kwargs,
) -> None:
"""Delete user # noqa: E501
This can only be done by the logged in user. # noqa: E501
@@ -461,7 +489,11 @@ class UserApi:
return await self.delete_user_with_http_info(username, **kwargs) # noqa: E501
@validate_call
async def delete_user_with_http_info(self, username : Annotated[StrictStr, Field(description="The name that needs to be deleted")], **kwargs) -> ApiResponse: # noqa: E501
async def delete_user_with_http_info(
self,
username: Annotated[StrictStr, Field(description="The name that needs to be deleted")],
**kwargs,
) -> ApiResponse:
"""Delete user # noqa: E501
This can only be done by the logged in user. # noqa: E501
@@ -556,7 +588,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def get_user_by_name(self, username : Annotated[StrictStr, Field(description="The name that needs to be fetched. Use user1 for testing.")], **kwargs) -> User: # noqa: E501
async def get_user_by_name(
self,
username: Annotated[StrictStr, Field(description="The name that needs to be fetched. Use user1 for testing.")],
**kwargs,
) -> User:
"""Get user by user name # noqa: E501
# noqa: E501
@@ -579,7 +615,11 @@ class UserApi:
return await self.get_user_by_name_with_http_info(username, **kwargs) # noqa: E501
@validate_call
async def get_user_by_name_with_http_info(self, username : Annotated[StrictStr, Field(description="The name that needs to be fetched. Use user1 for testing.")], **kwargs) -> ApiResponse: # noqa: E501
async def get_user_by_name_with_http_info(
self,
username: Annotated[StrictStr, Field(description="The name that needs to be fetched. Use user1 for testing.")],
**kwargs,
) -> ApiResponse:
"""Get user by user name # noqa: E501
# noqa: E501
@@ -682,7 +722,12 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def login_user(self, username : Annotated[StrictStr, Field(description="The user name for login")], password : Annotated[StrictStr, Field(description="The password for login in clear text")], **kwargs) -> str: # noqa: E501
async def login_user(
self,
username: Annotated[StrictStr, Field(description="The user name for login")],
password: Annotated[StrictStr, Field(description="The password for login in clear text")],
**kwargs,
) -> str:
"""Logs user into the system # noqa: E501
# noqa: E501
@@ -707,7 +752,12 @@ class UserApi:
return await self.login_user_with_http_info(username, password, **kwargs) # noqa: E501
@validate_call
async def login_user_with_http_info(self, username : Annotated[StrictStr, Field(description="The user name for login")], password : Annotated[StrictStr, Field(description="The password for login in clear text")], **kwargs) -> ApiResponse: # noqa: E501
async def login_user_with_http_info(
self,
username: Annotated[StrictStr, Field(description="The user name for login")],
password: Annotated[StrictStr, Field(description="The password for login in clear text")],
**kwargs,
) -> ApiResponse:
"""Logs user into the system # noqa: E501
# noqa: E501
@@ -815,7 +865,10 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def logout_user(self, **kwargs) -> None: # noqa: E501
async def logout_user(
self,
**kwargs,
) -> None:
"""Logs out current logged in user session # noqa: E501
# noqa: E501
@@ -836,7 +889,10 @@ class UserApi:
return await self.logout_user_with_http_info(**kwargs) # noqa: E501
@validate_call
async def logout_user_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
async def logout_user_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""Logs out current logged in user session # noqa: E501
# noqa: E501
@@ -925,7 +981,12 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
async def update_user(self, username : Annotated[StrictStr, Field(description="name that need to be deleted")], user : Annotated[User, Field(description="Updated user object")], **kwargs) -> None: # noqa: E501
async def update_user(
self,
username: Annotated[StrictStr, Field(description="name that need to be deleted")],
user: Annotated[User, Field(description="Updated user object")],
**kwargs,
) -> None:
"""Updated user # noqa: E501
This can only be done by the logged in user. # noqa: E501
@@ -950,7 +1011,12 @@ class UserApi:
return await self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
@validate_call
async def update_user_with_http_info(self, username : Annotated[StrictStr, Field(description="name that need to be deleted")], user : Annotated[User, Field(description="Updated user object")], **kwargs) -> ApiResponse: # noqa: E501
async def update_user_with_http_info(
self,
username: Annotated[StrictStr, Field(description="name that need to be deleted")],
user: Annotated[User, Field(description="Updated user object")],
**kwargs,
) -> ApiResponse:
"""Updated user # noqa: E501
This can only be done by the logged in user. # noqa: E501