docusign_esign.apis.bulk_process_data_send_api

DocuSign REST API

The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    DocuSign REST API
  5
  6    The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14from __future__ import absolute_import
 15
 16import sys
 17import os
 18import re
 19
 20# python 2 and python 3 compatibility library
 21from six import iteritems
 22
 23from ..client.configuration import Configuration
 24from ..client.api_client import ApiClient
 25
 26
 27class BulkProcessDataSendApi(object):
 28    """
 29    NOTE: This class is auto generated by the swagger code generator program.
 30    Do not edit the class manually.
 31    Ref: https://github.com/swagger-api/swagger-codegen
 32    """
 33
 34    def __init__(self, api_client=None):
 35        config = Configuration()
 36        if api_client:
 37            self.api_client = api_client
 38        else:
 39            if not config.api_client:
 40                config.api_client = ApiClient()
 41            self.api_client = config.api_client
 42
 43    def create_bulk_process_request_to_queue(self, account_id, bulk_process_list_id, process_action, **kwargs):
 44        """
 45        Uses the specified bulk envelopes list to update the envelopes specified in the payload
 46        
 47        This method makes a synchronous HTTP request by default. To make an
 48        asynchronous HTTP request, please define a `callback` function
 49        to be invoked when receiving the response.
 50        >>> def callback_function(response):
 51        >>>     pprint(response)
 52        >>>
 53        >>> thread = api.create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, callback=callback_function)
 54
 55        :param callback function: The callback function
 56            for asynchronous request. (optional)
 57        :param str account_id: The external account number (int) or account ID Guid. (required)
 58        :param str bulk_process_list_id: (required)
 59        :param str process_action: (required)
 60        :param BulkProcessRequest bulk_process_request:
 61        :return: BulkProcessResponse
 62                 If the method is called asynchronously,
 63                 returns the request thread.
 64        """
 65        kwargs['_return_http_data_only'] = True
 66        if kwargs.get('callback'):
 67            return self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
 68        else:
 69            (data) = self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
 70            return data
 71
 72    def create_bulk_process_request_to_queue_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
 73        """
 74        Uses the specified bulk envelopes list to update the envelopes specified in the payload
 75        
 76        This method makes a synchronous HTTP request by default. To make an
 77        asynchronous HTTP request, please define a `callback` function
 78        to be invoked when receiving the response.
 79        >>> def callback_function(response):
 80        >>>     pprint(response)
 81        >>>
 82        >>> thread = api.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
 83
 84        :param callback function: The callback function
 85            for asynchronous request. (optional)
 86        :param str account_id: The external account number (int) or account ID Guid. (required)
 87        :param str bulk_process_list_id: (required)
 88        :param str process_action: (required)
 89        :param BulkProcessRequest bulk_process_request:
 90        :return: BulkProcessResponse
 91                 If the method is called asynchronously,
 92                 returns the request thread.
 93        """
 94
 95        all_params = ['account_id', 'bulk_process_list_id', 'process_action', 'bulk_process_request']
 96        all_params.append('callback')
 97        all_params.append('_return_http_data_only')
 98        all_params.append('_preload_content')
 99        all_params.append('_request_timeout')
