Skip to content

Commit f23bfb3

Browse files
authored
v3.5.0rc1 (#82)
* sdk built through Tir * v3.5.0rc1 updates & commments API removed * adding CleanCmd back into setup.py Co-authored-by: Harsha Rahul Boggaram <[email protected]>
1 parent 7f636ee commit f23bfb3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+12491
-286
lines changed

docusign_esign/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@
384384
from .apis.billing_api import BillingApi
385385
from .apis.bulk_envelopes_api import BulkEnvelopesApi
386386
from .apis.cloud_storage_api import CloudStorageApi
387-
from .apis.comments_api import CommentsApi
388387
from .apis.connect_api import ConnectApi
389388
from .apis.custom_tabs_api import CustomTabsApi
390389
from .apis.diagnostics_api import DiagnosticsApi

docusign_esign/apis/accounts_api.py

Lines changed: 805 additions & 61 deletions
Large diffs are not rendered by default.

docusign_esign/apis/bulk_envelopes_api.py

Lines changed: 226 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,231 @@ def get_with_http_info(self, account_id, batch_id, **kwargs):
716716
_request_timeout=params.get('_request_timeout'),
717717
collection_formats=collection_formats)
718718

719+
def get_bulk_send_batch_status(self, account_id, bulk_send_batch_id, **kwargs):
720+
"""
721+
Gets a specific bulk send batch status
722+
This method makes a synchronous HTTP request by default. To make an
723+
asynchronous HTTP request, please define a `callback` function
724+
to be invoked when receiving the response.
725+
>>> def callback_function(response):
726+
>>> pprint(response)
727+
>>>
728+
>>> thread = api.get_bulk_send_batch_status(account_id, bulk_send_batch_id, callback=callback_function)
729+
730+
:param callback function: The callback function
731+
for asynchronous request. (optional)
732+
:param str account_id: The external account number (int) or account ID Guid. (required)
733+
:param str bulk_send_batch_id: (required)
734+
:return: BulkSendBatchStatus
735+
If the method is called asynchronously,
736+
returns the request thread.
737+
"""
738+
kwargs['_return_http_data_only'] = True
739+
if kwargs.get('callback'):
740+
return self.get_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id, **kwargs)
741+
else:
742+
(data) = self.get_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id, **kwargs)
743+
return data
744+
745+
def get_bulk_send_batch_status_with_http_info(self, account_id, bulk_send_batch_id, **kwargs):
746+
"""
747+
Gets a specific bulk send batch status
748+
This method makes a synchronous HTTP request by default. To make an
749+
asynchronous HTTP request, please define a `callback` function
750+
to be invoked when receiving the response.
751+
>>> def callback_function(response):
752+
>>> pprint(response)
753+
>>>
754+
>>> thread = api.get_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id, callback=callback_function)
755+
756+
:param callback function: The callback function
757+
for asynchronous request. (optional)
758+
:param str account_id: The external account number (int) or account ID Guid. (required)
759+
:param str bulk_send_batch_id: (required)
760+
:return: BulkSendBatchStatus
761+
If the method is called asynchronously,
762+
returns the request thread.
763+
"""
764+
765+
all_params = ['account_id', 'bulk_send_batch_id']
766+
all_params.append('callback')
767+
all_params.append('_return_http_data_only')
768+
all_params.append('_preload_content')
769+
all_params.append('_request_timeout')
770+
771+
params = locals()
772+
for key, val in iteritems(params['kwargs']):
773+
if key not in all_params:
774+
raise TypeError(
775+
"Got an unexpected keyword argument '%s'"
776+
" to method get_bulk_send_batch_status" % key
777+
)
778+
params[key] = val
779+
del params['kwargs']
780+
# verify the required parameter 'account_id' is set
781+
if ('account_id' not in params) or (params['account_id'] is None):
782+
raise ValueError("Missing the required parameter `account_id` when calling `get_bulk_send_batch_status`")
783+
# verify the required parameter 'bulk_send_batch_id' is set
784+
if ('bulk_send_batch_id' not in params) or (params['bulk_send_batch_id'] is None):
785+
raise ValueError("Missing the required parameter `bulk_send_batch_id` when calling `get_bulk_send_batch_status`")
786+
787+
788+
collection_formats = {}
789+
790+
resource_path = '/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}'.replace('{format}', 'json')
791+
path_params = {}
792+
if 'account_id' in params:
793+
path_params['accountId'] = params['account_id']
794+
if 'bulk_send_batch_id' in params:
795+
path_params['bulkSendBatchId'] = params['bulk_send_batch_id']
796+
797+
query_params = {}
798+
799+
header_params = {}
800+
801+
form_params = []
802+
local_var_files = {}
803+
804+
body_params = None
805+
# HTTP header `Accept`
806+
header_params['Accept'] = self.api_client.\
807+
select_header_accept(['application/json'])
808+
809+
# Authentication setting
810+
auth_settings = []
811+
812+
return self.api_client.call_api(resource_path, 'GET',
813+
path_params,
814+
query_params,
815+
header_params,
816+
body=body_params,
817+
post_params=form_params,
818+
files=local_var_files,
819+
response_type='BulkSendBatchStatus',
820+
auth_settings=auth_settings,
821+
callback=params.get('callback'),
822+
_return_http_data_only=params.get('_return_http_data_only'),
823+
_preload_content=params.get('_preload_content', True),
824+
_request_timeout=params.get('_request_timeout'),
825+
collection_formats=collection_formats)
826+
827+
def get_bulk_send_batches(self, account_id, **kwargs):
828+
"""
829+
Returns a list of bulk send batch satuses initiated by account.
830+
This method makes a synchronous HTTP request by default. To make an
831+
asynchronous HTTP request, please define a `callback` function
832+
to be invoked when receiving the response.
833+
>>> def callback_function(response):
834+
>>> pprint(response)
835+
>>>
836+
>>> thread = api.get_bulk_send_batches(account_id, callback=callback_function)
837+
838+
:param callback function: The callback function
839+
for asynchronous request. (optional)
840+
:param str account_id: The external account number (int) or account ID Guid. (required)
841+
:param str batch_ids:
842+
:param str count:
843+
:param str start_position:
844+
:param str status:
845+
:return: BulkSendBatchSummaries
846+
If the method is called asynchronously,
847+
returns the request thread.
848+
"""
849+
kwargs['_return_http_data_only'] = True
850+
if kwargs.get('callback'):
851+
return self.get_bulk_send_batches_with_http_info(account_id, **kwargs)
852+
else:
853+
(data) = self.get_bulk_send_batches_with_http_info(account_id, **kwargs)
854+
return data
855+
856+
def get_bulk_send_batches_with_http_info(self, account_id, **kwargs):
857+
"""
858+
Returns a list of bulk send batch satuses initiated by account.
859+
This method makes a synchronous HTTP request by default. To make an
860+
asynchronous HTTP request, please define a `callback` function
861+
to be invoked when receiving the response.
862+
>>> def callback_function(response):
863+
>>> pprint(response)
864+
>>>
865+
>>> thread = api.get_bulk_send_batches_with_http_info(account_id, callback=callback_function)
866+
867+
:param callback function: The callback function
868+
for asynchronous request. (optional)
869+
:param str account_id: The external account number (int) or account ID Guid. (required)
870+
:param str batch_ids:
871+
:param str count:
872+
:param str start_position:
873+
:param str status:
874+
:return: BulkSendBatchSummaries
875+
If the method is called asynchronously,
876+
returns the request thread.
877+
"""
878+
879+
all_params = ['account_id', 'batch_ids', 'count', 'start_position', 'status']
880+
all_params.append('callback')
881+
all_params.append('_return_http_data_only')
882+
all_params.append('_preload_content')
883+
all_params.append('_request_timeout')
884+
885+
params = locals()
886+
for key, val in iteritems(params['kwargs']):
887+
if key not in all_params:
888+
raise TypeError(
889+
"Got an unexpected keyword argument '%s'"
890+
" to method get_bulk_send_batches" % key
891+
)
892+
params[key] = val
893+
del params['kwargs']
894+
# verify the required parameter 'account_id' is set
895+
if ('account_id' not in params) or (params['account_id'] is None):
896+
raise ValueError("Missing the required parameter `account_id` when calling `get_bulk_send_batches`")
897+
898+
899+
collection_formats = {}
900+
901+
resource_path = '/v2.1/accounts/{accountId}/bulk_send_batch'.replace('{format}', 'json')
902+
path_params = {}
903+
if 'account_id' in params:
904+
path_params['accountId'] = params['account_id']
905+
906+
query_params = {}
907+
if 'batch_ids' in params:
908+
query_params['batch_ids'] = params['batch_ids']
909+
if 'count' in params:
910+
query_params['count'] = params['count']
911+
if 'start_position' in params:
912+
query_params['start_position'] = params['start_position']
913+
if 'status' in params:
914+
query_params['status'] = params['status']
915+
916+
header_params = {}
917+
918+
form_params = []
919+
local_var_files = {}
920+
921+
body_params = None
922+
# HTTP header `Accept`
923+
header_params['Accept'] = self.api_client.\
924+
select_header_accept(['application/json'])
925+
926+
# Authentication setting
927+
auth_settings = []
928+
929+
return self.api_client.call_api(resource_path, 'GET',
930+
path_params,
931+
query_params,
932+
header_params,
933+
body=body_params,
934+
post_params=form_params,
935+
files=local_var_files,
936+
response_type='BulkSendBatchSummaries',
937+
auth_settings=auth_settings,
938+
callback=params.get('callback'),
939+
_return_http_data_only=params.get('_return_http_data_only'),
940+
_preload_content=params.get('_preload_content', True),
941+
_request_timeout=params.get('_request_timeout'),
942+
collection_formats=collection_formats)
943+
719944
def get_bulk_send_list(self, account_id, bulk_send_list_id, **kwargs):
720945
"""
721946
Gets a specific bulk send list
@@ -1066,7 +1291,6 @@ def list(self, account_id, **kwargs):
10661291
for asynchronous request. (optional)
10671292
:param str account_id: The external account number (int) or account ID Guid. (required)
10681293
:param str count: The number of results to return. This can be 1 to 20.
1069-
:param str include:
10701294
:param str start_position: The position of the bulk envelope items in the response. This is used for repeated calls, when the number of bulk envelopes returned is too large for one return. The default value is 0.
10711295
:return: BulkEnvelopesResponse
10721296
If the method is called asynchronously,
@@ -1095,14 +1319,13 @@ def list_with_http_info(self, account_id, **kwargs):
10951319
for asynchronous request. (optional)
10961320
:param str account_id: The external account number (int) or account ID Guid. (required)
10971321
:param str count: The number of results to return. This can be 1 to 20.
1098-
:param str include:
10991322
:param str start_position: The position of the bulk envelope items in the response. This is used for repeated calls, when the number of bulk envelopes returned is too large for one return. The default value is 0.
11001323
:return: BulkEnvelopesResponse
11011324
If the method is called asynchronously,
11021325
returns the request thread.
11031326
"""
11041327

1105-
all_params = ['account_id', 'count', 'include', 'start_position']
1328+
all_params = ['account_id', 'count', 'start_position']
11061329
all_params.append('callback')
11071330
all_params.append('_return_http_data_only')
11081331
all_params.append('_preload_content')
@@ -1132,8 +1355,6 @@ def list_with_http_info(self, account_id, **kwargs):
11321355
query_params = {}
11331356
if 'count' in params:
11341357
query_params['count'] = params['count']
1135-
if 'include' in params:
1136-
query_params['include'] = params['include']
11371358
if 'start_position' in params:
11381359
query_params['start_position'] = params['start_position']
11391360

0 commit comments

Comments
 (0)