Skip to content

Fix async reserved keyword (python 3.7) #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions sib_api_v3_sdk/api/account_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ def get_account(self, **kwargs): # noqa: E501
"""Get your account informations, plans and credits details # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_account(async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_account(asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:return: GetAccount
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
if kwargs.get('asynchronous'):
return self.get_account_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_account_with_http_info(**kwargs) # noqa: E501
Expand All @@ -57,18 +57,18 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501
"""Get your account informations, plans and credits details # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_account_with_http_info(async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_account_with_http_info(asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:return: GetAccount
If the method is called asynchronously,
returns the request thread.
"""

all_params = [] # noqa: E501
all_params.append('async')
all_params.append('asynchronous')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
Expand Down Expand Up @@ -116,7 +116,7 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='GetAccount', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
asynchronous=params.get('asynchronous'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
Expand Down
72 changes: 36 additions & 36 deletions sib_api_v3_sdk/api/attributes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def create_attribute(self, attribute_category, attribute_name, create_attribute,
"""Creates contact attribute # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:param str attribute_category: Category of the attribute (required)
:param str attribute_name: Name of the attribute (required)
:param CreateAttribute create_attribute: Values to create an attribute (required)
Expand All @@ -50,7 +50,7 @@ def create_attribute(self, attribute_category, attribute_name, create_attribute,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
if kwargs.get('asynchronous'):
return self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501
else:
(data) = self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501
Expand All @@ -60,11 +60,11 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr
"""Creates contact attribute # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:param str attribute_category: Category of the attribute (required)
:param str attribute_name: Name of the attribute (required)
:param CreateAttribute create_attribute: Values to create an attribute (required)
Expand All @@ -74,7 +74,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr
"""

all_params = ['attribute_category', 'attribute_name', 'create_attribute'] # noqa: E501
all_params.append('async')
all_params.append('asynchronous')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
Expand Down Expand Up @@ -140,7 +140,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
asynchronous=params.get('asynchronous'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
Expand All @@ -150,19 +150,19 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq
"""Deletes an attribute # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.delete_attribute(attribute_category, attribute_name, async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_attribute(attribute_category, attribute_name, asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:param str attribute_category: Category of the attribute (required)
:param str attribute_name: Name of the existing attribute (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('asynchronous'):
return self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501
else:
(data) = self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501
Expand All @@ -172,11 +172,11 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, **
"""Deletes an attribute # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:param str attribute_category: Category of the attribute (required)
:param str attribute_name: Name of the existing attribute (required)
:return: None
Expand All @@ -185,7 +185,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, **
"""

all_params = ['attribute_category', 'attribute_name'] # noqa: E501
all_params.append('async')
all_params.append('asynchronous')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
Expand Down Expand Up @@ -245,7 +245,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, **
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
asynchronous=params.get('asynchronous'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
Expand All @@ -255,17 +255,17 @@ def get_attributes(self, **kwargs): # noqa: E501
"""Lists all attributes # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_attributes(async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_attributes(asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:return: GetAttributes
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
if kwargs.get('asynchronous'):
return self.get_attributes_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_attributes_with_http_info(**kwargs) # noqa: E501
Expand All @@ -275,18 +275,18 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501
"""Lists all attributes # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_attributes_with_http_info(async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_attributes_with_http_info(asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:return: GetAttributes
If the method is called asynchronously,
returns the request thread.
"""

all_params = [] # noqa: E501
all_params.append('async')
all_params.append('asynchronous')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
Expand Down Expand Up @@ -334,7 +334,7 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='GetAttributes', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
asynchronous=params.get('asynchronous'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
Expand All @@ -344,11 +344,11 @@ def update_attribute(self, attribute_category, attribute_name, update_attribute,
"""Updates contact attribute # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:param str attribute_category: Category of the attribute (required)
:param str attribute_name: Name of the existing attribute (required)
:param UpdateAttribute update_attribute: Values to update an attribute (required)
Expand All @@ -357,7 +357,7 @@ def update_attribute(self, attribute_category, attribute_name, update_attribute,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
if kwargs.get('asynchronous'):
return self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501
else:
(data) = self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501
Expand All @@ -367,11 +367,11 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up
"""Updates contact attribute # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async=True)
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, asynchronous=True)
>>> result = thread.get()

:param async bool
:param asynchronous bool
:param str attribute_category: Category of the attribute (required)
:param str attribute_name: Name of the existing attribute (required)
:param UpdateAttribute update_attribute: Values to update an attribute (required)
Expand All @@ -381,7 +381,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up
"""

all_params = ['attribute_category', 'attribute_name', 'update_attribute'] # noqa: E501
all_params.append('async')
all_params.append('asynchronous')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
Expand Down Expand Up @@ -447,7 +447,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
asynchronous=params.get('asynchronous'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
Expand Down
Loading