100
101        params = locals()
102        for key, val in iteritems(params['kwargs']):
103            if key not in all_params:
104                raise TypeError(
105                    "Got an unexpected keyword argument '%s'"
106                    " to method create_bulk_process_request_to_queue" % key
107                )
108            params[key] = val
109        del params['kwargs']
110        # verify the required parameter 'account_id' is set
111        if ('account_id' not in params) or (params['account_id'] is None):
112            raise ValueError("Missing the required parameter `account_id` when calling `create_bulk_process_request_to_queue`")
113        # verify the required parameter 'bulk_process_list_id' is set
114        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
115            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `create_bulk_process_request_to_queue`")
116        # verify the required parameter 'process_action' is set
117        if ('process_action' not in params) or (params['process_action'] is None):
118            raise ValueError("Missing the required parameter `process_action` when calling `create_bulk_process_request_to_queue`")
119
120
121        collection_formats = {}
122
123        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
124        path_params = {}
125        if 'account_id' in params:
126            path_params['accountId'] = params['account_id']
127        if 'bulk_process_list_id' in params:
128            path_params['bulkProcessListId'] = params['bulk_process_list_id']
129        if 'process_action' in params:
130            path_params['processAction'] = params['process_action']
131
132        query_params = {}
133
134        header_params = {}
135
136        form_params = []
137        local_var_files = {}
138
139        body_params = None
140        if 'bulk_process_request' in params:
141            body_params = params['bulk_process_request']
142        # HTTP header `Accept`
143        header_params['Accept'] = self.api_client.\
144            select_header_accept(['application/json'])
145
146        # Authentication setting
147        auth_settings = []
148
149        return self.api_client.call_api(resource_path, 'POST',
150                                        path_params,
151                                        query_params,
152                                        header_params,
153                                        body=body_params,
154                                        post_params=form_params,
155                                        files=local_var_files,
156                                        response_type='BulkProcessResponse',
157                                        auth_settings=auth_settings,
158                                        callback=params.get('callback'),
159                                        _return_http_data_only=params.get('_return_http_data_only'),
160                                        _preload_content=params.get('_preload_content', True),
161                                        _request_timeout=params.get('_request_timeout'),
162                                        collection_formats=collection_formats)
163
164    def delete_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
165        """
166        Deletes a specific bulk process list
167        
168        This method makes a synchronous HTTP request by default. To make an
169        asynchronous HTTP request, please define a `callback` function
170        to be invoked when receiving the response.
171        >>> def callback_function(response):
172        >>>     pprint(response)
173        >>>
174        >>> thread = api.delete_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
175
176        :param callback function: The callback function
177            for asynchronous request. (optional)
178        :param str account_id: The external account number (int) or account ID Guid. (required)
179        :param str bulk_process_list_id: (required)
180        :param str process_action: (required)
181        :return: BulkProcessResult
182                 If the method is called asynchronously,
183                 returns the request thread.
184        """
185        kwargs['_return_http_data_only'] = True
186        if kwargs.get('callback'):
187            return self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
188        else:
189            (data) = self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
190            return data
191
192    def delete_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
193        """
194        Deletes a specific bulk process list
195        
196        This method makes a synchronous HTTP request by default. To make an
197        asynchronous HTTP request, please define a `callback` function
198        to be invoked when receiving the response.
199        >>> def callback_function(response):
200        >>>     pprint(response)
201        >>>
202        >>> thread = api.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
203
204        :param callback function: The callback function
205            for asynchronous request. (optional)
206        :param str account_id: The external account number (int) or account ID Guid. (required)
207        :param str bulk_process_list_id: (required)
208        :param str process_action: (required)
209        :return: BulkProcessResult
210                 If the method is called asynchronously,
211                 returns the request thread.
212        """
213
214        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
215        all_params.append('callback')
216        all_params.append('_return_http_data_only')
217        all_params.append('_preload_content')
218        all_params.append('_request_timeout')
219
220        params = locals()
221        for key, val in iteritems(params['kwargs']):
222            if key not in all_params:
223                raise TypeError(
224                    "Got an unexpected keyword argument '%s'"
225                    " to method delete_bulk_process_list" % key
226                )
227            params[key] = val
228        del params['kwargs']
229        # verify the required parameter 'account_id' is set
230        if ('account_id' not in params) or (params['account_id'] is None):
231            raise ValueError("Missing the required parameter `account_id` when calling `delete_bulk_process_list`")
232        # verify the required parameter 'bulk_process_list_id' is set
233        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
234            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `delete_bulk_process_list`")
235        # verify the required parameter 'process_action' is set
236        if ('process_action' not in params) or (params['process_action'] is None):
237            raise ValueError("Missing the required parameter `process_action` when calling `delete_bulk_process_list`")
238
239
240        collection_formats = {}
241
242        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
243        path_params = {}
244        if 'account_id' in params:
245            path_params['accountId'] = params['account_id']
246        if 'bulk_process_list_id' in params:
247            path_params['bulkProcessListId'] = params['bulk_process_list_id']
248        if 'process_action' in params:
249            path_params['processAction'] = params['process_action']
250
251        query_params = {}
252
253        header_params = {}
254
255        form_params = []
256        local_var_files = {}
257
258        body_params = None
259        # HTTP header `Accept`
260        header_params['Accept'] = self.api_client.\
261            select_header_accept(['application/json'])
262
263        # Authentication setting
264        auth_settings = []
265
266        return self.api_client.call_api(resource_path, 'DELETE',
267                                        path_params,
268                                        query_params,
269                                        header_params,
270                                        body=body_params,
271                                        post_params=form_params,
272                                        files=local_var_files,
273                                        response_type='BulkProcessResult',
274                                        auth_settings=auth_settings,
275                                        callback=params.get('callback'),
276                                        _return_http_data_only=params.get('_return_http_data_only'),
277                                        _preload_content=params.get('_preload_content', True),
278                                        _request_timeout=params.get('_request_timeout'),
279                                        collection_formats=collection_formats)
280
281    def get_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
282        """
283        Gets a specific bulk process list
284        
285        This method makes a synchronous HTTP request by default. To make an
286        asynchronous HTTP request, please define a `callback` function
287        to be invoked when receiving the response.
288        >>> def callback_function(response):
289        >>>     pprint(response)
290        >>>
291        >>> thread = api.get_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
292
293        :param callback function: The callback function
294            for asynchronous request. (optional)
295        :param str account_id: The external account number (int) or account ID Guid. (required)
296        :param str bulk_process_list_id: (required)
297        :param str process_action: (required)
298        :return: None
299                 If the method is called asynchronously,
300                 returns the request thread.
301        """
302        kwargs['_return_http_data_only'] = True
303        if kwargs.get('callback'):
304            return self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
305        else:
306            (data) = self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
307            return data
308
309    def get_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
310        """
311        Gets a specific bulk process list
312        
313        This method makes a synchronous HTTP request by default. To make an
314        asynchronous HTTP request, please define a `callback` function
315        to be invoked when receiving the response.
316        >>> def callback_function(response):
317        >>>     pprint(response)
318        >>>
319        >>> thread = api.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
320
321        :param callback function: The callback function
322            for asynchronous request. (optional)
323        :param str account_id: The external account number (int) or account ID Guid. (required)
324        :param str bulk_process_list_id: (required)
325        :param str process_action: (required)
326        :return: None
327                 If the method is called asynchronously,
328                 returns the request thread.
329        """
330
331        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
332        all_params.append('callback')
333        all_params.append('_return_http_data_only')
334        all_params.append('_preload_content')
335        all_params.append('_request_timeout')
336
337        params = locals()
338        for key, val in iteritems(params['kwargs']):
339            if key not in all_params:
340                raise TypeError(
341                    "Got an unexpected keyword argument '%s'"
342                    " to method get_bulk_process_list" % key
343                )
344            params[key] = val
345        del params['kwargs']
346        # verify the required parameter 'account_id' is set
347        if ('account_id' not in params) or (params['account_id'] is None):
348            raise ValueError("Missing the required parameter `account_id` when calling `get_bulk_process_list`")
349        # verify the required parameter 'bulk_process_list_id' is set
350        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
351            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `get_bulk_process_list`")
352        # verify the required parameter 'process_action' is set
353        if ('process_action' not in params) or (params['process_action'] is None):
354            raise ValueError("Missing the required parameter `process_action` when calling `get_bulk_process_list`")
355
356
357        collection_formats = {}
358
359        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
360        path_params = {}
361        if 'account_id' in params:
362            path_params['accountId'] = params['account_id']
363        if 'bulk_process_list_id' in params:
364            path_params['bulkProcessListId'] = params['bulk_process_list_id']
365        if 'process_action' in params:
366            path_params['processAction'] = params['process_action']
367
368        query_params = {}
369
370        header_params = {}
371
372        form_params = []
373        local_var_files = {}
374
375        body_params = None
376        # HTTP header `Accept`
377        header_params['Accept'] = self.api_client.\
378            select_header_accept(['application/json'])
379
380        # Authentication setting
381        auth_settings = []
382
383        return self.api_client.call_api(resource_path, 'GET',
384                                        path_params,
385                                        query_params,
386                                        header_params,
387                                        body=body_params,
388                                        post_params=form_params,
389                                        files=local_var_files,
390                                        response_type=None,
391                                        auth_settings=auth_settings,
392                                        callback=params.get('callback'),
393                                        _return_http_data_only=params.get('_return_http_data_only'),
394                                        _preload_content=params.get('_preload_content', True),
395                                        _request_timeout=params.get('_request_timeout'),
396                                        collection_formats=collection_formats)
397
398    def update_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
399        """
400        Updates a specific bulk process list
401        
402        This method makes a synchronous HTTP request by default. To make an
403        asynchronous HTTP request, please define a `callback` function
404        to be invoked when receiving the response.
405        >>> def callback_function(response):
406        >>>     pprint(response)
407        >>>
408        >>> thread = api.update_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
409
410        :param callback function: The callback function
411            for asynchronous request. (optional)
412        :param str account_id: The external account number (int) or account ID Guid. (required)
413        :param str bulk_process_list_id: (required)
414        :param str process_action: (required)
415        :return: None
416                 If the method is called asynchronously,
417                 returns the request thread.
418        """
419        kwargs['_return_http_data_only'] = True
420        if kwargs.get('callback'):
421            return self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
422        else:
423            (data) = self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
424            return data
425
426    def update_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
427        """
428        Updates a specific bulk process list
429        
430        This method makes a synchronous HTTP request by default. To make an
431        asynchronous HTTP request, please define a `callback` function
432        to be invoked when receiving the response.
433        >>> def callback_function(response):
434        >>>     pprint(response)
435        >>>
436        >>> thread = api.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
437
438        :param callback function: The callback function
439            for asynchronous request. (optional)
440        :param str account_id: The external account number (int) or account ID Guid. (required)
441        :param str bulk_process_list_id: (required)
442        :param str process_action: (required)
443        :return: None
444                 If the method is called asynchronously,
445                 returns the request thread.
446        """
447
448        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
449        all_params.append('callback')
450        all_params.append('_return_http_data_only')
451        all_params.append('_preload_content')
452        all_params.append('_request_timeout')
453
454        params = locals()
455        for key, val in iteritems(params['kwargs']):
456            if key not in all_params:
457                raise TypeError(
458                    "Got an unexpected keyword argument '%s'"
459                    " to method update_bulk_process_list" % key
460                )
461            params[key] = val
462        del params['kwargs']
463        # verify the required parameter 'account_id' is set
464        if ('account_id' not in params) or (params['account_id'] is None):
465            raise ValueError("Missing the required parameter `account_id` when calling `update_bulk_process_list`")
466        # verify the required parameter 'bulk_process_list_id' is set
467        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
468            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `update_bulk_process_list`")
469        # verify the required parameter 'process_action' is set
470        if ('process_action' not in params) or (params['process_action'] is None):
471            raise ValueError("Missing the required parameter `process_action` when calling `update_bulk_process_list`")
472
473
474        collection_formats = {}
475
476        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
477        path_params = {}
478        if 'account_id' in params:
479            path_params['accountId'] = params['account_id']
480        if 'bulk_process_list_id' in params:
481            path_params['bulkProcessListId'] = params['bulk_process_list_id']
482        if 'process_action' in params:
483            path_params['processAction'] = params['process_action']
484
485        query_params = {}
486
487        header_params = {}
488
489        form_params = []
490        local_var_files = {}
491
492        body_params = None
493        # HTTP header `Accept`
494        header_params['Accept'] = self.api_client.\
495            select_header_accept(['application/json'])
496
497        # Authentication setting
498        auth_settings = []
499
500        return self.api_client.call_api(resource_path, 'PUT',
501                                        path_params,
502                                        query_params,
503                                        header_params,
504                                        body=body_params,
505                                        post_params=form_params,
506                                        files=local_var_files,
507                                        response_type=None,
508                                        auth_settings=auth_settings,
509                                        callback=params.get('callback'),
510                                        _return_http_data_only=params.get('_return_http_data_only'),
511                                        _preload_content=params.get('_preload_content', True),
512                                        _request_timeout=params.get('_request_timeout'),
513                                        collection_formats=collection_formats)
class BulkProcessDataSendApi:
 28class BulkProcessDataSendApi(object):
 29    """
 30    NOTE: This class is auto generated by the swagger code generator program.
 31    Do not edit the class manually.
 32    Ref: https://github.com/swagger-api/swagger-codegen
 33    """
 34
 35    def __init__(self, api_client=None):
 36        config = Configuration()
 37        if api_client:
 38            self.api_client = api_client
 39        else:
 40            if not config.api_client:
 41                config.api_client = ApiClient()
 42            self.api_client = config.api_client
 43
 44    def create_bulk_process_request_to_queue(self, account_id, bulk_process_list_id, process_action, **kwargs):
 45        """
 46        Uses the specified bulk envelopes list to update the envelopes specified in the payload
 47        
 48        This method makes a synchronous HTTP request by default. To make an
 49        asynchronous HTTP request, please define a `callback` function
 50        to be invoked when receiving the response.
 51        >>> def callback_function(response):
 52        >>>     pprint(response)
 53        >>>
 54        >>> thread = api.create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, callback=callback_function)
 55
 56        :param callback function: The callback function
 57            for asynchronous request. (optional)
 58        :param str account_id: The external account number (int) or account ID Guid. (required)
 59        :param str bulk_process_list_id: (required)
 60        :param str process_action: (required)
 61        :param BulkProcessRequest bulk_process_request:
 62        :return: BulkProcessResponse
 63                 If the method is called asynchronously,
 64                 returns the request thread.
 65        """
 66        kwargs['_return_http_data_only'] = True
 67        if kwargs.get('callback'):
 68            return self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
 69        else:
 70            (data) = self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
 71            return data
 72
 73    def create_bulk_process_request_to_queue_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
 74        """
 75        Uses the specified bulk envelopes list to update the envelopes specified in the payload
 76        
 77        This method makes a synchronous HTTP request by default. To make an
 78        asynchronous HTTP request, please define a `callback` function
 79        to be invoked when receiving the response.
 80        >>> def callback_function(response):
 81        >>>     pprint(response)
 82        >>>
 83        >>> thread = api.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
 84
 85        :param callback function: The callback function
 86            for asynchronous request. (optional)
 87        :param str account_id: The external account number (int) or account ID Guid. (required)
 88        :param str bulk_process_list_id: (required)
 89        :param str process_action: (required)
 90        :param BulkProcessRequest bulk_process_request:
 91        :return: BulkProcessResponse
 92                 If the method is called asynchronously,
 93                 returns the request thread.
 94        """
 95
 96        all_params = ['account_id', 'bulk_process_list_id', 'process_action', 'bulk_process_request']
 97        all_params.append('callback')
 98        all_params.append('_return_http_data_only')
 99        all_params.append('_preload_content')
