Skip to content

Commit b3c8b2a

Browse files
authored
Merge pull request #5 from SignRequest/fix-python-3.7
Rename async to async_req, add support for Python 3.7
2 parents 1ea2cbb + cc52a9c commit b3c8b2a

12 files changed

+318
-318
lines changed

signrequest_client/api/api_tokens_api.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ def api_tokens_create(self, data, **kwargs): # noqa: E501
3838
3939
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
4040
This method makes a synchronous HTTP request by default. To make an
41-
asynchronous HTTP request, please pass async=True
42-
>>> thread = api.api_tokens_create(data, async=True)
41+
asynchronous HTTP request, please pass async_req=True
42+
>>> thread = api.api_tokens_create(data, async_req=True)
4343
>>> result = thread.get()
4444
45-
:param async bool
45+
:param async_req bool
4646
:param AuthToken data: (required)
4747
:return: AuthToken
4848
If the method is called asynchronously,
4949
returns the request thread.
5050
"""
5151
kwargs['_return_http_data_only'] = True
52-
if kwargs.get('async'):
52+
if kwargs.get('async_req'):
5353
return self.api_tokens_create_with_http_info(data, **kwargs) # noqa: E501
5454
else:
5555
(data) = self.api_tokens_create_with_http_info(data, **kwargs) # noqa: E501
@@ -60,19 +60,19 @@ def api_tokens_create_with_http_info(self, data, **kwargs): # noqa: E501
6060
6161
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
6262
This method makes a synchronous HTTP request by default. To make an
63-
asynchronous HTTP request, please pass async=True
64-
>>> thread = api.api_tokens_create_with_http_info(data, async=True)
63+
asynchronous HTTP request, please pass async_req=True
64+
>>> thread = api.api_tokens_create_with_http_info(data, async_req=True)
6565
>>> result = thread.get()
6666
67-
:param async bool
67+
:param async_req bool
6868
:param AuthToken data: (required)
6969
:return: AuthToken
7070
If the method is called asynchronously,
7171
returns the request thread.
7272
"""
7373

7474
all_params = ['data'] # noqa: E501
75-
all_params.append('async')
75+
all_params.append('async_req')
7676
all_params.append('_return_http_data_only')
7777
all_params.append('_preload_content')
7878
all_params.append('_request_timeout')
@@ -126,7 +126,7 @@ def api_tokens_create_with_http_info(self, data, **kwargs): # noqa: E501
126126
files=local_var_files,
127127
response_type='AuthToken', # noqa: E501
128128
auth_settings=auth_settings,
129-
async=params.get('async'),
129+
async_req=params.get('async_req'),
130130
_return_http_data_only=params.get('_return_http_data_only'),
131131
_preload_content=params.get('_preload_content', True),
132132
_request_timeout=params.get('_request_timeout'),
@@ -137,18 +137,18 @@ def api_tokens_delete(self, key, **kwargs): # noqa: E501
137137
138138
# noqa: E501
139139
This method makes a synchronous HTTP request by default. To make an
140-
asynchronous HTTP request, please pass async=True
141-
>>> thread = api.api_tokens_delete(key, async=True)
140+
asynchronous HTTP request, please pass async_req=True
141+
>>> thread = api.api_tokens_delete(key, async_req=True)
142142
>>> result = thread.get()
143143
144-
:param async bool
144+
:param async_req bool
145145
:param str key: A unique value identifying this api token. (required)
146146
:return: None
147147
If the method is called asynchronously,
148148
returns the request thread.
149149
"""
150150
kwargs['_return_http_data_only'] = True
151-
if kwargs.get('async'):
151+
if kwargs.get('async_req'):
152152
return self.api_tokens_delete_with_http_info(key, **kwargs) # noqa: E501
153153
else:
154154
(data) = self.api_tokens_delete_with_http_info(key, **kwargs) # noqa: E501
@@ -159,19 +159,19 @@ def api_tokens_delete_with_http_info(self, key, **kwargs): # noqa: E501
159159
160160
# noqa: E501
161161
This method makes a synchronous HTTP request by default. To make an
162-
asynchronous HTTP request, please pass async=True
163-
>>> thread = api.api_tokens_delete_with_http_info(key, async=True)
162+
asynchronous HTTP request, please pass async_req=True
163+
>>> thread = api.api_tokens_delete_with_http_info(key, async_req=True)
164164
>>> result = thread.get()
165165
166-
:param async bool
166+
:param async_req bool
167167
:param str key: A unique value identifying this api token. (required)
168168
:return: None
169169
If the method is called asynchronously,
170170
returns the request thread.
171171
"""
172172

