def scan_add(scan_id, filelist, verbose=False): """Add files to an existing scan :param scan_id: the scan id :type scan_id: str :param filelist: list of full path qualified files :type filelist: list :param verbose: enable verbose requests (optional default:False) :type verbose: bool :return: return the updated scan object :rtype: IrmaScan """ cli = IrmaApiClient(API_ENDPOINT, verbose=verbose) scanapi = IrmaScansApi(cli) scan = scanapi.add(scan_id, filelist) return scan
def scan_add(scan_id, filelist, post_max_size_M=100, verbose=False): """Add files to an existing scan :param scan_id: the scan id :type scan_id: str :param filelist: list of full path qualified files :type filelist: list :param post_max_size_M: POST data max size in Mb :type post_max_size_M: int :param verbose: enable verbose requests (optional default:False) :type verbose: bool :return: return the updated scan object :rtype: IrmaScan """ cli = IrmaApiClient(API_ENDPOINT, max_tries=max_tries, pause=pause, verify=verify, verbose=verbose) scanapi = IrmaScansApi(cli) scan = scanapi.add(scan_id, filelist, post_max_size_M=post_max_size_M) return scan