100        all_params.append('_request_timeout')
101
102        params = locals()
103        for key, val in iteritems(params['kwargs']):
104            if key not in all_params:
105                raise TypeError(
106                    "Got an unexpected keyword argument '%s'"
107                    " to method create_bulk_process_request_to_queue" % key
108                )
109            params[key] = val
110        del params['kwargs']
111        # verify the required parameter 'account_id' is set
112        if ('account_id' not in params) or (params['account_id'] is None):
113            raise ValueError("Missing the required parameter `account_id` when calling `create_bulk_process_request_to_queue`")
114        # verify the required parameter 'bulk_process_list_id' is set
115        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
116            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `create_bulk_process_request_to_queue`")
117        # verify the required parameter 'process_action' is set
118        if ('process_action' not in params) or (params['process_action'] is None):
119            raise ValueError("Missing the required parameter `process_action` when calling `create_bulk_process_request_to_queue`")
120
121
122        collection_formats = {}
123
124        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
125        path_params = {}
126        if 'account_id' in params:
127            path_params['accountId'] = params['account_id']
128        if 'bulk_process_list_id' in params:
129            path_params['bulkProcessListId'] = params['bulk_process_list_id']
130        if 'process_action' in params:
131            path_params['processAction'] = params['process_action']
132
133        query_params = {}
134
135        header_params = {}
136
137        form_params = []
138        local_var_files = {}
139
140        body_params = None
141        if 'bulk_process_request' in params:
142            body_params = params['bulk_process_request']
143        # HTTP header `Accept`
144        header_params['Accept'] = self.api_client.\
145            select_header_accept(['application/json'])
146
147        # Authentication setting
148        auth_settings = []
149
150        return self.api_client.call_api(resource_path, 'POST',
151                                        path_params,
152                                        query_params,
153                                        header_params,
154                                        body=body_params,
155                                        post_params=form_params,
156                                        files=local_var_files,
157                                        response_type='BulkProcessResponse',
158                                        auth_settings=auth_settings,
159                                        callback=params.get('callback'),
160                                        _return_http_data_only=params.get('_return_http_data_only'),
161                                        _preload_content=params.get('_preload_content', True),
162                                        _request_timeout=params.get('_request_timeout'),
163                                        collection_formats=collection_formats)
164
165    def delete_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
166        """
167        Deletes a specific bulk process list
168        
169        This method makes a synchronous HTTP request by default. To make an
170        asynchronous HTTP request, please define a `callback` function
171        to be invoked when receiving the response.
172        >>> def callback_function(response):
173        >>>     pprint(response)
174        >>>
175        >>> thread = api.delete_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
176
177        :param callback function: The callback function
178            for asynchronous request. (optional)
179        :param str account_id: The external account number (int) or account ID Guid. (required)
180        :param str bulk_process_list_id: (required)
181        :param str process_action: (required)
182        :return: BulkProcessResult
183                 If the method is called asynchronously,
184                 returns the request thread.
185        """
186        kwargs['_return_http_data_only'] = True
187        if kwargs.get('callback'):
188            return self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
189        else:
190            (data) = self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
191            return data
192
193    def delete_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
194        """
195        Deletes a specific bulk process list
196        
197        This method makes a synchronous HTTP request by default. To make an
198        asynchronous HTTP request, please define a `callback` function
199        to be invoked when receiving the response.
200        >>> def callback_function(response):
201        >>>     pprint(response)
202        >>>
203        >>> thread = api.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
204
205        :param callback function: The callback function
206            for asynchronous request. (optional)
207        :param str account_id: The external account number (int) or account ID Guid. (required)
208        :param str bulk_process_list_id: (required)
209        :param str process_action: (required)
210        :return: BulkProcessResult
211                 If the method is called asynchronously,
212                 returns the request thread.
213        """
214
215        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
216        all_params.append('callback')
217        all_params.append('_return_http_data_only')
218        all_params.append('_preload_content')
219        all_params.append('_request_timeout')
220
221        params = locals()
222        for key, val in iteritems(params['kwargs']):
223            if key not in all_params:
224                raise TypeError(
225                    "Got an unexpected keyword argument '%s'"
226                    " to method delete_bulk_process_list" % key
227                )
228            params[key] = val
229        del params['kwargs']
230        # verify the required parameter 'account_id' is set
231        if ('account_id' not in params) or (params['account_id'] is None):
232            raise ValueError("Missing the required parameter `account_id` when calling `delete_bulk_process_list`")
233        # verify the required parameter 'bulk_process_list_id' is set
234        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
235            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `delete_bulk_process_list`")
236        # verify the required parameter 'process_action' is set
237        if ('process_action' not in params) or (params['process_action'] is None):
238            raise ValueError("Missing the required parameter `process_action` when calling `delete_bulk_process_list`")
239
240
241        collection_formats = {}
242
243        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
244        path_params = {}
245        if 'account_id' in params:
246            path_params['accountId'] = params['account_id']
247        if 'bulk_process_list_id' in params:
248            path_params['bulkProcessListId'] = params['bulk_process_list_id']
249        if 'process_action' in params:
250            path_params['processAction'] = params['process_action']
251
252        query_params = {}
253
254        header_params = {}
255
256        form_params = []
257        local_var_files = {}
258
259        body_params = None
260        # HTTP header `Accept`
261        header_params['Accept'] = self.api_client.\
262            select_header_accept(['application/json'])
263
264        # Authentication setting
265        auth_settings = []
266
267        return self.api_client.call_api(resource_path, 'DELETE',
268                                        path_params,
269                                        query_params,
270                                        header_params,
271                                        body=body_params,
272                                        post_params=form_params,
273                                        files=local_var_files,
274                                        response_type='BulkProcessResult',
275                                        auth_settings=auth_settings,
276                                        callback=params.get('callback'),
277                                        _return_http_data_only=params.get('_return_http_data_only'),
278                                        _preload_content=params.get('_preload_content', True),
279                                        _request_timeout=params.get('_request_timeout'),
280                                        collection_formats=collection_formats)
281
282    def get_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
283        """
284        Gets a specific bulk process list
285        
286        This method makes a synchronous HTTP request by default. To make an
287        asynchronous HTTP request, please define a `callback` function
288        to be invoked when receiving the response.
289        >>> def callback_function(response):
290        >>>     pprint(response)
291        >>>
292        >>> thread = api.get_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
293
294        :param callback function: The callback function
295            for asynchronous request. (optional)
296        :param str account_id: The external account number (int) or account ID Guid. (required)
297        :param str bulk_process_list_id: (required)
298        :param str process_action: (required)
299        :return: None
300                 If the method is called asynchronously,
301                 returns the request thread.
302        """
303        kwargs['_return_http_data_only'] = True
304        if kwargs.get('callback'):
305            return self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
306        else:
307            (data) = self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
308            return data
309
310    def get_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
311        """
312        Gets a specific bulk process list
313        
314        This method makes a synchronous HTTP request by default. To make an
315        asynchronous HTTP request, please define a `callback` function
316        to be invoked when receiving the response.
317        >>> def callback_function(response):
318        >>>     pprint(response)
319        >>>
320        >>> thread = api.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
321
322        :param callback function: The callback function
323            for asynchronous request. (optional)
324        :param str account_id: The external account number (int) or account ID Guid. (required)
325        :param str bulk_process_list_id: (required)
326        :param str process_action: (required)
327        :return: None
328                 If the method is called asynchronously,
329                 returns the request thread.
330        """
331
332        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
333        all_params.append('callback')
334        all_params.append('_return_http_data_only')
335        all_params.append('_preload_content')
336        all_params.append('_request_timeout')
337
338        params = locals()
339        for key, val in iteritems(params['kwargs']):
340            if key not in all_params:
341                raise TypeError(
342                    "Got an unexpected keyword argument '%s'"
343                    " to method get_bulk_process_list" % key
344                )
345            params[key] = val
346        del params['kwargs']
347        # verify the required parameter 'account_id' is set
348        if ('account_id' not in params) or (params['account_id'] is None):
349            raise ValueError("Missing the required parameter `account_id` when calling `get_bulk_process_list`")
350        # verify the required parameter 'bulk_process_list_id' is set
351        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
352            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `get_bulk_process_list`")
353        # verify the required parameter 'process_action' is set
354        if ('process_action' not in params) or (params['process_action'] is None):
355            raise ValueError("Missing the required parameter `process_action` when calling `get_bulk_process_list`")
356
357
358        collection_formats = {}
359
360        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
361        path_params = {}
362        if 'account_id' in params:
363            path_params['accountId'] = params['account_id']
364        if 'bulk_process_list_id' in params:
365            path_params['bulkProcessListId'] = params['bulk_process_list_id']
366        if 'process_action' in params:
367            path_params['processAction'] = params['process_action']
368
369        query_params = {}
370
371        header_params = {}
372
373        form_params = []
374        local_var_files = {}
375
376        body_params = None
377        # HTTP header `Accept`
378        header_params['Accept'] = self.api_client.\
379            select_header_accept(['application/json'])
380
381        # Authentication setting
382        auth_settings = []
383
384        return self.api_client.call_api(resource_path, 'GET',
385                                        path_params,
386                                        query_params,
387                                        header_params,
388                                        body=body_params,
389                                        post_params=form_params,
390                                        files=local_var_files,
391                                        response_type=None,
392                                        auth_settings=auth_settings,
393                                        callback=params.get('callback'),
394                                        _return_http_data_only=params.get('_return_http_data_only'),
395                                        _preload_content=params.get('_preload_content', True),
396                                        _request_timeout=params.get('_request_timeout'),
397                                        collection_formats=collection_formats)
398
399    def update_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
400        """
401        Updates a specific bulk process list
402        
403        This method makes a synchronous HTTP request by default. To make an
404        asynchronous HTTP request, please define a `callback` function
405        to be invoked when receiving the response.
406        >>> def callback_function(response):
407        >>>     pprint(response)
408        >>>
409        >>> thread = api.update_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
410
411        :param callback function: The callback function
412            for asynchronous request. (optional)
413        :param str account_id: The external account number (int) or account ID Guid. (required)
414        :param str bulk_process_list_id: (required)
415        :param str process_action: (required)
416        :return: None
417                 If the method is called asynchronously,
418                 returns the request thread.
419        """
420        kwargs['_return_http_data_only'] = True
421        if kwargs.get('callback'):
422            return self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
423        else:
424            (data) = self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
425            return data
426
427    def update_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
428        """
429        Updates a specific bulk process list
430        
431        This method makes a synchronous HTTP request by default. To make an
432        asynchronous HTTP request, please define a `callback` function
433        to be invoked when receiving the response.
434        >>> def callback_function(response):
435        >>>     pprint(response)
436        >>>
437        >>> thread = api.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
438
439        :param callback function: The callback function
440            for asynchronous request. (optional)
441        :param str account_id: The external account number (int) or account ID Guid. (required)
442        :param str bulk_process_list_id: (required)
443        :param str process_action: (required)
444        :return: None
445                 If the method is called asynchronously,
446                 returns the request thread.
447        """
448
449        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
450        all_params.append('callback')
451        all_params.append('_return_http_data_only')
452        all_params.append('_preload_content')
453        all_params.append('_request_timeout')
454
455        params = locals()
456        for key, val in iteritems(params['kwargs']):
457            if key not in all_params:
458                raise TypeError(
459                    "Got an unexpected keyword argument '%s'"
460                    " to method update_bulk_process_list" % key
461                )
462            params[key] = val
463        del params['kwargs']
464        # verify the required parameter 'account_id' is set
465        if ('account_id' not in params) or (params['account_id'] is None):
466            raise ValueError("Missing the required parameter `account_id` when calling `update_bulk_process_list`")
467        # verify the required parameter 'bulk_process_list_id' is set
468        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
469            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `update_bulk_process_list`")
470        # verify the required parameter 'process_action' is set
471        if ('process_action' not in params) or (params['process_action'] is None):
472            raise ValueError("Missing the required parameter `process_action` when calling `update_bulk_process_list`")
473
474
475        collection_formats = {}
476
477        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
478        path_params = {}
479        if 'account_id' in params:
480            path_params['accountId'] = params['account_id']
481        if 'bulk_process_list_id' in params:
482            path_params['bulkProcessListId'] = params['bulk_process_list_id']
483        if 'process_action' in params:
484            path_params['processAction'] = params['process_action']
485
486        query_params = {}
487
488        header_params = {}
489
490        form_params = []
491        local_var_files = {}
492
493        body_params = None
494        # HTTP header `Accept`
495        header_params['Accept'] = self.api_client.\
496            select_header_accept(['application/json'])
497
498        # Authentication setting
499        auth_settings = []
500
501        return self.api_client.call_api(resource_path, 'PUT',
502                                        path_params,
503                                        query_params,
504                                        header_params,
505                                        body=body_params,
506                                        post_params=form_params,
507                                        files=local_var_files,
508                                        response_type=None,
509                                        auth_settings=auth_settings,
510                                        callback=params.get('callback'),
511                                        _return_http_data_only=params.get('_return_http_data_only'),
512                                        _preload_content=params.get('_preload_content', True),
513                                        _request_timeout=params.get('_request_timeout'),
514                                        collection_formats=collection_formats)

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

