def bulk_export(self, config_ids=None, device_ids=None, package_ids=None, result_ids=None, exclude_captures=False):
        """Bulk export a set of configs, devices, packages and results.

        :param config_ids: (optional) Int list of config IDs.
        :param device_ids: (optional) Int list of device IDs.
        :param package_ids: (optional) Int list of package IDs.
        :param result_ids: (optional) Int list of result IDs.
        :param exclude_captures: (optional) Exclude capture files if bool `True`.
        :rtype: tuple `(io.BytesIO, 'filename')`
        """
        if config_ids is None:
            config_ids = []
        if device_ids is None:
            device_ids = []
        if package_ids is None:
            package_ids = []
        if result_ids is None:
            result_ids = []
        json = {
            'configs': map(int, config_ids),
            'devices': map(int, device_ids),
            'packages': map(int, package_ids),
            'results': map(int, result_ids),
            'options': {'exclude_captures': exclude_captures}
        }
        resp = self.service.post(self.base, json=json, stream=True)
        b = io.BytesIO()
        stream.stream_response_to_file(resp, path=b)
        resp.close()
        b.seek(0)
        return (b, self.service.filename(resp))
def bulk_export ( self , config_ids = None , device_ids = None , package_ids = None , result_ids = None , exclude_captures = False ) : if config_ids is None : config_ids = [ ] if device_ids is None : device_ids = [ ] if package_ids is None : package_ids = [ ] if result_ids is None : result_ids = [ ] json = { 'configs' : map ( int , config_ids ) , 'devices' : map ( int , device_ids ) , 'packages' : map ( int , package_ids ) , 'results' : map ( int , result_ids ) , 'options' : { 'exclude_captures' : exclude_captures } } resp = self . service . post ( self . base , json = json , stream = True ) b = io . BytesIO ( ) stream . stream_response_to_file ( resp , path = b ) resp . close ( ) b . seek ( 0 ) return ( b , self . service . filename ( resp ) )
Bulk export a set of configs, devices, packages and results.

        :param config_ids: (optional) Int list of config IDs.
        :param device_ids: (optional) Int list of device IDs.
        :param package_ids: (optional) Int list of package IDs.
        :param result_ids: (optional) Int list of result IDs.
        :param exclude_captures: (optional) Exclude capture files if bool `True`.
        :rtype: tuple `(io.BytesIO, 'filename')`