forked from loafle/openapi-generator-original
[python] client bug fixes + type hint improvements (#13665)
* Adds python client, template, and spec updates for query param content type json * Samples regenerated * Finishes adding test cases for query param json content type * Uses newest templates * Templates replaced, spec replaces, sample replaced * Samples updated
This commit is contained in:
parent
02916822f7
commit
ef8e55ca21
@ -193,6 +193,27 @@ public class CodegenOperation {
|
||||
return responses.stream().anyMatch(response -> response.isDefault);
|
||||
}
|
||||
|
||||
public boolean getAllResponsesAreErrors() {
|
||||
return responses.stream().allMatch(response -> response.is4xx || response.is5xx);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return contentTypeToOperation
|
||||
* returns a map where the key is the request body content type and the value is the current CodegenOperation
|
||||
* this is needed by templates when a different signature is needed for each request body content type
|
||||
*/
|
||||
public Map<String, CodegenOperation> getContentTypeToOperation() {
|
||||
LinkedHashMap<String, CodegenOperation> contentTypeToOperation = new LinkedHashMap<>();
|
||||
if (bodyParam == null) {
|
||||
return null;
|
||||
}
|
||||
LinkedHashMap<String, CodegenMediaType> content = bodyParam.getContent();
|
||||
for (String contentType: content.keySet()) {
|
||||
contentTypeToOperation.put(contentType, this);
|
||||
}
|
||||
return contentTypeToOperation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if there's at least one vendor extension
|
||||
*
|
||||
|
@ -997,12 +997,13 @@ public class PythonClientCodegen extends AbstractPythonCodegen {
|
||||
}
|
||||
}
|
||||
// clone this so we can change some properties on it
|
||||
CodegenProperty schemaProp = cp.getSchema().clone();
|
||||
CodegenProperty schemaProp = cp.getSchema();
|
||||
// parameters may have valid python names like some_val or invalid ones like Content-Type
|
||||
// we always set nameInSnakeCase to null so special handling will not be done for these names
|
||||
// invalid python names will be handled in python by using a TypedDict which will allow us to have a type hint
|
||||
// for keys that cannot be variable names to the schema baseName
|
||||
if (schemaProp != null) {
|
||||
schemaProp = schemaProp.clone();
|
||||
schemaProp.nameInSnakeCase = null;
|
||||
schemaProp.baseName = toModelName(cp.baseName) + "Schema";
|
||||
cp.setSchema(schemaProp);
|
||||
|
@ -49,6 +49,8 @@ class RequestField(RequestFieldBase):
|
||||
|
||||
|
||||
class JSONEncoder(json.JSONEncoder):
|
||||
compact_separators = (',', ':')
|
||||
|
||||
def default(self, obj):
|
||||
if isinstance(obj, str):
|
||||
return str(obj)
|
||||
@ -320,8 +322,25 @@ class StyleSimpleSerializer(ParameterSerializerBase):
|
||||
)
|
||||
|
||||
|
||||
class JSONDetector:
|
||||
"""
|
||||
Works for:
|
||||
application/json
|
||||
application/json; charset=UTF-8
|
||||
application/json-patch+json
|
||||
application/geo+json
|
||||
"""
|
||||
__json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*")
|
||||
|
||||
@classmethod
|
||||
def _content_type_is_json(cls, content_type: str) -> bool:
|
||||
if cls.__json_content_type_pattern.match(content_type):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
@dataclass
|
||||
class ParameterBase:
|
||||
class ParameterBase(JSONDetector):
|
||||
name: str
|
||||
in_type: ParameterInType
|
||||
required: bool
|
||||
@ -348,7 +367,6 @@ class ParameterBase:
|
||||
}
|
||||
__disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'}
|
||||
_json_encoder = JSONEncoder()
|
||||
_json_content_type = 'application/json'
|
||||
|
||||
@classmethod
|
||||
def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType):
|
||||
@ -395,8 +413,11 @@ class ParameterBase:
|
||||
|
||||
def _serialize_json(
|
||||
self,
|
||||
in_data: typing.Union[None, int, float, str, bool, dict, list]
|
||||
in_data: typing.Union[None, int, float, str, bool, dict, list],
|
||||
eliminate_whitespace: bool = False
|
||||
) -> str:
|
||||
if eliminate_whitespace:
|
||||
return json.dumps(in_data, separators=self._json_encoder.compact_separators)
|
||||
return json.dumps(in_data)
|
||||
|
||||
|
||||
@ -491,7 +512,7 @@ class PathParameter(ParameterBase, StyleSimpleSerializer):
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self._to_dict(self.name, value)
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
@ -509,7 +530,7 @@ class QueryParameter(ParameterBase, StyleFormSerializer):
|
||||
schema: typing.Optional[typing.Type[Schema]] = None,
|
||||
content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
|
||||
):
|
||||
used_style = ParameterStyle.FORM if style is None and content is None and schema else style
|
||||
used_style = ParameterStyle.FORM if style is None else style
|
||||
used_explode = self._get_default_explode(used_style) if explode is None else explode
|
||||
|
||||
super().__init__(
|
||||
@ -572,8 +593,6 @@ class QueryParameter(ParameterBase, StyleFormSerializer):
|
||||
return self._to_dict(self.name, value)
|
||||
|
||||
def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]:
|
||||
if not self.schema:
|
||||
return None
|
||||
if self.style is ParameterStyle.FORM:
|
||||
return PrefixSeparatorIterator('?', '&')
|
||||
elif self.style is ParameterStyle.SPACE_DELIMITED:
|
||||
@ -612,12 +631,17 @@ class QueryParameter(ParameterBase, StyleFormSerializer):
|
||||
elif self.style is ParameterStyle.PIPE_DELIMITED:
|
||||
return self.__serialize_pipe_delimited(cast_in_data, prefix_separator_iterator)
|
||||
# self.content will be length one
|
||||
if prefix_separator_iterator is None:
|
||||
prefix_separator_iterator = self.get_prefix_separator_iterator()
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self._to_dict(self.name, value)
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data, eliminate_whitespace=True)
|
||||
return self._to_dict(
|
||||
self.name,
|
||||
next(prefix_separator_iterator) + self.name + '=' + quote(value)
|
||||
)
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
|
||||
|
||||
@ -676,7 +700,7 @@ class CookieParameter(ParameterBase, StyleFormSerializer):
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self._to_dict(self.name, value)
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
@ -733,7 +757,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self.__to_headers(((self.name, value),))
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
@ -796,23 +820,6 @@ class ApiResponseWithoutDeserialization(ApiResponse):
|
||||
headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset
|
||||
|
||||
|
||||
class JSONDetector:
|
||||
"""
|
||||
Works for:
|
||||
application/json
|
||||
application/json; charset=UTF-8
|
||||
application/json-patch+json
|
||||
application/geo+json
|
||||
"""
|
||||
__json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*")
|
||||
|
||||
@classmethod
|
||||
def _content_type_is_json(cls, content_type: str) -> bool:
|
||||
if cls.__json_content_type_pattern.match(content_type):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class OpenApiResponse(JSONDetector):
|
||||
__filename_content_disposition_pattern = re.compile('filename="(.+?)"')
|
||||
|
||||
@ -987,7 +994,7 @@ class ApiClient:
|
||||
self.pool_threads = pool_threads
|
||||
|
||||
self.rest_client = rest.RESTClientObject(configuration)
|
||||
self.default_headers = {}
|
||||
self.default_headers = HTTPHeaderDict()
|
||||
if header_name is not None:
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
@ -1047,15 +1054,18 @@ class ApiClient:
|
||||
) -> urllib3.HTTPResponse:
|
||||
|
||||
# header parameters
|
||||
headers = headers or HTTPHeaderDict()
|
||||
headers.update(self.default_headers)
|
||||
used_headers = HTTPHeaderDict(self.default_headers)
|
||||
if self.cookie:
|
||||
headers['Cookie'] = self.cookie
|
||||
|
||||
# auth setting
|
||||
self.update_params_for_auth(headers,
|
||||
self.update_params_for_auth(used_headers,
|
||||
auth_settings, resource_path, method, body)
|
||||
|
||||
# must happen after cookie setting and auth setting in case user is overriding those
|
||||
if headers:
|
||||
used_headers.update(headers)
|
||||
|
||||
# request url
|
||||
if host is None:
|
||||
url = self.configuration.host + resource_path
|
||||
@ -1067,7 +1077,7 @@ class ApiClient:
|
||||
response = {{#if asyncio}}await {{/if}}{{#if tornado}}yield {{/if}}self.request(
|
||||
method,
|
||||
url,
|
||||
headers=headers,
|
||||
headers=used_headers,
|
||||
fields=fields,
|
||||
body=body,
|
||||
stream=stream,
|
||||
|
@ -21,156 +21,16 @@ from . import path
|
||||
{{/unless}}
|
||||
{{#with operation}}
|
||||
{{#if queryParams}}
|
||||
# query params
|
||||
{{#each queryParams}}
|
||||
{{#with schema}}
|
||||
{{> model_templates/schema }}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
RequestRequiredQueryParams = typing_extensions.TypedDict(
|
||||
'RequestRequiredQueryParams',
|
||||
{
|
||||
{{#each queryParams}}
|
||||
{{#if required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
}
|
||||
)
|
||||
RequestOptionalQueryParams = typing_extensions.TypedDict(
|
||||
'RequestOptionalQueryParams',
|
||||
{
|
||||
{{#each queryParams}}
|
||||
{{#unless required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
},
|
||||
total=False
|
||||
)
|
||||
|
||||
|
||||
class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
|
||||
pass
|
||||
|
||||
|
||||
{{#each queryParams}}
|
||||
{{> endpoint_parameter }}
|
||||
{{/each}}
|
||||
{{> endpoint_parameter_schema_and_def xParams=queryParams xParamsName="Query" }}
|
||||
{{/if}}
|
||||
{{#if headerParams}}
|
||||
# header params
|
||||
{{#each headerParams}}
|
||||
{{#with schema}}
|
||||
{{> model_templates/schema }}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
RequestRequiredHeaderParams = typing_extensions.TypedDict(
|
||||
'RequestRequiredHeaderParams',
|
||||
{
|
||||
{{#each headerParams}}
|
||||
{{#if required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
}
|
||||
)
|
||||
RequestOptionalHeaderParams = typing_extensions.TypedDict(
|
||||
'RequestOptionalHeaderParams',
|
||||
{
|
||||
{{#each headerParams}}
|
||||
{{#unless required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
},
|
||||
total=False
|
||||
)
|
||||
|
||||
|
||||
class RequestHeaderParams(RequestRequiredHeaderParams, RequestOptionalHeaderParams):
|
||||
pass
|
||||
|
||||
|
||||
{{#each headerParams}}
|
||||
{{> endpoint_parameter }}
|
||||
{{/each}}
|
||||
{{> endpoint_parameter_schema_and_def xParams=headerParams xParamsName="Header" }}
|
||||
{{/if}}
|
||||
{{#if pathParams}}
|
||||
# path params
|
||||
{{#each pathParams}}
|
||||
{{#with schema}}
|
||||
{{> model_templates/schema }}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
RequestRequiredPathParams = typing_extensions.TypedDict(
|
||||
'RequestRequiredPathParams',
|
||||
{
|
||||
{{#each pathParams}}
|
||||
{{#if required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
}
|
||||
)
|
||||
RequestOptionalPathParams = typing_extensions.TypedDict(
|
||||
'RequestOptionalPathParams',
|
||||
{
|
||||
{{#each pathParams}}
|
||||
{{#unless required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
},
|
||||
total=False
|
||||
)
|
||||
|
||||
|
||||
class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
|
||||
pass
|
||||
|
||||
|
||||
{{#each pathParams}}
|
||||
{{> endpoint_parameter }}
|
||||
{{/each}}
|
||||
{{> endpoint_parameter_schema_and_def xParams=pathParams xParamsName="Path" }}
|
||||
{{/if}}
|
||||
{{#if cookieParams}}
|
||||
# cookie params
|
||||
{{#each cookieParams}}
|
||||
{{#with schema}}
|
||||
{{> model_templates/schema }}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
RequestRequiredCookieParams = typing_extensions.TypedDict(
|
||||
'RequestRequiredCookieParams',
|
||||
{
|
||||
{{#each cookieParams}}
|
||||
{{#if required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
}
|
||||
)
|
||||
RequestOptionalCookieParams = typing_extensions.TypedDict(
|
||||
'RequestOptionalCookieParams',
|
||||
{
|
||||
{{#each cookieParams}}
|
||||
{{#unless required}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
},
|
||||
total=False
|
||||
)
|
||||
|
||||
|
||||
class RequestCookieParams(RequestRequiredCookieParams, RequestOptionalCookieParams):
|
||||
pass
|
||||
|
||||
|
||||
{{#each cookieParams}}
|
||||
{{> endpoint_parameter }}
|
||||
{{/each}}
|
||||
{{> endpoint_parameter_schema_and_def xParams=cookieParams xParamsName="Cookie" }}
|
||||
{{/if}}
|
||||
{{#with bodyParam}}
|
||||
# body param
|
||||
@ -373,9 +233,29 @@ _all_accept_content_types = (
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
{{#if bodyParam}}
|
||||
{{#each getContentTypeToOperation}}
|
||||
{{> endpoint_args_baseapi_wrapper contentType=@key this=this}}
|
||||
|
||||
{{/each}}
|
||||
{{> endpoint_args_baseapi_wrapper contentType="null" this=this}}
|
||||
|
||||
{{else}}
|
||||
@typing.overload
|
||||
def _{{operationId}}_oapg(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="False" contentType="null"}}
|
||||
{{/if}}
|
||||
|
||||
@typing.overload
|
||||
def _{{operationId}}_oapg(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="True" contentType="null"}}
|
||||
|
||||
@typing.overload
|
||||
def _{{operationId}}_oapg(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="null" contentType="null"}}
|
||||
|
||||
def _{{operationId}}_oapg(
|
||||
{{> endpoint_args selfType="api_client.Api" }}
|
||||
{{> endpoint_args isOverload=false skipDeserialization="null" contentType="null"}}
|
||||
"""
|
||||
{{#if summary}}
|
||||
{{summary}}
|
||||
@ -521,8 +401,29 @@ class BaseApi(api_client.Api):
|
||||
class {{operationIdCamelCase}}(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
{{#if bodyParam}}
|
||||
{{#each getContentTypeToOperation}}
|
||||
{{> endpoint_args_operationid_wrapper contentType=@key this=this}}
|
||||
|
||||
{{/each}}
|
||||
{{> endpoint_args_operationid_wrapper contentType="null" this=this}}
|
||||
|
||||
{{else}}
|
||||
@typing.overload
|
||||
def {{operationId}}(
|
||||
{{> endpoint_args selfType="BaseApi" }}
|
||||
{{> endpoint_args isOverload=true skipDeserialization="False" contentType="null"}}
|
||||
{{/if}}
|
||||
|
||||
@typing.overload
|
||||
def {{operationId}}(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="True" contentType="null"}}
|
||||
|
||||
@typing.overload
|
||||
def {{operationId}}(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="null" contentType="null"}}
|
||||
|
||||
def {{operationId}}(
|
||||
{{> endpoint_args isOverload=false skipDeserialization="null" contentType="null"}}
|
||||
return self._{{operationId}}_oapg(
|
||||
{{> endpoint_args_passed }}
|
||||
)
|
||||
@ -531,8 +432,29 @@ class {{operationIdCamelCase}}(BaseApi):
|
||||
class ApiFor{{httpMethod}}(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
{{#if bodyParam}}
|
||||
{{#each getContentTypeToOperation}}
|
||||
{{> endpoint_args_httpmethod_wrapper contentType=@key this=this}}
|
||||
|
||||
{{/each}}
|
||||
{{> endpoint_args_httpmethod_wrapper contentType="null" this=this}}
|
||||
|
||||
{{else}}
|
||||
@typing.overload
|
||||
def {{httpMethod}}(
|
||||
{{> endpoint_args selfType="BaseApi" }}
|
||||
{{> endpoint_args isOverload=true skipDeserialization="False" contentType="null"}}
|
||||
{{/if}}
|
||||
|
||||
@typing.overload
|
||||
def {{httpMethod}}(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="True" contentType="null"}}
|
||||
|
||||
@typing.overload
|
||||
def {{httpMethod}}(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="null" contentType="null"}}
|
||||
|
||||
def {{httpMethod}}(
|
||||
{{> endpoint_args isOverload=false skipDeserialization="null" contentType="null"}}
|
||||
return self._{{operationId}}_oapg(
|
||||
{{> endpoint_args_passed }}
|
||||
)
|
||||
|
@ -1,8 +1,78 @@
|
||||
self: {{selfType}},
|
||||
self,
|
||||
{{#if bodyParam}}
|
||||
{{#with bodyParam}}
|
||||
body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}},
|
||||
{{/with}}
|
||||
{{#if bodyParam.required}}
|
||||
{{#with bodyParam}}
|
||||
{{#eq ../contentType "null"}}
|
||||
body: typing.Union[{{#each getContent}}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/each}}],
|
||||
{{else}}
|
||||
body: typing.Union[{{#each getContent}}{{#eq @key ../../contentType }}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/eq}}{{/each}}],
|
||||
{{/eq}}
|
||||
{{/with}}
|
||||
{{#if isOverload}}
|
||||
{{#eq skipDeserialization "True"}}
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
{{/eq}}
|
||||
{{#neq contentType "null"}}
|
||||
{{#with bodyParam}}
|
||||
{{#each content}}
|
||||
{{#eq @key ../../contentType}}
|
||||
{{#if @first}}
|
||||
content_type: typing_extensions.Literal["{{{@key}}}"] = ...,
|
||||
{{else}}
|
||||
content_type: typing_extensions.Literal["{{{@key}}}"],
|
||||
{{/if}}
|
||||
{{/eq}}
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
{{else}}
|
||||
content_type: str = ...,
|
||||
{{/neq}}
|
||||
{{else}}
|
||||
{{#with bodyParam}}
|
||||
{{#each getContent}}
|
||||
{{#if @first}}
|
||||
content_type: str = '{{{@key}}}',
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if isOverload}}
|
||||
{{#eq skipDeserialization "True"}}
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
{{/eq}}
|
||||
{{#neq contentType "null"}}
|
||||
{{#with bodyParam}}
|
||||
{{#each getContent}}
|
||||
{{#eq @key ../../contentType}}
|
||||
{{#if @first}}
|
||||
content_type: typing_extensions.Literal["{{{@key}}}"] = ...,
|
||||
{{else}}
|
||||
content_type: typing_extensions.Literal["{{{@key}}}"],
|
||||
{{/if}}
|
||||
{{/eq}}
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
{{else}}
|
||||
content_type: str = ...,
|
||||
{{/neq}}
|
||||
{{else}}
|
||||
{{#with bodyParam}}
|
||||
{{#each getContent}}
|
||||
{{#if @first}}
|
||||
content_type: str = '{{{@key}}}',
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
{{/if}}
|
||||
{{#with bodyParam}}
|
||||
{{#eq ../contentType "null"}}
|
||||
body: typing.Union[{{#each getContent}}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/each}}schemas.Unset] = schemas.unset,
|
||||
{{else}}
|
||||
body: typing.Union[{{#each getContent}}{{#eq @key ../../contentType }}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/eq}}{{/each}}schemas.Unset] = schemas.unset,
|
||||
{{/eq}}
|
||||
{{/with}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if queryParams}}
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
@ -16,13 +86,6 @@
|
||||
{{#if cookieParams}}
|
||||
cookie_params: RequestCookieParams = frozendict.frozendict(),
|
||||
{{/if}}
|
||||
{{#with bodyParam}}
|
||||
{{#each content}}
|
||||
{{#if @first}}
|
||||
content_type: str = '{{{@key}}}',
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
{{#if produces}}
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
{{/if}}
|
||||
@ -31,16 +94,48 @@
|
||||
{{/if}}
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
{{#each responses}}
|
||||
{{#if isDefault}}
|
||||
ApiResponseForDefault,
|
||||
{{#if isOverload}}
|
||||
{{#eq skipDeserialization "False"}}
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
{{/eq}}
|
||||
{{#eq skipDeserialization "null"}}
|
||||
skip_deserialization: bool = ...,
|
||||
{{/eq}}
|
||||
{{else}}
|
||||
{{#if is2xx}}
|
||||
ApiResponseFor{{code}},
|
||||
{{/if}}
|
||||
skip_deserialization: bool = False,
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
{{#eq skipDeserialization "True"}}
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
{{/eq}}
|
||||
{{#eq skipDeserialization "False"}}
|
||||
) -> {{#if getAllResponsesAreErrors}}api_client.ApiResponseWithoutDeserialization: ...{{else}}typing.Union[
|
||||
{{#each responses}}
|
||||
{{#if isDefault}}
|
||||
ApiResponseForDefault,
|
||||
{{else}}
|
||||
{{#if is2xx}}
|
||||
ApiResponseFor{{code}},
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
]: ...
|
||||
{{/if}}
|
||||
{{/eq}}
|
||||
{{#eq skipDeserialization "null"}}
|
||||
{{#if isOverload}}
|
||||
) -> typing.Union[
|
||||
{{#each responses}}
|
||||
{{#if isDefault}}
|
||||
ApiResponseForDefault,
|
||||
{{else}}
|
||||
{{#if is2xx}}
|
||||
ApiResponseFor{{code}},
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
{{else}}
|
||||
):
|
||||
{{/if}}
|
||||
{{/eq}}
|
@ -0,0 +1,5 @@
|
||||
@typing.overload
|
||||
{{#with this}}
|
||||
def _{{operationId}}_oapg(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="False" contentType=contentType}}
|
||||
{{/with}}
|
@ -0,0 +1,5 @@
|
||||
@typing.overload
|
||||
{{#with this}}
|
||||
def {{httpMethod}}(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="False" contentType=contentType}}
|
||||
{{/with}}
|
@ -0,0 +1,5 @@
|
||||
@typing.overload
|
||||
{{#with this}}
|
||||
def {{operationId}}(
|
||||
{{> endpoint_args isOverload=true skipDeserialization="False" contentType=contentType}}
|
||||
{{/with}}
|
@ -4,9 +4,16 @@ request_{{#if isQueryParam}}query{{/if}}{{#if isPathParam}}path{{/if}}{{#if isHe
|
||||
style=api_client.ParameterStyle.{{style}},
|
||||
{{/if}}
|
||||
{{#if schema}}
|
||||
{{#with schema}}
|
||||
{{#with schema}}
|
||||
schema={{baseName}},
|
||||
{{/with}}
|
||||
{{/with}}
|
||||
{{/if}}
|
||||
{{#if getContent}}
|
||||
content={
|
||||
{{#each getContent}}
|
||||
"{{@key}}": {{#with this}}{{#with schema}}{{baseName}}{{/with}}{{/with}},
|
||||
{{/each}}
|
||||
},
|
||||
{{/if}}
|
||||
{{#if required}}
|
||||
required=True,
|
||||
|
@ -0,0 +1,56 @@
|
||||
# {{xParamsName}} params
|
||||
{{#each xParams}}
|
||||
{{#if schema}}
|
||||
{{#with schema}}
|
||||
{{> model_templates/schema }}
|
||||
{{/with}}
|
||||
{{else}}
|
||||
{{#if getContent}}
|
||||
{{#each getContent}}
|
||||
{{#with this}}
|
||||
{{#with schema}}
|
||||
{{> model_templates/schema }}
|
||||
{{/with}}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
RequestRequired{{xParamsName}}Params = typing_extensions.TypedDict(
|
||||
'RequestRequired{{xParamsName}}Params',
|
||||
{
|
||||
{{#each xParams}}
|
||||
{{#if required}}
|
||||
{{#if schema}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{else}}
|
||||
'{{baseName}}': {{#each getContent}}{{#with this}}{{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}{{/with}}{{/each}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
}
|
||||
)
|
||||
RequestOptional{{xParamsName}}Params = typing_extensions.TypedDict(
|
||||
'RequestOptional{{xParamsName}}Params',
|
||||
{
|
||||
{{#each xParams}}
|
||||
{{#unless required}}
|
||||
{{#if schema}}
|
||||
'{{baseName}}': {{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}
|
||||
{{else}}
|
||||
'{{baseName}}': {{#each getContent}}{{#with this}}{{#with schema}}typing.Union[{{baseName}}, {{> model_templates/schema_python_types }}],{{/with}}{{/with}}{{/each}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
},
|
||||
total=False
|
||||
)
|
||||
|
||||
|
||||
class Request{{xParamsName}}Params(RequestRequired{{xParamsName}}Params, RequestOptional{{xParamsName}}Params):
|
||||
pass
|
||||
|
||||
|
||||
{{#each xParams}}
|
||||
{{> endpoint_parameter }}
|
||||
{{/each}}
|
@ -0,0 +1,16 @@
|
||||
{{#if asyncio}}
|
||||
{{#if quoted}}"{{/if}}aiohttp >= 3.0.0{{#if quoted}}",{{/if}}
|
||||
{{/if}}
|
||||
{{#if quoted}}"{{/if}}certifi >= 14.5.14{{#if quoted}}",{{/if}}
|
||||
{{#if quoted}}"{{/if}}frozendict ~= 2.3.4{{#if quoted}}",{{/if}}
|
||||
{{#if hasHttpSignatureMethods}}
|
||||
{{#if quoted}}"{{/if}}pem >= 19.3.0{{#if quoted}}",{{/if}}
|
||||
{{#if quoted}}"{{/if}}pycryptodome >= 3.9.0{{#if quoted}}",{{/if}}
|
||||
{{/if}}
|
||||
{{#if quoted}}"{{/if}}python-dateutil ~= 2.7.0{{#if quoted}}",{{/if}}
|
||||
{{#if quoted}}"{{/if}}setuptools >= 21.0.0{{#if quoted}}",{{/if}}
|
||||
{{#if tornado}}
|
||||
{{#if quoted}}"{{/if}}tornado >= 4.2{{#if quoted}}",{{/if}}
|
||||
{{/if}}
|
||||
{{#if quoted}}"{{/if}}typing_extensions ~= 4.3.0{{#if quoted}}",{{/if}}
|
||||
{{#if quoted}}"{{/if}}urllib3 ~= 1.26.7{{#if quoted}}",{{/if}}
|
@ -1,5 +1 @@
|
||||
certifi >= 14.05.14
|
||||
frozendict >= 2.0.3
|
||||
python_dateutil >= 2.5.3
|
||||
setuptools >= 21.0.0
|
||||
urllib3 >= 1.15.1
|
||||
{{> required_libraries quoted=false }}
|
||||
|
@ -15,21 +15,7 @@ VERSION = "{{packageVersion}}"
|
||||
# http://pypi.python.org/pypi/setuptools
|
||||
|
||||
REQUIRES = [
|
||||
"urllib3 >= 1.15",
|
||||
"certifi",
|
||||
"python-dateutil",
|
||||
"frozendict >= 2.0.3",
|
||||
{{#if asyncio}}
|
||||
"aiohttp >= 3.0.0",
|
||||
{{/if}}
|
||||
{{#if tornado}}
|
||||
"tornado>=4.2,<5",
|
||||
{{/if}}
|
||||
{{#if hasHttpSignatureMethods}}
|
||||
"pem>=19.3.0",
|
||||
"pycryptodome>=3.9.0",
|
||||
{{/if}}
|
||||
"typing_extensions",
|
||||
{{> required_libraries quoted=true }}
|
||||
]
|
||||
|
||||
setup(
|
||||
|
@ -545,8 +545,8 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
'400':
|
||||
description: Invalid username supplied
|
||||
'200':
|
||||
description: Success
|
||||
'404':
|
||||
description: User not found
|
||||
/fake_classname_test:
|
||||
@ -651,8 +651,8 @@ paths:
|
||||
- 1.1
|
||||
- -1.2
|
||||
responses:
|
||||
'400':
|
||||
description: Invalid request
|
||||
'200':
|
||||
description: Success
|
||||
'404':
|
||||
description: Not found
|
||||
requestBody:
|
||||
@ -693,8 +693,8 @@ paths:
|
||||
가짜 엔드 포인트
|
||||
operationId: EndpointParameters
|
||||
responses:
|
||||
'400':
|
||||
description: Invalid username supplied
|
||||
'200':
|
||||
description: Success
|
||||
'404':
|
||||
description: User not found
|
||||
security:
|
||||
@ -822,8 +822,8 @@ paths:
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
'400':
|
||||
description: Someting wrong
|
||||
'200':
|
||||
description: succeeded
|
||||
/fake/refs/number:
|
||||
post:
|
||||
tags:
|
||||
@ -1592,6 +1592,26 @@ paths:
|
||||
description: OK
|
||||
default:
|
||||
description: Unexpected error
|
||||
/fake/queryParamWithJsonContentType:
|
||||
get:
|
||||
operationId: queryParamWithJsonContentType
|
||||
summary: query param with json content-type
|
||||
tags:
|
||||
- fake
|
||||
parameters:
|
||||
- name: someParam
|
||||
in: query
|
||||
description: The internal object id
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema: {}
|
||||
responses:
|
||||
200:
|
||||
description: success
|
||||
content:
|
||||
application/json:
|
||||
schema: {}
|
||||
servers:
|
||||
- url: 'http://{server}.swagger.io:{port}/v2'
|
||||
description: petstore server
|
||||
|
@ -1,5 +1,6 @@
|
||||
certifi >= 14.05.14
|
||||
frozendict >= 2.0.3
|
||||
python_dateutil >= 2.5.3
|
||||
certifi >= 14.5.14
|
||||
frozendict ~= 2.3.4
|
||||
python-dateutil ~= 2.7.0
|
||||
setuptools >= 21.0.0
|
||||
urllib3 >= 1.15.1
|
||||
typing_extensions ~= 4.3.0
|
||||
urllib3 ~= 1.26.7
|
||||
|
@ -21,11 +21,12 @@ VERSION = "1.0.0"
|
||||
# http://pypi.python.org/pypi/setuptools
|
||||
|
||||
REQUIRES = [
|
||||
"urllib3 >= 1.15",
|
||||
"certifi",
|
||||
"python-dateutil",
|
||||
"frozendict >= 2.0.3",
|
||||
"typing_extensions",
|
||||
"certifi >= 14.5.14",
|
||||
"frozendict ~= 2.3.4",
|
||||
"python-dateutil ~= 2.7.0",
|
||||
"setuptools >= 21.0.0",
|
||||
"typing_extensions ~= 4.3.0",
|
||||
"urllib3 ~= 1.26.7",
|
||||
]
|
||||
|
||||
setup(
|
||||
|
@ -53,6 +53,8 @@ class RequestField(RequestFieldBase):
|
||||
|
||||
|
||||
class JSONEncoder(json.JSONEncoder):
|
||||
compact_separators = (',', ':')
|
||||
|
||||
def default(self, obj):
|
||||
if isinstance(obj, str):
|
||||
return str(obj)
|
||||
@ -324,8 +326,25 @@ class StyleSimpleSerializer(ParameterSerializerBase):
|
||||
)
|
||||
|
||||
|
||||
class JSONDetector:
|
||||
"""
|
||||
Works for:
|
||||
application/json
|
||||
application/json; charset=UTF-8
|
||||
application/json-patch+json
|
||||
application/geo+json
|
||||
"""
|
||||
__json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*")
|
||||
|
||||
@classmethod
|
||||
def _content_type_is_json(cls, content_type: str) -> bool:
|
||||
if cls.__json_content_type_pattern.match(content_type):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
@dataclass
|
||||
class ParameterBase:
|
||||
class ParameterBase(JSONDetector):
|
||||
name: str
|
||||
in_type: ParameterInType
|
||||
required: bool
|
||||
@ -352,7 +371,6 @@ class ParameterBase:
|
||||
}
|
||||
__disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'}
|
||||
_json_encoder = JSONEncoder()
|
||||
_json_content_type = 'application/json'
|
||||
|
||||
@classmethod
|
||||
def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType):
|
||||
@ -399,8 +417,11 @@ class ParameterBase:
|
||||
|
||||
def _serialize_json(
|
||||
self,
|
||||
in_data: typing.Union[None, int, float, str, bool, dict, list]
|
||||
in_data: typing.Union[None, int, float, str, bool, dict, list],
|
||||
eliminate_whitespace: bool = False
|
||||
) -> str:
|
||||
if eliminate_whitespace:
|
||||
return json.dumps(in_data, separators=self._json_encoder.compact_separators)
|
||||
return json.dumps(in_data)
|
||||
|
||||
|
||||
@ -495,7 +516,7 @@ class PathParameter(ParameterBase, StyleSimpleSerializer):
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self._to_dict(self.name, value)
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
@ -513,7 +534,7 @@ class QueryParameter(ParameterBase, StyleFormSerializer):
|
||||
schema: typing.Optional[typing.Type[Schema]] = None,
|
||||
content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
|
||||
):
|
||||
used_style = ParameterStyle.FORM if style is None and content is None and schema else style
|
||||
used_style = ParameterStyle.FORM if style is None else style
|
||||
used_explode = self._get_default_explode(used_style) if explode is None else explode
|
||||
|
||||
super().__init__(
|
||||
@ -576,8 +597,6 @@ class QueryParameter(ParameterBase, StyleFormSerializer):
|
||||
return self._to_dict(self.name, value)
|
||||
|
||||
def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]:
|
||||
if not self.schema:
|
||||
return None
|
||||
if self.style is ParameterStyle.FORM:
|
||||
return PrefixSeparatorIterator('?', '&')
|
||||
elif self.style is ParameterStyle.SPACE_DELIMITED:
|
||||
@ -616,12 +635,17 @@ class QueryParameter(ParameterBase, StyleFormSerializer):
|
||||
elif self.style is ParameterStyle.PIPE_DELIMITED:
|
||||
return self.__serialize_pipe_delimited(cast_in_data, prefix_separator_iterator)
|
||||
# self.content will be length one
|
||||
if prefix_separator_iterator is None:
|
||||
prefix_separator_iterator = self.get_prefix_separator_iterator()
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self._to_dict(self.name, value)
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data, eliminate_whitespace=True)
|
||||
return self._to_dict(
|
||||
self.name,
|
||||
next(prefix_separator_iterator) + self.name + '=' + quote(value)
|
||||
)
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
|
||||
|
||||
@ -680,7 +704,7 @@ class CookieParameter(ParameterBase, StyleFormSerializer):
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self._to_dict(self.name, value)
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
@ -737,7 +761,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
|
||||
for content_type, schema in self.content.items():
|
||||
cast_in_data = schema(in_data)
|
||||
cast_in_data = self._json_encoder.default(cast_in_data)
|
||||
if content_type == self._json_content_type:
|
||||
if self._content_type_is_json(content_type):
|
||||
value = self._serialize_json(cast_in_data)
|
||||
return self.__to_headers(((self.name, value),))
|
||||
raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
|
||||
@ -800,23 +824,6 @@ class ApiResponseWithoutDeserialization(ApiResponse):
|
||||
headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset
|
||||
|
||||
|
||||
class JSONDetector:
|
||||
"""
|
||||
Works for:
|
||||
application/json
|
||||
application/json; charset=UTF-8
|
||||
application/json-patch+json
|
||||
application/geo+json
|
||||
"""
|
||||
__json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*")
|
||||
|
||||
@classmethod
|
||||
def _content_type_is_json(cls, content_type: str) -> bool:
|
||||
if cls.__json_content_type_pattern.match(content_type):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class OpenApiResponse(JSONDetector):
|
||||
__filename_content_disposition_pattern = re.compile('filename="(.+?)"')
|
||||
|
||||
@ -991,7 +998,7 @@ class ApiClient:
|
||||
self.pool_threads = pool_threads
|
||||
|
||||
self.rest_client = rest.RESTClientObject(configuration)
|
||||
self.default_headers = {}
|
||||
self.default_headers = HTTPHeaderDict()
|
||||
if header_name is not None:
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
@ -1048,15 +1055,18 @@ class ApiClient:
|
||||
) -> urllib3.HTTPResponse:
|
||||
|
||||
# header parameters
|
||||
headers = headers or HTTPHeaderDict()
|
||||
headers.update(self.default_headers)
|
||||
used_headers = HTTPHeaderDict(self.default_headers)
|
||||
if self.cookie:
|
||||
headers['Cookie'] = self.cookie
|
||||
|
||||
# auth setting
|
||||
self.update_params_for_auth(headers,
|
||||
self.update_params_for_auth(used_headers,
|
||||
auth_settings, resource_path, method, body)
|
||||
|
||||
# must happen after cookie setting and auth setting in case user is overriding those
|
||||
if headers:
|
||||
used_headers.update(headers)
|
||||
|
||||
# request url
|
||||
if host is None:
|
||||
url = self.configuration.host + resource_path
|
||||
@ -1068,7 +1078,7 @@ class ApiClient:
|
||||
response = self.request(
|
||||
method,
|
||||
url,
|
||||
headers=headers,
|
||||
headers=used_headers,
|
||||
fields=fields,
|
||||
body=body,
|
||||
stream=stream,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_are_allowed_by_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_can_exist_by_itself_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_can_exist_by_itself_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_additionalproperties_should_not_look_in_applicators_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_combined_with_anyof_oneof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_combined_with_anyof_oneof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofSimpleTypesRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_simple_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofSimpleTypesRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_simple_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_simple_types_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofSimpleTypesRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_simple_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_simple_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofSimpleTypesRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_simple_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithBaseSchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_base_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithBaseSchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_one_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_the_first_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_first_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_the_last_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_the_last_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithTwoEmptySchemasRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAllofWithTwoEmptySchemasRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_allof_with_two_empty_schemas_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_allof_with_two_empty_schemas_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofComplexTypesRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_complex_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAnyofComplexTypesRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_complex_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_complex_types_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofComplexTypesRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_complex_types_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_complex_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAnyofComplexTypesRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_complex_types_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAnyofRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAnyofRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofWithBaseSchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_with_base_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofWithBaseSchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_with_base_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_base_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostAnyofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_anyof_with_one_empty_schema_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_anyof_with_one_empty_schema_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostArrayTypeMatchesArraysRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_array_type_matches_arrays_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_array_type_matches_arrays_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_array_type_matches_arrays_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostArrayTypeMatchesArraysRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_array_type_matches_arrays_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_array_type_matches_arrays_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_array_type_matches_arrays_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -56,18 +56,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -117,17 +161,62 @@ class BaseApi(api_client.Api):
|
||||
class PostBooleanTypeMatchesBooleansRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_boolean_type_matches_booleans_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -140,17 +229,62 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_boolean_type_matches_booleans_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -51,18 +51,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_boolean_type_matches_booleans_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -112,17 +156,62 @@ class BaseApi(api_client.Api):
|
||||
class PostBooleanTypeMatchesBooleansRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_boolean_type_matches_booleans_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_boolean_type_matches_booleans_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -135,17 +224,62 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_boolean_type_matches_booleans_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_by_int_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostByIntRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_int_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostByIntRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_int_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_int_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_by_int_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostByIntRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_by_int_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_int_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostByIntRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_int_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_by_number_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostByNumberRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostByNumberRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_by_number_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostByNumberRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_by_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostByNumberRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostBySmallNumberRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_small_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostBySmallNumberRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_small_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_by_small_number_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostBySmallNumberRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_by_small_number_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_small_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostBySmallNumberRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_by_small_number_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -79,18 +79,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -140,17 +184,62 @@ class BaseApi(api_client.Api):
|
||||
class PostDateTimeFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_date_time_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -163,17 +252,62 @@ class PostDateTimeFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_date_time_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -74,18 +74,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_date_time_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -135,17 +179,62 @@ class BaseApi(api_client.Api):
|
||||
class PostDateTimeFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_date_time_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_date_time_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -158,17 +247,62 @@ class PostDateTimeFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_date_time_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -78,18 +78,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_email_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -139,17 +183,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEmailFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_email_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -162,17 +251,62 @@ class PostEmailFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_email_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -73,18 +73,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_email_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_email_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -134,17 +178,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEmailFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_email_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_email_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -157,17 +246,62 @@ class PostEmailFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_email_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with0_does_not_match_false_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with0_does_not_match_false_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with1_does_not_match_true_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with1_does_not_match_true_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWithEscapedCharactersRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_escaped_characters_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_escaped_characters_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with_escaped_characters_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWithEscapedCharactersRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with_escaped_characters_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_escaped_characters_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_escaped_characters_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with_false_does_not_match0_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_false_does_not_match0_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enum_with_true_does_not_match1_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enum_with_true_does_not_match1_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumsInPropertiesRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enums_in_properties_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostEnumsInPropertiesRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enums_in_properties_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_enums_in_properties_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostEnumsInPropertiesRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_enums_in_properties_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enums_in_properties_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostEnumsInPropertiesRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_enums_in_properties_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostForbiddenPropertyRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_forbidden_property_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostForbiddenPropertyRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_forbidden_property_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_forbidden_property_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostForbiddenPropertyRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_forbidden_property_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_forbidden_property_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostForbiddenPropertyRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_forbidden_property_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -78,18 +78,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -139,17 +183,62 @@ class BaseApi(api_client.Api):
|
||||
class PostHostnameFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_hostname_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -162,17 +251,62 @@ class PostHostnameFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_hostname_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -73,18 +73,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_hostname_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -134,17 +178,62 @@ class BaseApi(api_client.Api):
|
||||
class PostHostnameFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_hostname_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_hostname_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -157,17 +246,62 @@ class PostHostnameFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_hostname_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -56,18 +56,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -117,17 +161,62 @@ class BaseApi(api_client.Api):
|
||||
class PostIntegerTypeMatchesIntegersRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_integer_type_matches_integers_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -140,17 +229,62 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_integer_type_matches_integers_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -51,18 +51,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_integer_type_matches_integers_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -112,17 +156,62 @@ class BaseApi(api_client.Api):
|
||||
class PostIntegerTypeMatchesIntegersRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_integer_type_matches_integers_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_integer_type_matches_integers_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -135,17 +224,62 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_integer_type_matches_integers_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostInvalidStringValueForDefaultRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_string_value_for_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_string_value_for_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_invalid_string_value_for_default_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostInvalidStringValueForDefaultRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_invalid_string_value_for_default_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_string_value_for_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_invalid_string_value_for_default_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -78,18 +78,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -139,17 +183,62 @@ class BaseApi(api_client.Api):
|
||||
class PostIpv4FormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv4_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -162,17 +251,62 @@ class PostIpv4FormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv4_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -73,18 +73,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_ipv4_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -134,17 +178,62 @@ class BaseApi(api_client.Api):
|
||||
class PostIpv4FormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_ipv4_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv4_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -157,17 +246,62 @@ class PostIpv4FormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv4_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -78,18 +78,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -139,17 +183,62 @@ class BaseApi(api_client.Api):
|
||||
class PostIpv6FormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv6_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -162,17 +251,62 @@ class PostIpv6FormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv6_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -73,18 +73,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_ipv6_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -134,17 +178,62 @@ class BaseApi(api_client.Api):
|
||||
class PostIpv6FormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_ipv6_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv6_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -157,17 +246,62 @@ class PostIpv6FormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_ipv6_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -78,18 +78,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -139,17 +183,62 @@ class BaseApi(api_client.Api):
|
||||
class PostJsonPointerFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_json_pointer_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -162,17 +251,62 @@ class PostJsonPointerFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_json_pointer_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -73,18 +73,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_json_pointer_format_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -134,17 +178,62 @@ class BaseApi(api_client.Api):
|
||||
class PostJsonPointerFormatRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_json_pointer_format_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_json_pointer_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -157,17 +246,62 @@ class PostJsonPointerFormatRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_json_pointer_format_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaximumValidationRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostMaximumValidationRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maximum_validation_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaximumValidationRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maximum_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostMaximumValidationRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maximum_validation_with_unsigned_integer_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maximum_validation_with_unsigned_integer_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaxitemsValidationRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxitems_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostMaxitemsValidationRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxitems_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maxitems_validation_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaxitemsValidationRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maxitems_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxitems_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostMaxitemsValidationRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxitems_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaxlengthValidationRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxlength_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostMaxlengthValidationRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxlength_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -53,18 +53,62 @@ _response_for_200 = api_client.OpenApiResponse(
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maxlength_validation_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -114,17 +158,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaxlengthValidationRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maxlength_validation_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxlength_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -137,17 +226,62 @@ class PostMaxlengthValidationRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxlength_validation_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
@ -58,18 +58,62 @@ _status_code_to_response = {
|
||||
|
||||
|
||||
class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def _post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def _post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def _post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
"""
|
||||
:param skip_deserialization: If true then api_response.response will be set but
|
||||
api_response.body and api_response.headers will not be deserialized into schema
|
||||
@ -119,17 +163,62 @@ class BaseApi(api_client.Api):
|
||||
class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||
|
||||
@typing.overload
|
||||
def post_maxproperties0_means_the_object_is_empty_request_body(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxproperties0_means_the_object_is_empty_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post_maxproperties0_means_the_object_is_empty_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post_maxproperties0_means_the_object_is_empty_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post_maxproperties0_means_the_object_is_empty_request_body(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
@ -142,17 +231,62 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi):
|
||||
class ApiForpost(BaseApi):
|
||||
# this class is used by api classes that refer to endpoints by path and http method names
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self: BaseApi,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson, ],
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: typing_extensions.Literal["application/json"] = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: typing_extensions.Literal[False] = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
]: ...
|
||||
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@typing.overload
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = ...,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = ...,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization,
|
||||
]: ...
|
||||
|
||||
def post(
|
||||
self,
|
||||
body: typing.Union[SchemaForRequestBodyApplicationJson,],
|
||||
content_type: str = 'application/json',
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
skip_deserialization: bool = False,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
):
|
||||
return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg(
|
||||
body=body,
|
||||
content_type=content_type,
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user