BulkProcessDataSendApi(api_client=None)
35    def __init__(self, api_client=None):
36        config = Configuration()
37        if api_client:
38            self.api_client = api_client
39        else:
40            if not config.api_client:
41                config.api_client = ApiClient()
42            self.api_client = config.api_client
def create_bulk_process_request_to_queue(self, account_id, bulk_process_list_id, process_action, **kwargs)
44    def create_bulk_process_request_to_queue(self, account_id, bulk_process_list_id, process_action, **kwargs):
45        """
46        Uses the specified bulk envelopes list to update the envelopes specified in the payload
47        
48        This method makes a synchronous HTTP request by default. To make an
49        asynchronous HTTP request, please define a `callback` function
50        to be invoked when receiving the response.
51        >>> def callback_function(response):
52        >>>     pprint(response)
53        >>>
54        >>> thread = api.create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, callback=callback_function)
55
56        :param callback function: The callback function
57            for asynchronous request. (optional)
58        :param str account_id: The external account number (int) or account ID Guid. (required)
59        :param str bulk_process_list_id: (required)
60        :param str process_action: (required)
61        :param BulkProcessRequest bulk_process_request:
62        :return: BulkProcessResponse
63                 If the method is called asynchronously,
64                 returns the request thread.
65        """
66        kwargs['_return_http_data_only'] = True
67        if kwargs.get('callback'):
68            return self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
69        else:
70            (data) = self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
71            return data

