Skip to content

Rename async to async_req, add support for Python 3.7 #5

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

Merged
merged 1 commit into from
Nov 26, 2018
Merged
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
72 changes: 36 additions & 36 deletions signrequest_client/api/api_tokens_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ def api_tokens_create(self, data, **kwargs): # noqa: E501

You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_create(data, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_create(data, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param AuthToken data: (required)
:return: AuthToken
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.api_tokens_create_with_http_info(data, **kwargs) # noqa: E501
else:
(data) = self.api_tokens_create_with_http_info(data, **kwargs) # noqa: E501
Expand All @@ -60,19 +60,19 @@ def api_tokens_create_with_http_info(self, data, **kwargs): # noqa: E501

You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_create_with_http_info(data, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_create_with_http_info(data, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param AuthToken data: (required)
:return: AuthToken
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['data'] # 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')
Expand Down Expand Up @@ -126,7 +126,7 @@ def api_tokens_create_with_http_info(self, data, **kwargs): # noqa: E501
files=local_var_files,
response_type='AuthToken', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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 @@ -137,18 +137,18 @@ def api_tokens_delete(self, key, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_delete(key, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_delete(key, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str key: A unique value identifying this api token. (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.api_tokens_delete_with_http_info(key, **kwargs) # noqa: E501
else:
(data) = self.api_tokens_delete_with_http_info(key, **kwargs) # noqa: E501
Expand All @@ -159,19 +159,19 @@ def api_tokens_delete_with_http_info(self, key, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_delete_with_http_info(key, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_delete_with_http_info(key, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str key: A unique value identifying this api token. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['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')
Expand Down Expand Up @@ -225,7 +225,7 @@ def api_tokens_delete_with_http_info(self, key, **kwargs): # noqa: E501
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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 @@ -236,19 +236,19 @@ def api_tokens_list(self, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_list(async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_list(async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param int page: A page number within the paginated result set.
:param int limit: Number of results to return per page.
:return: InlineResponse200
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.api_tokens_list_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.api_tokens_list_with_http_info(**kwargs) # noqa: E501
Expand All @@ -259,11 +259,11 @@ def api_tokens_list_with_http_info(self, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_list_with_http_info(async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_list_with_http_info(async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param int page: A page number within the paginated result set.
:param int limit: Number of results to return per page.
:return: InlineResponse200
Expand All @@ -272,7 +272,7 @@ def api_tokens_list_with_http_info(self, **kwargs): # noqa: E501
"""

all_params = ['page', 'limit'] # 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')
Expand Down Expand Up @@ -324,7 +324,7 @@ def api_tokens_list_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='InlineResponse200', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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 @@ -335,18 +335,18 @@ def api_tokens_read(self, key, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_read(key, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_read(key, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str key: A unique value identifying this api token. (required)
:return: AuthToken
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.api_tokens_read_with_http_info(key, **kwargs) # noqa: E501
else:
(data) = self.api_tokens_read_with_http_info(key, **kwargs) # noqa: E501
Expand All @@ -357,19 +357,19 @@ def api_tokens_read_with_http_info(self, key, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.api_tokens_read_with_http_info(key, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_tokens_read_with_http_info(key, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str key: A unique value identifying this api token. (required)
:return: AuthToken
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['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')
Expand Down Expand Up @@ -423,7 +423,7 @@ def api_tokens_read_with_http_info(self, key, **kwargs): # noqa: E501
files=local_var_files,
response_type='AuthToken', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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
54 changes: 27 additions & 27 deletions signrequest_client/api/document_attachments_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ def document_attachments_create(self, data, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.document_attachments_create(data, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.document_attachments_create(data, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param DocumentAttachment data: (required)
:return: DocumentAttachment
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.document_attachments_create_with_http_info(data, **kwargs) # noqa: E501
else:
(data) = self.document_attachments_create_with_http_info(data, **kwargs) # noqa: E501
Expand All @@ -60,19 +60,19 @@ def document_attachments_create_with_http_info(self, data, **kwargs): # noqa: E

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.document_attachments_create_with_http_info(data, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.document_attachments_create_with_http_info(data, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param DocumentAttachment data: (required)
:return: DocumentAttachment
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['data'] # 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')
Expand Down Expand Up @@ -126,7 +126,7 @@ def document_attachments_create_with_http_info(self, data, **kwargs): # noqa: E
files=local_var_files,
response_type='DocumentAttachment', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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 @@ -137,11 +137,11 @@ def document_attachments_list(self, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.document_attachments_list(async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.document_attachments_list(async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str document__uuid:
:param str document__external_id:
:param str created:
Expand All @@ -152,7 +152,7 @@ def document_attachments_list(self, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
if kwargs.get('async_req'):
return self.document_attachments_list_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.document_attachments_list_with_http_info(**kwargs) # noqa: E501
Expand All @@ -163,11 +163,11 @@ def document_attachments_list_with_http_info(self, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.document_attachments_list_with_http_info(async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.document_attachments_list_with_http_info(async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str document__uuid:
:param str document__external_id:
:param str created:
Expand All @@ -179,7 +179,7 @@ def document_attachments_list_with_http_info(self, **kwargs): # noqa: E501
"""

all_params = ['document__uuid', 'document__external_id', 'created', 'page', 'limit'] # 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')
Expand Down Expand Up @@ -237,7 +237,7 @@ def document_attachments_list_with_http_info(self, **kwargs): # noqa: E501
files=local_var_files,
response_type='InlineResponse2001', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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 @@ -248,18 +248,18 @@ def document_attachments_read(self, uuid, **kwargs): # noqa: E501

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.document_attachments_read(uuid, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.document_attachments_read(uuid, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str uuid: (required)
:return: DocumentAttachment
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.document_attachments_read_with_http_info(uuid, **kwargs) # noqa: E501
else:
(data) = self.document_attachments_read_with_http_info(uuid, **kwargs) # noqa: E501
Expand All @@ -270,19 +270,19 @@ def document_attachments_read_with_http_info(self, uuid, **kwargs): # noqa: E50

# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.document_attachments_read_with_http_info(uuid, async=True)
asynchronous HTTP request, please pass async_req=True
>>> thread = api.document_attachments_read_with_http_info(uuid, async_req=True)
>>> result = thread.get()

:param async bool
:param async_req bool
:param str uuid: (required)
:return: DocumentAttachment
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['uuid'] # 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')
Expand Down Expand Up @@ -336,7 +336,7 @@ def document_attachments_read_with_http_info(self, uuid, **kwargs): # noqa: E50
files=local_var_files,
response_type='DocumentAttachment', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
async_req=params.get('async_req'),
_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