173173
all_params = ['key'] # noqa: E501
174-
all_params.append('async')
174+
all_params.append('async_req')
175175
all_params.append('_return_http_data_only')
176176
all_params.append('_preload_content')
177177
all_params.append('_request_timeout')
@@ -225,7 +225,7 @@ def api_tokens_delete_with_http_info(self, key, **kwargs): # noqa: E501
225225
files=local_var_files,
226226
response_type=None, # noqa: E501
227227
auth_settings=auth_settings,
228-
async=params.get('async'),
228+
async_req=params.get('async_req'),
229229
_return_http_data_only=params.get('_return_http_data_only'),
230230
_preload_content=params.get('_preload_content', True),
231231
_request_timeout=params.get('_request_timeout'),
@@ -236,19 +236,19 @@ def api_tokens_list(self, **kwargs): # noqa: E501
236236
237237
# noqa: E501
238238
This method makes a synchronous HTTP request by default. To make an
239-
asynchronous HTTP request, please pass async=True
240-
>>> thread = api.api_tokens_list(async=True)
239+
asynchronous HTTP request, please pass async_req=True
240+
>>> thread = api.api_tokens_list(async_req=True)
241241
>>> result = thread.get()
242242
243-
:param async bool
243+
:param async_req bool
244244
:param int page: A page number within the paginated result set.
245245
:param int limit: Number of results to return per page.
246246
:return: InlineResponse200
247247
If the method is called asynchronously,
248248
returns the request thread.
249249
"""
250250
kwargs['_return_http_data_only'] = True
251-
if kwargs.get('async'):
251+
if kwargs.get('async_req'):
252252
return self.api_tokens_list_with_http_info(**kwargs) # noqa: E501
253253
else:
254254
(data) = self.api_tokens_list_with_http_info(**kwargs) # noqa: E501
@@ -259,11 +259,11 @@ def api_tokens_list_with_http_info(self, **kwargs): # noqa: E501
259259
260260
# noqa: E501
261261
This method makes a synchronous HTTP request by default. To make an
262-
asynchronous HTTP request, please pass async=True
263-
>>> thread = api.api_tokens_list_with_http_info(async=True)
262+
asynchronous HTTP request, please pass async_req=True
263+
>>> thread = api.api_tokens_list_with_http_info(async_req=True)
264264
>>> result = thread.get()
265265
266-
:param async bool
266+
:param async_req bool
267267
:param int page: A page number within the paginated result set.
268268
:param int limit: Number of results to return per page.
269269
:return: InlineResponse200
@@ -272,7 +272,7 @@ def api_tokens_list_with_http_info(self, **kwargs): # noqa: E501
272272
"""
273273

274274
all_params = ['page', 'limit'] # noqa: E501
275-
all_params.append('async')
275+
all_params.append('async_req')
276276
all_params.append('_return_http_data_only')
277277
all_params.append('_preload_content')
278278
all_params.append('_request_timeout')
@@ -324,7 +324,7 @@ def api_tokens_list_with_http_info(self, **kwargs): # noqa: E501
324324
files=local_var_files,
325325
response_type='InlineResponse200', # noqa: E501
326326
auth_settings=auth_settings,
327-
async=params.get('async'),
327+
async_req=params.get('async_req'),
328328
_return_http_data_only=params.get('_return_http_data_only'),
329329
_preload_content=params.get('_preload_content', True),
330330
_request_timeout=params.get('_request_timeout'),
@@ -335,18 +335,18 @@ def api_tokens_read(self, key, **kwargs): # noqa: E501
335335
336336
# noqa: E501
337337
This method makes a synchronous HTTP request by default. To make an
338-
asynchronous HTTP request, please pass async=True
339-
>>> thread = api.api_tokens_read(key, async=True)
338+
asynchronous HTTP request, please pass async_req=True
339+
>>> thread = api.api_tokens_read(key, async_req=True)
340340
>>> result = thread.get()
341341
342-
:param async bool
342+
:param async_req bool
343343
:param str key: A unique value identifying this api token. (required)
344344
:return: AuthToken
345345
If the method is called asynchronously,
346346
returns the request thread.
347347
"""
348348
kwargs['_return_http_data_only'] = True
349-
if kwargs.get('async'):
349+
if kwargs.get('async_req'):
350350
return self.api_tokens_read_with_http_info(key, **kwargs) # noqa: E501
351351
else:
352352
(data) = self.api_tokens_read_with_http_info(key, **kwargs) # noqa: E501
@@ -357,19 +357,19 @@ def api_tokens_read_with_http_info(self, key, **kwargs): # noqa: E501
357357
358358
# noqa: E501
359359
This method makes a synchronous HTTP request by default. To make an
360-
asynchronous HTTP request, please pass async=True
361-
>>> thread = api.api_tokens_read_with_http_info(key, async=True)
360+
asynchronous HTTP request, please pass async_req=True
361+
>>> thread = api.api_tokens_read_with_http_info(key, async_req=True)
362362
>>> result = thread.get()
363363
364-
:param async bool
364+
:param async_req bool
365365
:param str key: A unique value identifying this api token. (required)
366366
:return: AuthToken
367367
If the method is called asynchronously,
368368
returns the request thread.
369369
"""
370370