Uses the specified bulk envelopes list to update the envelopes specified in the payload

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
  • BulkProcessRequest bulk_process_request:
Returns

BulkProcessResponse If the method is called asynchronously, returns the request thread.

def create_bulk_process_request_to_queue_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs)
 73    def create_bulk_process_request_to_queue_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
 74        """
 75        Uses the specified bulk envelopes list to update the envelopes specified in the payload
 76        
 77        This method makes a synchronous HTTP request by default. To make an
 78        asynchronous HTTP request, please define a `callback` function
 79        to be invoked when receiving the response.
 80        >>> def callback_function(response):
 81        >>>     pprint(response)
 82        >>>
 83        >>> thread = api.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
 84
 85        :param callback function: The callback function
 86            for asynchronous request. (optional)
 87        :param str account_id: The external account number (int) or account ID Guid. (required)
 88        :param str bulk_process_list_id: (required)
 89        :param str process_action: (required)
 90        :param BulkProcessRequest bulk_process_request:
 91        :return: BulkProcessResponse
 92                 If the method is called asynchronously,
 93                 returns the request thread.
 94        """
 95
 96        all_params = ['account_id', 'bulk_process_list_id', 'process_action', 'bulk_process_request']
 97        all_params.append('callback')
 98        all_params.append('_return_http_data_only')
 99        all_params.append('_preload_content')
