1- self: {{ selfType }} ,
1+ self,
22{{ #if bodyParam }}
3- {{ #with bodyParam }}
4- body: typing.Union[{{ #each content }}{{ #with this.schema }} {{ baseName }} , {{> model_templates/schema_python_types }} {{ /with }}{{ /each }} {{ #unless required }} schemas.Unset] = schemas.unset{{ else }} ]{{ /unless }} ,
5- {{ /with }}
3+ {{ #with bodyParam }}
4+ {{ #if isOverload }}
5+ body: typing.Union[{{ #each content }}{{ #with this.schema }} {{ baseName }} ,{{> model_templates/schema_python_types }} {{ /with }}{{ /each }} {{ #unless required }} schemas.Unset] = schemas.unset{{ else }} ]{{ /unless }} ,
6+ {{ else }}
7+ body,
8+ {{ /if }}
9+ {{ /with }}
610{{ /if }}
711{{ #if queryParams }}
8- query_params: RequestQueryParams = frozendict.frozendict(),
12+ query_params{{ #if isOverload }} : RequestQueryParams{{ /if }} = frozendict.frozendict(),
913{{ /if }}
1014{{ #if headerParams }}
11- header_params: RequestHeaderParams = frozendict.frozendict(),
15+ header_params{{ #if isOverload }} : RequestHeaderParams{{ /if }} = frozendict.frozendict(),
1216{{ /if }}
1317{{ #if pathParams }}
14- path_params: RequestPathParams = frozendict.frozendict(),
18+ path_params{{ #if isOverload }} : RequestPathParams{{ /if }} = frozendict.frozendict(),
1519{{ /if }}
1620{{ #if cookieParams }}
17- cookie_params: RequestCookieParams = frozendict.frozendict(),
21+ cookie_params{{ #if isOverload }} : RequestCookieParams{{ /if }} = frozendict.frozendict(),
1822{{ /if }}
1923{{ #with bodyParam }}
20- {{ #each content }}
21- {{ #if @first }}
22- content_type: str = '{{{ @key }}} ',
23- {{ /if }}
24- {{ /each }}
24+ {{ #each content }}
25+ {{ #if @first }}
26+ content_type{{ #if isOverload }} : str{{ /if }} = '{{{ @key }}} ',
27+ {{ /if }}
28+ {{ /each }}
2529{{ /with }}
2630{{ #if produces }}
27- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
31+ accept_content_types{{ #if isOverload }} : typing.Tuple[str]{{ /if }} = _all_accept_content_types,
2832{{ /if }}
2933{{ #if servers }}
30- host_index: typing.Optional[int] = None,
34+ host_index{{ #if isOverload }} : typing.Optional[int]{{ /if }} = None,
3135{{ /if }}
32- stream: bool = False,
33- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
36+ stream{{ #if isOverload }} : bool{{ /if }} = False,
37+ timeout{{ #if isOverload }} : typing.Optional[typing.Union[int, typing.Tuple]]{{ /if }} = None,
38+ {{ #if isOverload }}
39+ {{ #eq skipDeserialization " True" }}
40+ skip_deserialization: typing_extensions.Literal[True] = True,
41+ {{ /eq }}
42+ {{ #eq skipDeserialization " False" }}
43+ skip_deserialization: typing_extensions.Literal[False] = False,
44+ {{ /eq }}
45+ {{ #eq skipDeserialization " null" }}
3446 skip_deserialization: bool = False,
47+ {{ /eq }}
48+ {{ else }}
49+ skip_deserialization = False,
50+ {{ /if }}
51+ {{ #eq skipDeserialization " True" }}
52+ ) -> api_client.ApiResponseWithoutDeserialization:
53+ {{ /eq }}
54+ {{ #eq skipDeserialization " False" }}
3555) -> typing.Union[
36- {{ #each responses }}
37- {{ #if isDefault }}
56+ {{ #each responses }}
57+ {{ #if isDefault }}
3858 ApiResponseForDefault,
39- {{ else }}
40- {{ #if is2xx }}
59+ {{ else }}
60+ {{ #if is2xx }}
4161 ApiResponseFor{{ code }} ,
62+ {{ /if }}
4263 {{ /if }}
64+ {{ /each }}
65+ ]:
66+ {{ /eq }}
67+ {{ #eq skipDeserialization " null" }}
68+ {{ #if isOverload }}
69+ ) -> typing.Union[
70+ {{ #each responses }}
71+ {{ #if isDefault }}
72+ ApiResponseForDefault,
73+ {{ else }}
74+ {{ #if is2xx }}
75+ ApiResponseFor{{ code }} ,
76+ {{ /if }}
77+ {{ /if }}
78+ {{ /each }}
79+ api_client.ApiResponseWithoutDeserialization,
80+ ]:
4381 {{ else }}
44- api_client.ApiResponse,
82+ ):
4583 {{ /if }}
46- {{ /each }}
47- api_client.ApiResponseWithoutDeserialization
48- ]:
84+ {{ /eq }}
85+ {{ #if isOverload }}
86+ ...
87+ {{ /if }}
0 commit comments