371371
all_params = ['key'] # noqa: E501
372-
all_params.append('async')
372+
all_params.append('async_req')
373373
all_params.append('_return_http_data_only')
374374
all_params.append('_preload_content')
375375
all_params.append('_request_timeout')
@@ -423,7 +423,7 @@ def api_tokens_read_with_http_info(self, key, **kwargs): # noqa: E501
423423
files=local_var_files,
424424
response_type='AuthToken', # noqa: E501
425425
auth_settings=auth_settings,
426-
async=params.get('async'),
426+
async_req=params.get('async_req'),
427427
_return_http_data_only=params.get('_return_http_data_only'),
428428
_preload_content=params.get('_preload_content', True),
429429
_request_timeout=params.get('_request_timeout'),

signrequest_client/api/document_attachments_api.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ def document_attachments_create(self, data, **kwargs): # noqa: E501
3838
3939
# noqa: E501
4040
This method makes a synchronous HTTP request by default. To make an
41-
asynchronous HTTP request, please pass async=True
42-
>>> thread = api.document_attachments_create(data, async=True)
41+
asynchronous HTTP request, please pass async_req=True
42+
>>> thread = api.document_attachments_create(data, async_req=True)
4343
>>> result = thread.get()
4444
45-
:param async bool
45+
:param async_req bool
4646
:param DocumentAttachment data: (required)
4747
:return: DocumentAttachment
4848
If the method is called asynchronously,
4949
returns the request thread.
5050
"""
5151
kwargs['_return_http_data_only'] = True
52-
if kwargs.get('async'):
52+
if kwargs.get('async_req'):
5353
return self.document_attachments_create_with_http_info(data, **kwargs) # noqa: E501
5454
else:
5555
(data) = self.document_attachments_create_with_http_info(data, **kwargs) # noqa: E501
@@ -60,19 +60,19 @@ def document_attachments_create_with_http_info(self, data, **kwargs): # noqa: E
6060
6161
# noqa: E501
6262
This method makes a synchronous HTTP request by default. To make an
63-
asynchronous HTTP request, please pass async=True
64-
>>> thread = api.document_attachments_create_with_http_info(data, async=True)
63+
asynchronous HTTP request, please pass async_req=True
64+
>>> thread = api.document_attachments_create_with_http_info(data, async_req=True)
6565
>>> result = thread.get()
6666
67-
:param async bool
67+
:param async_req bool
6868
:param DocumentAttachment data: (required)
6969
:return: DocumentAttachment
7070
If the method is called asynchronously,
7171
returns the request thread.
7272
"""
7373

7474
all_params = ['data'] # noqa: E501
75-
all_params.append('async')
75+
all_params.append('async_req')
7676
all_params.append('_return_http_data_only')
7777
all_params.append('_preload_content')
7878
all_params.append('_request_timeout')
@@ -126,7 +126,7 @@ def document_attachments_create_with_http_info(self, data, **kwargs): # noqa: E
126126
files=local_var_files,
127127
response_type='DocumentAttachment', # noqa: E501
128128
auth_settings=auth_settings,
129-
async=params.get('async'),
129+
async_req=params.get('async_req'),
130130
_return_http_data_only=params.get('_return_http_data_only'),
131131
_preload_content=params.get('_preload_content', True),
132132
_request_timeout=params.get('_request_timeout'),
@@ -137,11 +137,11 @@ def document_attachments_list(self, **kwargs): # noqa: E501
137137
138138
# noqa: E501
139139
This method makes a synchronous HTTP request by default. To make an
140-
asynchronous HTTP request, please pass async=True
141-
>>> thread = api.document_attachments_list(async=True)
140+
asynchronous HTTP request, please pass async_req=True
141+
>>> thread = api.document_attachments_list(async_req=True)
142142
>>> result = thread.get()
143143
144-
:param async bool
144+
:param async_req bool
145145
:param str document__uuid:
146146
:param str document__external_id:
147147
:param str created:
@@ -152,7 +152,7 @@ def document_attachments_list(self, **kwargs): # noqa: E501
152152
returns the request thread.
153153
"""
154154
kwargs['_return_http_data_only'] = True
155-
if kwargs.get('async'):
155+
if kwargs.get('async_req'):
156156
return self.document_attachments_list_with_http_info(**kwargs) # noqa: E501
157157
else:
158158
(data) = self.document_attachments_list_with_http_info(**kwargs) # noqa: E501
@@ -163,11 +163,11 @@ def document_attachments_list_with_http_info(self, **kwargs): # noqa: E501
163163
164164
# noqa: E501
165165
This method makes a synchronous HTTP request by default. To make an
166-
asynchronous HTTP request, please pass async=True
167-
>>> thread = api.document_attachments_list_with_http_info(async=True)
166+
asynchronous HTTP request, please pass async_req=True
167+
>>> thread = api.document_attachments_list_with_http_info(async_req=True)
168168
>>> result = thread.get()
169169
170-
:param async bool
170+
:param async_req bool
171171
:param str document__uuid:
172172
:param str document__external_id:
173173
:param str created:
@@ -179,7 +179,7 @@ def document_attachments_list_with_http_info(self, **kwargs): # noqa: E501
179179
"""
180180