100        all_params.append('_request_timeout')
101
102        params = locals()
103        for key, val in iteritems(params['kwargs']):
104            if key not in all_params:
105                raise TypeError(
106                    "Got an unexpected keyword argument '%s'"
107                    " to method create_bulk_process_request_to_queue" % key
108                )
109            params[key] = val
110        del params['kwargs']
111        # verify the required parameter 'account_id' is set
112        if ('account_id' not in params) or (params['account_id'] is None):
113            raise ValueError("Missing the required parameter `account_id` when calling `create_bulk_process_request_to_queue`")
114        # verify the required parameter 'bulk_process_list_id' is set
115        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
116            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `create_bulk_process_request_to_queue`")
117        # verify the required parameter 'process_action' is set
118        if ('process_action' not in params) or (params['process_action'] is None):
119            raise ValueError("Missing the required parameter `process_action` when calling `create_bulk_process_request_to_queue`")
120
121
122        collection_formats = {}
123
124        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
125        path_params = {}
126        if 'account_id' in params:
127            path_params['accountId'] = params['account_id']
128        if 'bulk_process_list_id' in params:
129            path_params['bulkProcessListId'] = params['bulk_process_list_id']
130        if 'process_action' in params:
131            path_params['processAction'] = params['process_action']
132
133        query_params = {}
134
135        header_params = {}
136
137        form_params = []
138        local_var_files = {}
139
140        body_params = None
141        if 'bulk_process_request' in params:
142            body_params = params['bulk_process_request']
143        # HTTP header `Accept`
144        header_params['Accept'] = self.api_client.\
145            select_header_accept(['application/json'])
146
147        # Authentication setting
148        auth_settings = []
149
150        return self.api_client.call_api(resource_path, 'POST',
151                                        path_params,
152                                        query_params,
153                                        header_params,
154                                        body=body_params,
155                                        post_params=form_params,
156                                        files=local_var_files,
157                                        response_type='BulkProcessResponse',
158                                        auth_settings=auth_settings,
159                                        callback=params.get('callback'),
160                                        _return_http_data_only=params.get('_return_http_data_only'),
161                                        _preload_content=params.get('_preload_content', True),
162                                        _request_timeout=params.get('_request_timeout'),
163                                        collection_formats=collection_formats)

