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
def call_123_test_special_tags(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> Client: # noqa: E501
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
@@ -74,7 +78,11 @@ class AnotherFakeApi:
return self.call_123_test_special_tags_with_http_info(client, **kwargs) # noqa: E501
@validate_call
def call_123_test_special_tags_with_http_info(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> ApiResponse: # noqa: E501
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
def foo_get(self, **kwargs) -> FooGetDefaultResponse: # noqa: E501
def foo_get(
self,
**kwargs,
) -> FooGetDefaultResponse:
"""foo_get # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -69,7 +72,10 @@ class DefaultApi:
return self.foo_get_with_http_info(**kwargs) # noqa: E501
@validate_call
def foo_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
def foo_get_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""foo_get # noqa: E501
This method makes a synchronous HTTP request by default. To make an

View File

@@ -59,7 +59,11 @@ class FakeApi:
self.api_client = api_client
@validate_call
def fake_any_type_request_body(self, body : Optional[Dict[str, Any]] = None, **kwargs) -> None: # noqa: E501
def fake_any_type_request_body(
self,
body: Optional[Dict[str, Any]] = None,
**kwargs,
) -> None:
"""test any type request body # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -88,7 +92,11 @@ class FakeApi:
return self.fake_any_type_request_body_with_http_info(body, **kwargs) # noqa: E501
@validate_call
def fake_any_type_request_body_with_http_info(self, body : Optional[Dict[str, Any]] = None, **kwargs) -> ApiResponse: # noqa: E501
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
This method makes a synchronous HTTP request by default. To make an
@@ -198,7 +206,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_enum_ref_query_parameter(self, enum_ref : Annotated[Optional[EnumClass], Field(description="enum reference")] = None, **kwargs) -> None: # noqa: E501
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
This method makes a synchronous HTTP request by default. To make an
@@ -227,7 +239,11 @@ class FakeApi:
return self.fake_enum_ref_query_parameter_with_http_info(enum_ref, **kwargs) # noqa: E501
@validate_call
def fake_enum_ref_query_parameter_with_http_info(self, enum_ref : Annotated[Optional[EnumClass], Field(description="enum reference")] = None, **kwargs) -> ApiResponse: # noqa: E501
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
This method makes a synchronous HTTP request by default. To make an
@@ -330,7 +346,10 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_health_get(self, **kwargs) -> HealthCheckResult: # noqa: E501
def fake_health_get(
self,
**kwargs,
) -> HealthCheckResult:
"""Health check endpoint # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -357,7 +376,10 @@ class FakeApi:
return self.fake_health_get_with_http_info(**kwargs) # noqa: E501
@validate_call
def fake_health_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
def fake_health_get_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""Health check endpoint # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -460,7 +482,13 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
This method makes a synchronous HTTP request by default. To make an
@@ -493,7 +521,13 @@ class FakeApi:
return self.fake_http_signature_test_with_http_info(pet, query_1, header_1, **kwargs) # noqa: E501
@validate_call
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
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
This method makes a synchronous HTTP request by default. To make an
@@ -615,7 +649,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_outer_boolean_serialize(self, body : Annotated[Optional[StrictBool], Field(description="Input boolean as post body")] = None, **kwargs) -> bool: # noqa: E501
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
@@ -645,7 +683,11 @@ class FakeApi:
return self.fake_outer_boolean_serialize_with_http_info(body, **kwargs) # noqa: E501
@validate_call
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
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
@@ -762,7 +804,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_outer_composite_serialize(self, outer_composite : Annotated[Optional[OuterComposite], Field(description="Input composite as post body")] = None, **kwargs) -> OuterComposite: # noqa: E501
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
@@ -792,7 +838,11 @@ class FakeApi:
return self.fake_outer_composite_serialize_with_http_info(outer_composite, **kwargs) # noqa: E501
@validate_call
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
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
@@ -909,7 +959,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_outer_number_serialize(self, body : Annotated[Optional[StrictFloat], Field(description="Input number as post body")] = None, **kwargs) -> float: # noqa: E501
def fake_outer_number_serialize(
self,
body: Annotated[Optional[StrictFloat], Field(description="Input number as post body")] = None,
**kwargs,
) -> float:
"""fake_outer_number_serialize # noqa: E501
Test serialization of outer number types # noqa: E501
@@ -939,7 +993,11 @@ class FakeApi:
return self.fake_outer_number_serialize_with_http_info(body, **kwargs) # noqa: E501
@validate_call
def fake_outer_number_serialize_with_http_info(self, body : Annotated[Optional[StrictFloat], Field(description="Input number as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501
def fake_outer_number_serialize_with_http_info(
self,
body: Annotated[Optional[StrictFloat], Field(description="Input number as post body")] = None,
**kwargs,
) -> ApiResponse:
"""fake_outer_number_serialize # noqa: E501
Test serialization of outer number types # noqa: E501
@@ -1056,7 +1114,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_outer_string_serialize(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> str: # noqa: E501
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
@@ -1086,7 +1148,11 @@ class FakeApi:
return self.fake_outer_string_serialize_with_http_info(body, **kwargs) # noqa: E501
@validate_call
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
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
@@ -1203,7 +1269,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -1233,7 +1303,11 @@ class FakeApi:
return self.fake_property_enum_integer_serialize_with_http_info(outer_object_with_enum_property, **kwargs) # noqa: E501
@validate_call
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
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
@@ -1350,7 +1424,10 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_return_list_of_objects(self, **kwargs) -> List[List[Tag]]: # noqa: E501
def fake_return_list_of_objects(
self,
**kwargs,
) -> List[List[Tag]]:
"""test returning list of objects # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -1377,7 +1454,10 @@ class FakeApi:
return self.fake_return_list_of_objects_with_http_info(**kwargs) # noqa: E501
@validate_call
def fake_return_list_of_objects_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
def fake_return_list_of_objects_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""test returning list of objects # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -1480,7 +1560,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def fake_uuid_example(self, uuid_example : Annotated[StrictStr, Field(description="uuid example")], **kwargs) -> None: # noqa: E501
def fake_uuid_example(
self,
uuid_example: Annotated[StrictStr, Field(description="uuid example")],
**kwargs,
) -> None:
"""test uuid example # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -1509,7 +1593,11 @@ class FakeApi:
return self.fake_uuid_example_with_http_info(uuid_example, **kwargs) # noqa: E501
@validate_call
def fake_uuid_example_with_http_info(self, uuid_example : Annotated[StrictStr, Field(description="uuid example")], **kwargs) -> ApiResponse: # noqa: E501
def fake_uuid_example_with_http_info(
self,
uuid_example: Annotated[StrictStr, Field(description="uuid example")],
**kwargs,
) -> ApiResponse:
"""test uuid example # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -1612,7 +1700,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_body_with_binary(self, body : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="image to upload")], **kwargs) -> None: # noqa: E501
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
@@ -1642,7 +1734,11 @@ class FakeApi:
return self.test_body_with_binary_with_http_info(body, **kwargs) # noqa: E501
@validate_call
def test_body_with_binary_with_http_info(self, body : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="image to upload")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -1758,7 +1854,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_body_with_file_schema(self, file_schema_test_class : FileSchemaTestClass, **kwargs) -> None: # noqa: E501
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
@@ -1788,7 +1888,11 @@ class FakeApi:
return self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
@validate_call
def test_body_with_file_schema_with_http_info(self, file_schema_test_class : FileSchemaTestClass, **kwargs) -> ApiResponse: # noqa: E501
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
@@ -1899,7 +2003,12 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_body_with_query_params(self, query : StrictStr, user : User, **kwargs) -> None: # noqa: E501
def test_body_with_query_params(
self,
query: StrictStr,
user: User,
**kwargs,
) -> None:
"""test_body_with_query_params # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -1930,7 +2039,12 @@ class FakeApi:
return self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
@validate_call
def test_body_with_query_params_with_http_info(self, query : StrictStr, user : User, **kwargs) -> ApiResponse: # noqa: E501
def test_body_with_query_params_with_http_info(
self,
query: StrictStr,
user: User,
**kwargs,
) -> ApiResponse:
"""test_body_with_query_params # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -2046,7 +2160,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_client_model(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> Client: # noqa: E501
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
@@ -2076,7 +2194,11 @@ class FakeApi:
return self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
@validate_call
def test_client_model_with_http_info(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -2193,7 +2315,12 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_date_time_query_parameter(self, date_time_query : datetime, str_query : StrictStr, **kwargs) -> None: # noqa: E501
def test_date_time_query_parameter(
self,
date_time_query: datetime,
str_query: StrictStr,
**kwargs,
) -> None:
"""test_date_time_query_parameter # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -2224,7 +2351,12 @@ class FakeApi:
return self.test_date_time_query_parameter_with_http_info(date_time_query, str_query, **kwargs) # noqa: E501
@validate_call
def test_date_time_query_parameter_with_http_info(self, date_time_query : datetime, str_query : StrictStr, **kwargs) -> ApiResponse: # noqa: E501
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
This method makes a synchronous HTTP request by default. To make an
@@ -2336,7 +2468,25 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_endpoint_parameters(self, number : Annotated[float, Field(le=543.2, strict=True, ge=32.1, description="None")], double : Annotated[float, Field(le=123.4, strict=True, 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, strict=True)]], 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
def test_endpoint_parameters(
self,
number: Annotated[float, Field(le=543.2, strict=True, ge=32.1, description="None")],
double: Annotated[float, Field(le=123.4, strict=True, 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, strict=True)]], 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
@@ -2394,7 +2544,25 @@ class FakeApi:
return 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
def test_endpoint_parameters_with_http_info(self, number : Annotated[float, Field(le=543.2, strict=True, ge=32.1, description="None")], double : Annotated[float, Field(le=123.4, strict=True, 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, strict=True)]], 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
def test_endpoint_parameters_with_http_info(
self,
number: Annotated[float, Field(le=543.2, strict=True, ge=32.1, description="None")],
double: Annotated[float, Field(le=123.4, strict=True, 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, strict=True)]], 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
@@ -2589,7 +2757,16 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -2629,7 +2806,16 @@ class FakeApi:
return 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
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
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
@@ -2763,7 +2949,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_inline_additional_properties(self, request_body : Annotated[Dict[str, StrictStr], Field(description="request body")], **kwargs) -> None: # noqa: E501
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
@@ -2793,7 +2983,11 @@ class FakeApi:
return self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
@validate_call
def test_inline_additional_properties_with_http_info(self, request_body : Annotated[Dict[str, StrictStr], Field(description="request body")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -2904,7 +3098,11 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_inline_freeform_additional_properties(self, test_inline_freeform_additional_properties_request : Annotated[TestInlineFreeformAdditionalPropertiesRequest, Field(description="request body")], **kwargs) -> None: # noqa: E501
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
@@ -2934,7 +3132,11 @@ class FakeApi:
return self.test_inline_freeform_additional_properties_with_http_info(test_inline_freeform_additional_properties_request, **kwargs) # noqa: E501
@validate_call
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
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
@@ -3045,7 +3247,12 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def test_json_form_data(self, param : Annotated[StrictStr, Field(description="field1")], param2 : Annotated[StrictStr, Field(description="field2")], **kwargs) -> None: # noqa: E501
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
@@ -3077,7 +3284,12 @@ class FakeApi:
return self.test_json_form_data_with_http_info(param, param2, **kwargs) # noqa: E501
@validate_call
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
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
@@ -3194,7 +3406,17 @@ class FakeApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -3236,7 +3458,17 @@ class FakeApi:
return self.test_query_parameter_collection_format_with_http_info(pipe, ioutil, http, url, context, allow_empty, language, **kwargs) # noqa: E501
@validate_call
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
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
def test_classname(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> Client: # noqa: E501
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
@@ -74,7 +78,11 @@ class FakeClassnameTags123Api:
return self.test_classname_with_http_info(client, **kwargs) # noqa: E501
@validate_call
def test_classname_with_http_info(self, client : Annotated[Client, Field(description="client model")], **kwargs) -> ApiResponse: # noqa: E501
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
def add_pet(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], **kwargs) -> None: # noqa: E501
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
@@ -79,7 +83,11 @@ class PetApi:
return self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
@validate_call
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
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
@@ -190,7 +198,12 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def delete_pet(self, pet_id : Annotated[StrictInt, Field(description="Pet id to delete")], api_key : Optional[StrictStr] = None, **kwargs) -> None: # noqa: E501
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
@@ -222,7 +235,12 @@ class PetApi:
return self.delete_pet_with_http_info(pet_id, api_key, **kwargs) # noqa: E501
@validate_call
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
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
@@ -332,7 +350,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -362,7 +384,11 @@ class PetApi:
return self.find_pets_by_status_with_http_info(status, **kwargs) # noqa: E501
@validate_call
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
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
@@ -474,7 +500,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def find_pets_by_tags(self, tags : Annotated[List[StrictStr], Field(description="Tags to filter by")], **kwargs) -> List[Pet]: # noqa: E501
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
@@ -504,7 +534,11 @@ class PetApi:
return self.find_pets_by_tags_with_http_info(tags, **kwargs) # noqa: E501
@validate_call
def find_pets_by_tags_with_http_info(self, tags : Annotated[List[StrictStr], Field(description="Tags to filter by")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -618,7 +652,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def get_pet_by_id(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to return")], **kwargs) -> Pet: # noqa: E501
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
@@ -648,7 +686,11 @@ class PetApi:
return self.get_pet_by_id_with_http_info(pet_id, **kwargs) # noqa: E501
@validate_call
def get_pet_by_id_with_http_info(self, pet_id : Annotated[StrictInt, Field(description="ID of pet to return")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -760,7 +802,11 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def update_pet(self, pet : Annotated[Pet, Field(description="Pet object that needs to be added to the store")], **kwargs) -> None: # noqa: E501
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
@@ -790,7 +836,11 @@ class PetApi:
return self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
@validate_call
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
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
@@ -901,7 +951,13 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -935,7 +991,13 @@ class PetApi:
return self.update_pet_with_form_with_http_info(pet_id, name, status, **kwargs) # noqa: E501
@validate_call
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
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
@@ -1058,7 +1120,13 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -1092,7 +1160,13 @@ class PetApi:
return self.upload_file_with_http_info(pet_id, additional_metadata, file, **kwargs) # noqa: E501
@validate_call
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
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
@@ -1221,7 +1295,13 @@ class PetApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -1255,7 +1335,13 @@ class PetApi:
return self.upload_file_with_required_file_with_http_info(pet_id, required_file, additional_metadata, **kwargs) # noqa: E501
@validate_call
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
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
def delete_order(self, order_id : Annotated[StrictStr, Field(description="ID of the order that needs to be deleted")], **kwargs) -> None: # noqa: E501
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
@@ -78,7 +82,11 @@ class StoreApi:
return self.delete_order_with_http_info(order_id, **kwargs) # noqa: E501
@validate_call
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
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
@@ -182,7 +190,10 @@ class StoreApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def get_inventory(self, **kwargs) -> Dict[str, int]: # noqa: E501
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
@@ -210,7 +221,10 @@ class StoreApi:
return self.get_inventory_with_http_info(**kwargs) # noqa: E501
@validate_call
def get_inventory_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
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
@@ -314,7 +328,11 @@ class StoreApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -344,7 +362,11 @@ class StoreApi:
return self.get_order_by_id_with_http_info(order_id, **kwargs) # noqa: E501
@validate_call
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
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
@@ -456,7 +478,11 @@ class StoreApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def place_order(self, order : Annotated[Order, Field(description="order placed for purchasing the pet")], **kwargs) -> Order: # noqa: E501
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
@@ -486,7 +512,11 @@ class StoreApi:
return self.place_order_with_http_info(order, **kwargs) # noqa: E501
@validate_call
def place_order_with_http_info(self, order : Annotated[Order, Field(description="order placed for purchasing the pet")], **kwargs) -> ApiResponse: # noqa: E501
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
def create_user(self, user : Annotated[User, Field(description="Created user object")], **kwargs) -> None: # noqa: E501
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
@@ -78,7 +82,11 @@ class UserApi:
return self.create_user_with_http_info(user, **kwargs) # noqa: E501
@validate_call
def create_user_with_http_info(self, user : Annotated[User, Field(description="Created user object")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -204,7 +212,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def create_users_with_array_input(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> None: # noqa: E501
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
@@ -234,7 +246,11 @@ class UserApi:
return self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
@validate_call
def create_users_with_array_input_with_http_info(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -345,7 +361,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def create_users_with_list_input(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> None: # noqa: E501
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
@@ -375,7 +395,11 @@ class UserApi:
return self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
@validate_call
def create_users_with_list_input_with_http_info(self, user : Annotated[List[User], Field(description="List of user object")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -486,7 +510,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def delete_user(self, username : Annotated[StrictStr, Field(description="The name that needs to be deleted")], **kwargs) -> None: # noqa: E501
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
@@ -516,7 +544,11 @@ class UserApi:
return self.delete_user_with_http_info(username, **kwargs) # noqa: E501
@validate_call
def delete_user_with_http_info(self, username : Annotated[StrictStr, Field(description="The name that needs to be deleted")], **kwargs) -> ApiResponse: # noqa: E501
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
@@ -620,7 +652,11 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -650,7 +686,11 @@ class UserApi:
return self.get_user_by_name_with_http_info(username, **kwargs) # noqa: E501
@validate_call
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
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
@@ -762,7 +802,12 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -794,7 +839,12 @@ class UserApi:
return self.login_user_with_http_info(username, password, **kwargs) # noqa: E501
@validate_call
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
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
@@ -911,7 +961,10 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
def logout_user(self, **kwargs) -> None: # noqa: E501
def logout_user(
self,
**kwargs,
) -> None:
"""Logs out current logged in user session # noqa: E501
# noqa: E501
@@ -939,7 +992,10 @@ class UserApi:
return self.logout_user_with_http_info(**kwargs) # noqa: E501
@validate_call
def logout_user_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
def logout_user_with_http_info(
self,
**kwargs,
) -> ApiResponse:
"""Logs out current logged in user session # noqa: E501
# noqa: E501
@@ -1037,7 +1093,12 @@ class UserApi:
_request_auth=_params.get('_request_auth'))
@validate_call
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
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
@@ -1069,7 +1130,12 @@ class UserApi:
return self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
@validate_call
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
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