forked from loafle/openapi-generator-original
Support for python 3.7 by renaming async to async_req (#519)
* feat: support for python 3.7 * fix: regenerate other sample clients
This commit is contained in:
committed by
William Cheng
parent
71ef6a0a2b
commit
8867d2b34c
@@ -37,18 +37,18 @@ class AnotherFakeApi(object):
|
||||
|
||||
To test special tags # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_special_tags(client, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_special_tags(client, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Client client: client model (required)
|
||||
:return: Client
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_special_tags_with_http_info(client, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_special_tags_with_http_info(client, **kwargs) # noqa: E501
|
||||
@@ -59,11 +59,11 @@ class AnotherFakeApi(object):
|
||||
|
||||
To test special tags # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_special_tags_with_http_info(client, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_special_tags_with_http_info(client, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Client client: client model (required)
|
||||
:return: Client
|
||||
If the method is called asynchronously,
|
||||
@@ -73,7 +73,7 @@ class AnotherFakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['client'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -126,7 +126,7 @@ class AnotherFakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
|
||||
@@ -37,18 +37,18 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of outer boolean types # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_boolean_serialize(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_boolean_serialize(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param bool body: Input boolean as post body
|
||||
:return: bool
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.fake_outer_boolean_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.fake_outer_boolean_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -59,11 +59,11 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of outer boolean types # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_boolean_serialize_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_boolean_serialize_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param bool body: Input boolean as post body
|
||||
:return: bool
|
||||
If the method is called asynchronously,
|
||||
@@ -73,7 +73,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['body'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -118,7 +118,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type='bool', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -129,18 +129,18 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of object with outer number type # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_composite_serialize(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_composite_serialize(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param OuterComposite outer_composite: Input composite as post body
|
||||
:return: OuterComposite
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.fake_outer_composite_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.fake_outer_composite_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -151,11 +151,11 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of object with outer number type # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_composite_serialize_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_composite_serialize_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param OuterComposite outer_composite: Input composite as post body
|
||||
:return: OuterComposite
|
||||
If the method is called asynchronously,
|
||||
@@ -165,7 +165,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['outer_composite'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -210,7 +210,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type='OuterComposite', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -221,18 +221,18 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of outer number types # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_number_serialize(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_number_serialize(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param float body: Input number as post body
|
||||
:return: float
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.fake_outer_number_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.fake_outer_number_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -243,11 +243,11 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of outer number types # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_number_serialize_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_number_serialize_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param float body: Input number as post body
|
||||
:return: float
|
||||
If the method is called asynchronously,
|
||||
@@ -257,7 +257,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['body'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -302,7 +302,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type='float', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -313,18 +313,18 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of outer string types # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_string_serialize(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_string_serialize(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str body: Input string as post body
|
||||
:return: str
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.fake_outer_string_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.fake_outer_string_serialize_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -335,11 +335,11 @@ class FakeApi(object):
|
||||
|
||||
Test serialization of outer string types # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.fake_outer_string_serialize_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.fake_outer_string_serialize_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str body: Input string as post body
|
||||
:return: str
|
||||
If the method is called asynchronously,
|
||||
@@ -349,7 +349,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['body'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -394,7 +394,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -405,18 +405,18 @@ class FakeApi(object):
|
||||
|
||||
For this test, the body for this request much reference a schema named `File`. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_body_with_file_schema(file_schema_test_class, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_body_with_file_schema(file_schema_test_class, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param FileSchemaTestClass file_schema_test_class: (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
|
||||
@@ -427,11 +427,11 @@ class FakeApi(object):
|
||||
|
||||
For this test, the body for this request much reference a schema named `File`. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_body_with_file_schema_with_http_info(file_schema_test_class, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_body_with_file_schema_with_http_info(file_schema_test_class, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param FileSchemaTestClass file_schema_test_class: (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -441,7 +441,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['file_schema_test_class'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -490,7 +490,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -500,11 +500,11 @@ class FakeApi(object):
|
||||
"""test_body_with_query_params # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_body_with_query_params(query, user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_body_with_query_params(query, user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str query: (required)
|
||||
:param User user: (required)
|
||||
:return: None
|
||||
@@ -512,7 +512,7 @@ class FakeApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
|
||||
@@ -522,11 +522,11 @@ class FakeApi(object):
|
||||
"""test_body_with_query_params # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_body_with_query_params_with_http_info(query, user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_body_with_query_params_with_http_info(query, user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str query: (required)
|
||||
:param User user: (required)
|
||||
:return: None
|
||||
@@ -537,7 +537,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['query', 'user'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -592,7 +592,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -603,18 +603,18 @@ class FakeApi(object):
|
||||
|
||||
To test \"client\" model # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_client_model(client, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_client_model(client, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Client client: client model (required)
|
||||
:return: Client
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
|
||||
@@ -625,11 +625,11 @@ class FakeApi(object):
|
||||
|
||||
To test \"client\" model # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_client_model_with_http_info(client, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_client_model_with_http_info(client, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Client client: client model (required)
|
||||
:return: Client
|
||||
If the method is called asynchronously,
|
||||
@@ -639,7 +639,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['client'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -692,7 +692,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -703,11 +703,11 @@ class FakeApi(object):
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_endpoint_parameters(number, double, pattern_without_delimiter, byte, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_endpoint_parameters(number, double, pattern_without_delimiter, byte, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param float number: None (required)
|
||||
:param float double: None (required)
|
||||
:param str pattern_without_delimiter: None (required)
|
||||
@@ -727,7 +727,7 @@ class FakeApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_endpoint_parameters_with_http_info(number, double, pattern_without_delimiter, byte, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_endpoint_parameters_with_http_info(number, double, pattern_without_delimiter, byte, **kwargs) # noqa: E501
|
||||
@@ -738,11 +738,11 @@ class FakeApi(object):
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_endpoint_parameters_with_http_info(number, double, pattern_without_delimiter, byte, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_endpoint_parameters_with_http_info(number, double, pattern_without_delimiter, byte, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param float number: None (required)
|
||||
:param float double: None (required)
|
||||
:param str pattern_without_delimiter: None (required)
|
||||
@@ -765,7 +765,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['number', 'double', 'pattern_without_delimiter', 'byte', 'integer', 'int32', 'int64', 'float', 'string', 'binary', 'date', 'date_time', 'password', 'param_callback'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -880,7 +880,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -891,11 +891,11 @@ class FakeApi(object):
|
||||
|
||||
To test enum parameters # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_enum_parameters(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_enum_parameters(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[str] enum_header_string_array: Header parameter enum test (string array)
|
||||
:param str enum_header_string: Header parameter enum test (string)
|
||||
:param list[str] enum_query_string_array: Query parameter enum test (string array)
|
||||
@@ -909,7 +909,7 @@ class FakeApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_enum_parameters_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_enum_parameters_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -920,11 +920,11 @@ class FakeApi(object):
|
||||
|
||||
To test enum parameters # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_enum_parameters_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_enum_parameters_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[str] enum_header_string_array: Header parameter enum test (string array)
|
||||
:param str enum_header_string: Header parameter enum test (string)
|
||||
:param list[str] enum_query_string_array: Query parameter enum test (string array)
|
||||
@@ -941,7 +941,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['enum_header_string_array', 'enum_header_string', 'enum_query_string_array', 'enum_query_string', 'enum_query_integer', 'enum_query_double', 'enum_form_string_array', 'enum_form_string'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -1003,7 +1003,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -1013,18 +1013,18 @@ class FakeApi(object):
|
||||
"""test inline additionalProperties # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_inline_additional_properties(request_body, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_inline_additional_properties(request_body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param dict(str, str) request_body: request body (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
|
||||
@@ -1034,11 +1034,11 @@ class FakeApi(object):
|
||||
"""test inline additionalProperties # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_inline_additional_properties_with_http_info(request_body, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_inline_additional_properties_with_http_info(request_body, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param dict(str, str) request_body: request body (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -1048,7 +1048,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['request_body'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -1097,7 +1097,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -1107,11 +1107,11 @@ class FakeApi(object):
|
||||
"""test json serialization of form data # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_json_form_data(param, param2, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_json_form_data(param, param2, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str param: field1 (required)
|
||||
:param str param2: field2 (required)
|
||||
:return: None
|
||||
@@ -1119,7 +1119,7 @@ class FakeApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_json_form_data_with_http_info(param, param2, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_json_form_data_with_http_info(param, param2, **kwargs) # noqa: E501
|
||||
@@ -1129,11 +1129,11 @@ class FakeApi(object):
|
||||
"""test json serialization of form data # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_json_form_data_with_http_info(param, param2, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_json_form_data_with_http_info(param, param2, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str param: field1 (required)
|
||||
:param str param2: field2 (required)
|
||||
:return: None
|
||||
@@ -1144,7 +1144,7 @@ class FakeApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['param', 'param2'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -1199,7 +1199,7 @@ class FakeApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
|
||||
@@ -37,18 +37,18 @@ class FakeClassnameTags123Api(object):
|
||||
|
||||
To test class name in snake case # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_classname(client, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_classname(client, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Client client: client model (required)
|
||||
:return: Client
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.test_classname_with_http_info(client, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.test_classname_with_http_info(client, **kwargs) # noqa: E501
|
||||
@@ -59,11 +59,11 @@ class FakeClassnameTags123Api(object):
|
||||
|
||||
To test class name in snake case # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.test_classname_with_http_info(client, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.test_classname_with_http_info(client, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Client client: client model (required)
|
||||
:return: Client
|
||||
If the method is called asynchronously,
|
||||
@@ -73,7 +73,7 @@ class FakeClassnameTags123Api(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['client'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -126,7 +126,7 @@ class FakeClassnameTags123Api(object):
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
|
||||
@@ -36,18 +36,18 @@ class PetApi(object):
|
||||
"""Add a new pet to the store # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.add_pet(pet, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.add_pet(pet, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Pet pet: Pet object that needs to be added to the store (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
|
||||
@@ -57,11 +57,11 @@ class PetApi(object):
|
||||
"""Add a new pet to the store # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.add_pet_with_http_info(pet, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.add_pet_with_http_info(pet, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Pet pet: Pet object that needs to be added to the store (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -71,7 +71,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -120,7 +120,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -130,11 +130,11 @@ class PetApi(object):
|
||||
"""Deletes a pet # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.delete_pet(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.delete_pet(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: Pet id to delete (required)
|
||||
:param str api_key:
|
||||
:return: None
|
||||
@@ -142,7 +142,7 @@ class PetApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.delete_pet_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.delete_pet_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
@@ -152,11 +152,11 @@ class PetApi(object):
|
||||
"""Deletes a pet # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.delete_pet_with_http_info(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.delete_pet_with_http_info(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: Pet id to delete (required)
|
||||
:param str api_key:
|
||||
:return: None
|
||||
@@ -167,7 +167,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet_id', 'api_key'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -214,7 +214,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -225,18 +225,18 @@ class PetApi(object):
|
||||
|
||||
Multiple status values can be provided with comma separated strings # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.find_pets_by_status(status, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.find_pets_by_status(status, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[str] status: Status values that need to be considered for filter (required)
|
||||
:return: list[Pet]
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.find_pets_by_status_with_http_info(status, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.find_pets_by_status_with_http_info(status, **kwargs) # noqa: E501
|
||||
@@ -247,11 +247,11 @@ class PetApi(object):
|
||||
|
||||
Multiple status values can be provided with comma separated strings # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.find_pets_by_status_with_http_info(status, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.find_pets_by_status_with_http_info(status, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[str] status: Status values that need to be considered for filter (required)
|
||||
:return: list[Pet]
|
||||
If the method is called asynchronously,
|
||||
@@ -261,7 +261,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['status'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -311,7 +311,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -322,18 +322,18 @@ class PetApi(object):
|
||||
|
||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.find_pets_by_tags(tags, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.find_pets_by_tags(tags, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[str] tags: Tags to filter by (required)
|
||||
:return: list[Pet]
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.find_pets_by_tags_with_http_info(tags, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.find_pets_by_tags_with_http_info(tags, **kwargs) # noqa: E501
|
||||
@@ -344,11 +344,11 @@ class PetApi(object):
|
||||
|
||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.find_pets_by_tags_with_http_info(tags, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.find_pets_by_tags_with_http_info(tags, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[str] tags: Tags to filter by (required)
|
||||
:return: list[Pet]
|
||||
If the method is called asynchronously,
|
||||
@@ -358,7 +358,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['tags'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -408,7 +408,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -419,18 +419,18 @@ class PetApi(object):
|
||||
|
||||
Returns a single pet # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_pet_by_id(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_pet_by_id(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet to return (required)
|
||||
:return: Pet
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.get_pet_by_id_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.get_pet_by_id_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
@@ -441,11 +441,11 @@ class PetApi(object):
|
||||
|
||||
Returns a single pet # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_pet_by_id_with_http_info(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_pet_by_id_with_http_info(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet to return (required)
|
||||
:return: Pet
|
||||
If the method is called asynchronously,
|
||||
@@ -455,7 +455,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet_id'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -504,7 +504,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type='Pet', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -514,18 +514,18 @@ class PetApi(object):
|
||||
"""Update an existing pet # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.update_pet(pet, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.update_pet(pet, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Pet pet: Pet object that needs to be added to the store (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
|
||||
@@ -535,11 +535,11 @@ class PetApi(object):
|
||||
"""Update an existing pet # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.update_pet_with_http_info(pet, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.update_pet_with_http_info(pet, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Pet pet: Pet object that needs to be added to the store (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -549,7 +549,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -598,7 +598,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -608,11 +608,11 @@ class PetApi(object):
|
||||
"""Updates a pet in the store with form data # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.update_pet_with_form(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.update_pet_with_form(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet that needs to be updated (required)
|
||||
:param str name: Updated name of the pet
|
||||
:param str status: Updated status of the pet
|
||||
@@ -621,7 +621,7 @@ class PetApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.update_pet_with_form_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.update_pet_with_form_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
@@ -631,11 +631,11 @@ class PetApi(object):
|
||||
"""Updates a pet in the store with form data # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.update_pet_with_form_with_http_info(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.update_pet_with_form_with_http_info(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet that needs to be updated (required)
|
||||
:param str name: Updated name of the pet
|
||||
:param str status: Updated status of the pet
|
||||
@@ -647,7 +647,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet_id', 'name', 'status'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -700,7 +700,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -710,11 +710,11 @@ class PetApi(object):
|
||||
"""uploads an image # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.upload_file(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.upload_file(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet to update (required)
|
||||
:param str additional_metadata: Additional data to pass to server
|
||||
:param file file: file to upload
|
||||
@@ -723,7 +723,7 @@ class PetApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.upload_file_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.upload_file_with_http_info(pet_id, **kwargs) # noqa: E501
|
||||
@@ -733,11 +733,11 @@ class PetApi(object):
|
||||
"""uploads an image # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.upload_file_with_http_info(pet_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.upload_file_with_http_info(pet_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet to update (required)
|
||||
:param str additional_metadata: Additional data to pass to server
|
||||
:param file file: file to upload
|
||||
@@ -749,7 +749,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet_id', 'additional_metadata', 'file'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -806,7 +806,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -816,11 +816,11 @@ class PetApi(object):
|
||||
"""uploads an image (required) # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.upload_file_with_required_file(pet_id, required_file, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.upload_file_with_required_file(pet_id, required_file, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet to update (required)
|
||||
:param file required_file: file to upload (required)
|
||||
:param str additional_metadata: Additional data to pass to server
|
||||
@@ -829,7 +829,7 @@ class PetApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.upload_file_with_required_file_with_http_info(pet_id, required_file, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.upload_file_with_required_file_with_http_info(pet_id, required_file, **kwargs) # noqa: E501
|
||||
@@ -839,11 +839,11 @@ class PetApi(object):
|
||||
"""uploads an image (required) # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.upload_file_with_required_file_with_http_info(pet_id, required_file, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.upload_file_with_required_file_with_http_info(pet_id, required_file, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int pet_id: ID of pet to update (required)
|
||||
:param file required_file: file to upload (required)
|
||||
:param str additional_metadata: Additional data to pass to server
|
||||
@@ -855,7 +855,7 @@ class PetApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['pet_id', 'required_file', 'additional_metadata'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -916,7 +916,7 @@ class PetApi(object):
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
|
||||
@@ -37,18 +37,18 @@ class StoreApi(object):
|
||||
|
||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.delete_order(order_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.delete_order(order_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str order_id: ID of the order that needs to be deleted (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.delete_order_with_http_info(order_id, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.delete_order_with_http_info(order_id, **kwargs) # noqa: E501
|
||||
@@ -59,11 +59,11 @@ class StoreApi(object):
|
||||
|
||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.delete_order_with_http_info(order_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.delete_order_with_http_info(order_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str order_id: ID of the order that needs to be deleted (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -73,7 +73,7 @@ class StoreApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['order_id'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -118,7 +118,7 @@ class StoreApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -129,17 +129,17 @@ class StoreApi(object):
|
||||
|
||||
Returns a map of status codes to quantities # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_inventory(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_inventory(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:return: dict(str, int)
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.get_inventory_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.get_inventory_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -150,11 +150,11 @@ class StoreApi(object):
|
||||
|
||||
Returns a map of status codes to quantities # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_inventory_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_inventory_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:return: dict(str, int)
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
@@ -163,7 +163,7 @@ class StoreApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -206,7 +206,7 @@ class StoreApi(object):
|
||||
files=local_var_files,
|
||||
response_type='dict(str, int)', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -217,18 +217,18 @@ class StoreApi(object):
|
||||
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_order_by_id(order_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_order_by_id(order_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int order_id: ID of pet that needs to be fetched (required)
|
||||
:return: Order
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.get_order_by_id_with_http_info(order_id, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.get_order_by_id_with_http_info(order_id, **kwargs) # noqa: E501
|
||||
@@ -239,11 +239,11 @@ class StoreApi(object):
|
||||
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_order_by_id_with_http_info(order_id, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_order_by_id_with_http_info(order_id, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param int order_id: ID of pet that needs to be fetched (required)
|
||||
:return: Order
|
||||
If the method is called asynchronously,
|
||||
@@ -253,7 +253,7 @@ class StoreApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['order_id'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -306,7 +306,7 @@ class StoreApi(object):
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -316,18 +316,18 @@ class StoreApi(object):
|
||||
"""Place an order for a pet # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.place_order(order, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.place_order(order, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Order order: order placed for purchasing the pet (required)
|
||||
:return: Order
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.place_order_with_http_info(order, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.place_order_with_http_info(order, **kwargs) # noqa: E501
|
||||
@@ -337,11 +337,11 @@ class StoreApi(object):
|
||||
"""Place an order for a pet # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.place_order_with_http_info(order, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.place_order_with_http_info(order, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param Order order: order placed for purchasing the pet (required)
|
||||
:return: Order
|
||||
If the method is called asynchronously,
|
||||
@@ -351,7 +351,7 @@ class StoreApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['order'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -400,7 +400,7 @@ class StoreApi(object):
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
|
||||
@@ -37,18 +37,18 @@ class UserApi(object):
|
||||
|
||||
This can only be done by the logged in user. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.create_user(user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_user(user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param User user: Created user object (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.create_user_with_http_info(user, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.create_user_with_http_info(user, **kwargs) # noqa: E501
|
||||
@@ -59,11 +59,11 @@ class UserApi(object):
|
||||
|
||||
This can only be done by the logged in user. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.create_user_with_http_info(user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_user_with_http_info(user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param User user: Created user object (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -73,7 +73,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['user'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -118,7 +118,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -128,18 +128,18 @@ class UserApi(object):
|
||||
"""Creates list of users with given input array # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.create_users_with_array_input(user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_users_with_array_input(user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[User] user: List of user object (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
|
||||
@@ -149,11 +149,11 @@ class UserApi(object):
|
||||
"""Creates list of users with given input array # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.create_users_with_array_input_with_http_info(user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_users_with_array_input_with_http_info(user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[User] user: List of user object (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -163,7 +163,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['user'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -208,7 +208,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -218,18 +218,18 @@ class UserApi(object):
|
||||
"""Creates list of users with given input array # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.create_users_with_list_input(user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_users_with_list_input(user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[User] user: List of user object (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
|
||||
@@ -239,11 +239,11 @@ class UserApi(object):
|
||||
"""Creates list of users with given input array # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.create_users_with_list_input_with_http_info(user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.create_users_with_list_input_with_http_info(user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param list[User] user: List of user object (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -253,7 +253,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['user'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -298,7 +298,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -309,18 +309,18 @@ class UserApi(object):
|
||||
|
||||
This can only be done by the logged in user. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.delete_user(username, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.delete_user(username, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: The name that needs to be deleted (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.delete_user_with_http_info(username, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.delete_user_with_http_info(username, **kwargs) # noqa: E501
|
||||
@@ -331,11 +331,11 @@ class UserApi(object):
|
||||
|
||||
This can only be done by the logged in user. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.delete_user_with_http_info(username, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.delete_user_with_http_info(username, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: The name that needs to be deleted (required)
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
@@ -345,7 +345,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['username'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -390,7 +390,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -400,18 +400,18 @@ class UserApi(object):
|
||||
"""Get user by user name # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_user_by_name(username, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_user_by_name(username, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: The name that needs to be fetched. Use user1 for testing. (required)
|
||||
:return: User
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.get_user_by_name_with_http_info(username, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.get_user_by_name_with_http_info(username, **kwargs) # noqa: E501
|
||||
@@ -421,11 +421,11 @@ class UserApi(object):
|
||||
"""Get user by user name # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.get_user_by_name_with_http_info(username, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.get_user_by_name_with_http_info(username, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: The name that needs to be fetched. Use user1 for testing. (required)
|
||||
:return: User
|
||||
If the method is called asynchronously,
|
||||
@@ -435,7 +435,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['username'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -484,7 +484,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type='User', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -494,11 +494,11 @@ class UserApi(object):
|
||||
"""Logs user into the system # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.login_user(username, password, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.login_user(username, password, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: The user name for login (required)
|
||||
:param str password: The password for login in clear text (required)
|
||||
:return: str
|
||||
@@ -506,7 +506,7 @@ class UserApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.login_user_with_http_info(username, password, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.login_user_with_http_info(username, password, **kwargs) # noqa: E501
|
||||
@@ -516,11 +516,11 @@ class UserApi(object):
|
||||
"""Logs user into the system # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.login_user_with_http_info(username, password, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.login_user_with_http_info(username, password, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: The user name for login (required)
|
||||
:param str password: The password for login in clear text (required)
|
||||
:return: str
|
||||
@@ -531,7 +531,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['username', 'password'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -586,7 +586,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -596,17 +596,17 @@ class UserApi(object):
|
||||
"""Logs out current logged in user session # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.logout_user(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.logout_user(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.logout_user_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.logout_user_with_http_info(**kwargs) # noqa: E501
|
||||
@@ -616,11 +616,11 @@ class UserApi(object):
|
||||
"""Logs out current logged in user session # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.logout_user_with_http_info(async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.logout_user_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
@@ -629,7 +629,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = [] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -668,7 +668,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
@@ -679,11 +679,11 @@ class UserApi(object):
|
||||
|
||||
This can only be done by the logged in user. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.update_user(username, user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.update_user(username, user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: name that need to be deleted (required)
|
||||
:param User user: Updated user object (required)
|
||||
:return: None
|
||||
@@ -691,7 +691,7 @@ class UserApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async'):
|
||||
if kwargs.get('async_req'):
|
||||
return self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
|
||||
@@ -702,11 +702,11 @@ class UserApi(object):
|
||||
|
||||
This can only be done by the logged in user. # noqa: E501
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async=True
|
||||
>>> thread = api.update_user_with_http_info(username, user, async=True)
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.update_user_with_http_info(username, user, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async bool
|
||||
:param async_req bool
|
||||
:param str username: name that need to be deleted (required)
|
||||
:param User user: Updated user object (required)
|
||||
:return: None
|
||||
@@ -717,7 +717,7 @@ class UserApi(object):
|
||||
local_var_params = locals()
|
||||
|
||||
all_params = ['username', 'user'] # noqa: E501
|
||||
all_params.append('async')
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
@@ -768,7 +768,7 @@ class UserApi(object):
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async=local_var_params.get('async'),
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
_preload_content=local_var_params.get('_preload_content', True),
|
||||
_request_timeout=local_var_params.get('_request_timeout'),
|
||||
|
||||
@@ -273,12 +273,12 @@ class ApiClient(object):
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async request, set the async parameter.
|
||||
To make an async_req request, set the async_req parameter.
|
||||
|
||||
:param resource_path: Path to method endpoint.
|
||||
:param method: Method to call.
|
||||
@@ -293,7 +293,7 @@ class ApiClient(object):
|
||||
:param response: Response data type.
|
||||
:param files dict: key -> filename, value -> filepath,
|
||||
for `multipart/form-data`.
|
||||
:param async bool: execute request asynchronously
|
||||
:param async_req bool: execute request asynchronously
|
||||
:param _return_http_data_only: response data without head status code
|
||||
and headers
|
||||
:param collection_formats: dict of collection formats for path, query,
|
||||
@@ -306,13 +306,13 @@ class ApiClient(object):
|
||||
timeout. It can also be a pair (tuple) of
|
||||
(connection, read) timeouts.
|
||||
:return:
|
||||
If async parameter is True,
|
||||
If async_req parameter is True,
|
||||
the request will be called asynchronously.
|
||||
The method will return the request thread.
|
||||
If parameter async is False or missing,
|
||||
If parameter async_req is False or missing,
|
||||
then the method will return the response directly.
|
||||
"""
|
||||
if not async:
|
||||
if not async_req:
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
|
||||
Reference in New Issue
Block a user