Uses the specified bulk envelopes list to update the envelopes specified in the payload

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
  • BulkProcessRequest bulk_process_request:
Returns

BulkProcessResponse If the method is called asynchronously, returns the request thread.

def delete_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs)
165    def delete_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
166        """
167        Deletes a specific bulk process list
168        
169        This method makes a synchronous HTTP request by default. To make an
170        asynchronous HTTP request, please define a `callback` function
171        to be invoked when receiving the response.
172        >>> def callback_function(response):
173        >>>     pprint(response)
174        >>>
175        >>> thread = api.delete_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
176
177        :param callback function: The callback function
178            for asynchronous request. (optional)
179        :param str account_id: The external account number (int) or account ID Guid. (required)
180        :param str bulk_process_list_id: (required)
181        :param str process_action: (required)
182        :return: BulkProcessResult
183                 If the method is called asynchronously,
184                 returns the request thread.
185        """
186        kwargs['_return_http_data_only'] = True
187        if kwargs.get('callback'):
188            return self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
189        else:
190            (data) = self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
191            return data

Deletes a specific bulk process list

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.delete_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
Returns

BulkProcessResult If the method is called asynchronously, returns the request thread.

def delete_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs)
193    def delete_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
194        """
195        Deletes a specific bulk process list
196        
197        This method makes a synchronous HTTP request by default. To make an
198        asynchronous HTTP request, please define a `callback` function
199        to be invoked when receiving the response.
200        >>> def callback_function(response):
201        >>>     pprint(response)
202        >>>
203        >>> thread = api.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
204
205        :param callback function: The callback function
206            for asynchronous request. (optional)
207        :param str account_id: The external account number (int) or account ID Guid. (required)
208        :param str bulk_process_list_id: (required)
209        :param str process_action: (required)
210        :return: BulkProcessResult
211                 If the method is called asynchronously,
212                 returns the request thread.
213        """
214
215        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
216        all_params.append('callback')
217        all_params.append('_return_http_data_only')
218        all_params.append('_preload_content')
219        all_params.append('_request_timeout')
220
221        params = locals()
222        for key, val in iteritems(params['kwargs']):
223            if key not in all_params:
224                raise TypeError(
225                    "Got an unexpected keyword argument '%s'"
226                    " to method delete_bulk_process_list" % key
227                )
228            params[key] = val
229        del params['kwargs']
230        # verify the required parameter 'account_id' is set
231        if ('account_id' not in params) or (params['account_id'] is None):
232            raise ValueError("Missing the required parameter `account_id` when calling `delete_bulk_process_list`")
233        # verify the required parameter 'bulk_process_list_id' is set
234        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
235            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `delete_bulk_process_list`")
236        # verify the required parameter 'process_action' is set
237        if ('process_action' not in params) or (params['process_action'] is None):
238            raise ValueError("Missing the required parameter `process_action` when calling `delete_bulk_process_list`")
239
240
241        collection_formats = {}
242
243        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
244        path_params = {}
245        if 'account_id' in params:
246            path_params['accountId'] = params['account_id']
247        if 'bulk_process_list_id' in params:
248            path_params['bulkProcessListId'] = params['bulk_process_list_id']
249        if 'process_action' in params:
250            path_params['processAction'] = params['process_action']
251
252        query_params = {}
253
254        header_params = {}
255
256        form_params = []
257        local_var_files = {}
258
259        body_params = None
260        # HTTP header `Accept`
261        header_params['Accept'] = self.api_client.\
262            select_header_accept(['application/json'])
263
264        # Authentication setting
265        auth_settings = []
266
267        return self.api_client.call_api(resource_path, 'DELETE',
268                                        path_params,
269                                        query_params,
270                                        header_params,
271                                        body=body_params,
272                                        post_params=form_params,
273                                        files=local_var_files,
274                                        response_type='BulkProcessResult',
275                                        auth_settings=auth_settings,
276                                        callback=params.get('callback'),
277                                        _return_http_data_only=params.get('_return_http_data_only'),
278                                        _preload_content=params.get('_preload_content', True),
279                                        _request_timeout=params.get('_request_timeout'),
280                                        collection_formats=collection_formats)

Deletes a specific bulk process list

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
Returns

BulkProcessResult If the method is called asynchronously, returns the request thread.

def get_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs)
282    def get_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
283        """
284        Gets a specific bulk process list
285        
286        This method makes a synchronous HTTP request by default. To make an
287        asynchronous HTTP request, please define a `callback` function
288        to be invoked when receiving the response.
289        >>> def callback_function(response):
290        >>>     pprint(response)
291        >>>
292        >>> thread = api.get_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
293
294        :param callback function: The callback function
295            for asynchronous request. (optional)
296        :param str account_id: The external account number (int) or account ID Guid. (required)
297        :param str bulk_process_list_id: (required)
298        :param str process_action: (required)
299        :return: None
300                 If the method is called asynchronously,
301                 returns the request thread.
302        """
303        kwargs['_return_http_data_only'] = True
304        if kwargs.get('callback'):
305            return self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
306        else:
307            (data) = self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
308            return data

Gets a specific bulk process list

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.get_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
Returns

None If the method is called asynchronously, returns the request thread.