181181
all_params = ['document__uuid', 'document__external_id', 'created', 'page', 'limit'] # noqa: E501
182-
all_params.append('async')
182+
all_params.append('async_req')
183183
all_params.append('_return_http_data_only')
184184
all_params.append('_preload_content')
185185
all_params.append('_request_timeout')
@@ -237,7 +237,7 @@ def document_attachments_list_with_http_info(self, **kwargs): # noqa: E501
237237
files=local_var_files,
238238
response_type='InlineResponse2001', # noqa: E501
239239
auth_settings=auth_settings,
240-
async=params.get('async'),
240+
async_req=params.get('async_req'),
241241
_return_http_data_only=params.get('_return_http_data_only'),
242242
_preload_content=params.get('_preload_content', True),
243243
_request_timeout=params.get('_request_timeout'),
@@ -248,18 +248,18 @@ def document_attachments_read(self, uuid, **kwargs): # noqa: E501
248248
249249
# noqa: E501
250250
This method makes a synchronous HTTP request by default. To make an
251-
asynchronous HTTP request, please pass async=True
252-
>>> thread = api.document_attachments_read(uuid, async=True)
251+
asynchronous HTTP request, please pass async_req=True
252+
>>> thread = api.document_attachments_read(uuid, async_req=True)
253253
>>> result = thread.get()
254254
255-
:param async bool
255+
:param async_req bool
256256
:param str uuid: (required)
257257
:return: DocumentAttachment
258258
If the method is called asynchronously,
259259
returns the request thread.
260260
"""
261261
kwargs['_return_http_data_only'] = True
262-
if kwargs.get('async'):
262+
if kwargs.get('async_req'):
263263
return self.document_attachments_read_with_http_info(uuid, **kwargs) # noqa: E501
264264
else:
265265
(data) = self.document_attachments_read_with_http_info(uuid, **kwargs) # noqa: E501
@@ -270,19 +270,19 @@ def document_attachments_read_with_http_info(self, uuid, **kwargs): # noqa: E50
270270
271271
# noqa: E501
272272
This method makes a synchronous HTTP request by default. To make an
273-
asynchronous HTTP request, please pass async=True
274-
>>> thread = api.document_attachments_read_with_http_info(uuid, async=True)
273+
asynchronous HTTP request, please pass async_req=True
274+
>>> thread = api.document_attachments_read_with_http_info(uuid, async_req=True)
275275
>>> result = thread.get()
276276
277-
:param async bool
277+
:param async_req bool
278278
:param str uuid: (required)
279279
:return: DocumentAttachment
280280
If the method is called asynchronously,
281281
returns the request thread.
282282
"""
283283

284284
all_params = ['uuid'] # noqa: E501
285-
all_params.append('async')
285+
all_params.append('async_req')
286286
all_params.append('_return_http_data_only')
287287
all_params.append('_preload_content')
288288
all_params.append('_request_timeout')
@@ -336,7 +336,7 @@ def document_attachments_read_with_http_info(self, uuid, **kwargs): # noqa: E50
336336
files=local_var_files,
337337
response_type='DocumentAttachment', # noqa: E501
338338
auth_settings=auth_settings,
339-
async=params.get('async'),
339+
async_req=params.get('async_req'),
340340
_return_http_data_only=params.get('_return_http_data_only'),
341341
_preload_content=params.get('_preload_content', True),
342342
_request_timeout=params.get('_request_timeout'),

0 commit comments

Comments
 (0)