def get_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs)
310    def get_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
311        """
312        Gets a specific bulk process list
313        
314        This method makes a synchronous HTTP request by default. To make an
315        asynchronous HTTP request, please define a `callback` function
316        to be invoked when receiving the response.
317        >>> def callback_function(response):
318        >>>     pprint(response)
319        >>>
320        >>> thread = api.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
321
322        :param callback function: The callback function
323            for asynchronous request. (optional)
324        :param str account_id: The external account number (int) or account ID Guid. (required)
325        :param str bulk_process_list_id: (required)
326        :param str process_action: (required)
327        :return: None
328                 If the method is called asynchronously,
329                 returns the request thread.
330        """
331
332        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
333        all_params.append('callback')
334        all_params.append('_return_http_data_only')
335        all_params.append('_preload_content')
336        all_params.append('_request_timeout')
337
338        params = locals()
339        for key, val in iteritems(params['kwargs']):
340            if key not in all_params:
341                raise TypeError(
342                    "Got an unexpected keyword argument '%s'"
343                    " to method get_bulk_process_list" % key
344                )
345            params[key] = val
346        del params['kwargs']
347        # verify the required parameter 'account_id' is set
348        if ('account_id' not in params) or (params['account_id'] is None):
349            raise ValueError("Missing the required parameter `account_id` when calling `get_bulk_process_list`")
350        # verify the required parameter 'bulk_process_list_id' is set
351        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
352            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `get_bulk_process_list`")
353        # verify the required parameter 'process_action' is set
354        if ('process_action' not in params) or (params['process_action'] is None):
355            raise ValueError("Missing the required parameter `process_action` when calling `get_bulk_process_list`")
356
357
358        collection_formats = {}
359
360        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
361        path_params = {}
362        if 'account_id' in params:
363            path_params['accountId'] = params['account_id']
364        if 'bulk_process_list_id' in params:
365            path_params['bulkProcessListId'] = params['bulk_process_list_id']
366        if 'process_action' in params:
367            path_params['processAction'] = params['process_action']
368
369        query_params = {}
370
371        header_params = {}
372
373        form_params = []
374        local_var_files = {}
375
376        body_params = None
377        # HTTP header `Accept`
378        header_params['Accept'] = self.api_client.\
379            select_header_accept(['application/json'])
380
381        # Authentication setting
382        auth_settings = []
383
384        return self.api_client.call_api(resource_path, 'GET',
385                                        path_params,
386                                        query_params,
387                                        header_params,
388                                        body=body_params,
389                                        post_params=form_params,
390                                        files=local_var_files,
391                                        response_type=None,
392                                        auth_settings=auth_settings,
393                                        callback=params.get('callback'),
394                                        _return_http_data_only=params.get('_return_http_data_only'),
395                                        _preload_content=params.get('_preload_content', True),
396                                        _request_timeout=params.get('_request_timeout'),
397                                        collection_formats=collection_formats)

Gets a specific bulk process list

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
Returns

None If the method is called asynchronously, returns the request thread.

def update_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs)
399    def update_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs):
400        """
401        Updates a specific bulk process list
402        
403        This method makes a synchronous HTTP request by default. To make an
404        asynchronous HTTP request, please define a `callback` function
405        to be invoked when receiving the response.
406        >>> def callback_function(response):
407        >>>     pprint(response)
408        >>>
409        >>> thread = api.update_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
410
411        :param callback function: The callback function
412            for asynchronous request. (optional)
413        :param str account_id: The external account number (int) or account ID Guid. (required)
414        :param str bulk_process_list_id: (required)
415        :param str process_action: (required)
416        :return: None
417                 If the method is called asynchronously,
418                 returns the request thread.
419        """
420        kwargs['_return_http_data_only'] = True
421        if kwargs.get('callback'):
422            return self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
423        else:
424            (data) = self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs)
425            return data

Updates a specific bulk process list

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.update_bulk_process_list(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
Returns

None If the method is called asynchronously, returns the request thread.

def update_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs)
427    def update_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs):
428        """
429        Updates a specific bulk process list
430        
431        This method makes a synchronous HTTP request by default. To make an
432        asynchronous HTTP request, please define a `callback` function
433        to be invoked when receiving the response.
434        >>> def callback_function(response):
435        >>>     pprint(response)
436        >>>
437        >>> thread = api.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
438
439        :param callback function: The callback function
440            for asynchronous request. (optional)
441        :param str account_id: The external account number (int) or account ID Guid. (required)
442        :param str bulk_process_list_id: (required)
443        :param str process_action: (required)
444        :return: None
445                 If the method is called asynchronously,
446                 returns the request thread.
447        """
448
449        all_params = ['account_id', 'bulk_process_list_id', 'process_action']
450        all_params.append('callback')
451        all_params.append('_return_http_data_only')
452        all_params.append('_preload_content')
453        all_params.append('_request_timeout')
454
455        params = locals()
456        for key, val in iteritems(params['kwargs']):
457            if key not in all_params:
458                raise TypeError(
459                    "Got an unexpected keyword argument '%s'"
460                    " to method update_bulk_process_list" % key
461                )
462            params[key] = val
463        del params['kwargs']
464        # verify the required parameter 'account_id' is set
465        if ('account_id' not in params) or (params['account_id'] is None):
466            raise ValueError("Missing the required parameter `account_id` when calling `update_bulk_process_list`")
467        # verify the required parameter 'bulk_process_list_id' is set
468        if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None):
469            raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `update_bulk_process_list`")
470        # verify the required parameter 'process_action' is set
471        if ('process_action' not in params) or (params['process_action'] is None):
472            raise ValueError("Missing the required parameter `process_action` when calling `update_bulk_process_list`")
473
474
475        collection_formats = {}
476
477        resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json')
478        path_params = {}
479        if 'account_id' in params:
480            path_params['accountId'] = params['account_id']
481        if 'bulk_process_list_id' in params:
482            path_params['bulkProcessListId'] = params['bulk_process_list_id']
483        if 'process_action' in params:
484            path_params['processAction'] = params['process_action']
485
486        query_params = {}
487
488        header_params = {}
489
490        form_params = []
491        local_var_files = {}
492
493        body_params = None
494        # HTTP header `Accept`
495        header_params['Accept'] = self.api_client.\
496            select_header_accept(['application/json'])
497
498        # Authentication setting
499        auth_settings = []
500
501        return self.api_client.call_api(resource_path, 'PUT',
502                                        path_params,
503                                        query_params,
504                                        header_params,
505                                        body=body_params,
506                                        post_params=form_params,
507                                        files=local_var_files,
508                                        response_type=None,
509                                        auth_settings=auth_settings,
510                                        callback=params.get('callback'),
511                                        _return_http_data_only=params.get('_return_http_data_only'),
512                                        _preload_content=params.get('_preload_content', True),
513                                        _request_timeout=params.get('_request_timeout'),
514                                        collection_formats=collection_formats)

Updates a specific bulk process list

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a callback function to be invoked when receiving the response.

>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, callback=callback_function)
Parameters
  • callback function: The callback function for asynchronous request. (optional)
  • str account_id: The external account number (int) or account ID Guid. (required)
  • str bulk_process_list_id: (required)
  • str process_action: (required)
Returns

None If the method is called asynchronously, returns the request thread.